Add backlight toggling to Home Assistant
This commit is contained in:
@@ -18,4 +18,7 @@ sensor:
|
||||
pressure:
|
||||
value_template: '{{ states.sensor.weather_sensor.attributes["pressure"] | round(2)}}'
|
||||
friendly_name: Pressure soba
|
||||
unit_of_measurement: "hPa"
|
||||
unit_of_measurement: "hPa"
|
||||
|
||||
shell_command:
|
||||
toggle_backlight: /bin/bash -c "echo -n -e 'T' >> /dev/ttyV0"
|
||||
12
build/arduino.avr.uno/extras/dashboard.yaml
Normal file
12
build/arduino.avr.uno/extras/dashboard.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
show_name: true
|
||||
show_icon: true
|
||||
type: button
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: shell_command.toggle_backlight
|
||||
entity: sensor.weather_sensor
|
||||
name: Toggle backlight
|
||||
show_state: false
|
||||
hold_action:
|
||||
action: more-info
|
||||
icon: mdi:lightbulb
|
||||
Reference in New Issue
Block a user