Hi
At the moment I use the hue bridge. As far as I remember this code was latest. It was ok (but probably not very efficient) with version 0.84.
Raspberry W also wasn’t a good idea.
Code above is for “down-press” to make lights darker.
Yes you need similar for up-press to make light brighter.
#######SCRIPT FOR "up-press":
jasniejliving_room_1stol:
alias: Living jasniej
sequence:
service: light.turn_on
data_template:
entity_id: light.living_room_1stol
brightness: '{% set suggested = state_attr("light.living_room_1stol","brightness")|int
+ 51 %} {% if suggested < 255 %} {{ suggested }} {% else %} 255 {% endif %} '
#########SCRIPT FOR "down-press"
ciemniejliving_room_1stol:
alias: Living Ciemniej
sequence:
service: light.turn_on
data_template:
entity_id: light.living_room_1stol
brightness: '{% set suggested = state_attr("light.living_room_1stol","brightness")|int
- 51 %} {% if suggested > 30 %} {{ suggested }} {% else %} 30 {% endif %}'