# Psave doesn't save brightness

**URL:** <https://wled.discourse.group/t/psave-doesnt-save-brightness/9597>\
**Category:** Issues\
**Created:** [October 23, 2023, 3:28pm UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597 "2023-10-23T15:28:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarthWeber](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/darthweber/32/7447_2.png) [@DarthWeber](https://wled.discourse.group/u/DarthWeber)\
**Post date:** [October 23, 2023, 3:28pm UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597/1 "2023-10-23T15:28:54Z")

</div>

I’m trying to save my current state with {“psave”:99} via MQTT - and it works, except that the brightness is not included. I only found the segment brightness, but not the main segment.

If i save the state via the GUID, the brightness is included in the json of this preset.

Bug or feature?

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [October 24, 2023, 5:06am UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597/2 "2023-10-24T05:06:15Z")

</div>

Feature.  
As in UI you need to pass info to include brightness and segment bounds.

---

<div class="post-metadata">

**Author:** ![DarthWeber](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/darthweber/32/7447_2.png) [@DarthWeber](https://wled.discourse.group/u/DarthWeber)\
**Post date:** [October 24, 2023, 6:06am UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597/3 "2023-10-24T06:06:53Z")

</div>

okay, sorry, then my mistake. But that was different some versions ago (\<13?).

How do I save a preset with brightness via JSON API?

[EDIT] Wow, that was hard to find: {“psave”:xx,“n”:“Preset name”,“ib”:true,“sb”:true}. Would be great to find that in the doc.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [October 24, 2023, 11:48am UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597/4 "2023-10-24T11:48:47Z")

</div>

Now that you found it, you can update the docs. Please.

---

<div class="post-metadata">

**Author:** ![DarthWeber](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/darthweber/32/7447_2.png) [@DarthWeber](https://wled.discourse.group/u/DarthWeber)\
**Post date:** [October 24, 2023, 12:03pm UTC](https://wled.discourse.group/t/psave-doesnt-save-brightness/9597/5 "2023-10-24T12:03:36Z")

</div>

> [@blazoncek](#):
>
> Now that you found it, you can update the docs. Please.

Right. Didn’t know i can fork that. Thanks!
