I received my Local deck on Saturday and decided rather than building an ESPHome config, I would see if I could configure everything using the standard install and automations. I went this route as it is quicker to reconfigure as you don’t need to compile and reinstall anything to make changes.
So far this is working very well. I have one automation for the dumb buttons, those that set channels/apps on the tv. Plus one for any of the more complex buttons, for example the TV changes colour based if the TV is powered on or just the power socket it on. I built simple automations for each of the lights to control the backlight colour as well as turning the light on and off.
For example this one toggles my Notification alert and follows the colour state of the bulb. The bulb is in a lamp in the living room and does different colours for various problems, for example someones phone/tablet is low battery, the kitchen timer is about to go off, the timer is going off etc.
description: ""
trigger:
- platform: state
entity_id:
- light.notify_bulb
condition: []
action:
- variables:
state: "{{states(trigger.entity_id)}}"
rgb_color: "{{state_attr(trigger.entity_id,'rgb_color')}}"
- if:
- condition: template
value_template: "{{state == 'off'}}"
then:
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.localdeck_4119d4_button_06_light
else:
- service: light.turn_on
target:
entity_id: light.localdeck_4119d4_button_06_light
data:
rgb_color: "{{rgb_color}}"
mode: single