# Information Request: Advanced Custom / Generic Device Creation (Icon Slugs, States, Commands, Actions)

**URL:** <https://forum.bondhome.io/t/information-request-advanced-custom-generic-device-creation-icon-slugs-states-commands-actions/3826>\
**Category:** Integrations\
**Created:** [March 21, 2023, 10:28pm UTC](https://forum.bondhome.io/t/information-request-advanced-custom-generic-device-creation-icon-slugs-states-commands-actions/3826 "2023-03-21T22:28:49Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![residualimages](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/residualimages/32/74_2.png) [@residualimages](https://forum.bondhome.io/u/residualimages)\
**Post date:** [June 16, 2023, 8:07pm UTC](https://forum.bondhome.io/t/information-request-advanced-custom-generic-device-creation-icon-slugs-states-commands-actions/3826/10 "2023-06-16T20:07:12Z")

</div>

> [@endy](#):
>
> looks like we override the commands info based on the selected `action` in every PATCH and POST into the commands endpoint, and in every boot

Is that a requirement? I personally would see more benefit in _not_ having things overridden. Maybe it’s better for 90% of Bond customers to standardize, but I would say if you’re the kind of person who is POST’ing or PATCH’ing, you should be given more freedom and less Bond-enforcing-overrides. 😃

> [@endy](#):
>
> About states or properties, I can’t find any overriding, but worth mentioning that PATCHing is very restricted, so set it when POSTing.

I suppose I should map out each scenario very carefully. I can use these States, I think. Am I missing any?  
And these correspond to the Feedback boolean expressions to see if the Icon should be lit up or dark?

- state.timer
- state.direction
- state.down\_light
- state.flame
- state.fpfan\_power
- state.fpfan\_speed
- state.light
- state.open
- state.power
- state.speed
- state.up\_light

I’d kind of like the ability to make custom States (and even Actions!)- such as a “color” or “temperature” State for tracking bulb colors on Fans / Fireplaces / Lamps (and an Action to change it!).  
I tried making an expression with a custom “feedback” State in a POST command creation, but it discarded any State which wasn’t known, it seems.  
`"feedback\":\"state.light==1 and state.up_light==1 and state.down_light==0 and state.color_light==3400"`

Thinking maybe I needed to PATCH a State to create a custom one, I ran into a different error response - so it basically reinforces the idea that States are only allowed if they already exist on the Device (perhaps even limited to the Type of device it is) / no custom States:  
`{"_error_id":153,"_error_msg":"requested state does not exist"}`

---

_[View the full topic](https://forum.bondhome.io/t/information-request-advanced-custom-generic-device-creation-icon-slugs-states-commands-actions/3826)._
