Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.26k stars 234 forks source link

`Enhancement` custom binary state entities for each hadware button state display #1959

Closed lafriks closed 3 months ago

lafriks commented 3 months ago

Enhancement Summary

Allow to specify binary state entity for each hardware button

Detailed Description

Hardware baby-carriageuttons will be displayed (on/off) only when either relay or specific entity is assigned to it, would be nice if state display could be selected independently of entity button switches on/off

Additional Context

I'm using trigger events to turn on/off scenes using my own automation. If assigning specific light or scene entity to hardware button it will not work (will turn on but will not turn of as HA has no scene turnoff functionality).

For detecting if current scene is on/off I have created binary template helper entities that I use in automatons and would be great if I could set them for HW button status display.

Example for binary template helper:

{{ states('light.living_room_light') == 'on'
   and state_attr('light.living_room_light', 'color_temp') == 153
   and state_attr('light.living_room_light', 'brightness') == 254
}}
edwardtfn commented 3 months ago

Solved in dev and will be included in the next release.