diff --git a/build/arduino.avr.uno/extras/configuration.yaml b/build/arduino.avr.uno/extras/configuration.yaml index 8366695..b07ef7b 100644 --- a/build/arduino.avr.uno/extras/configuration.yaml +++ b/build/arduino.avr.uno/extras/configuration.yaml @@ -18,4 +18,7 @@ sensor: pressure: value_template: '{{ states.sensor.weather_sensor.attributes["pressure"] | round(2)}}' friendly_name: Pressure soba - unit_of_measurement: "hPa" \ No newline at end of file + unit_of_measurement: "hPa" + +shell_command: + toggle_backlight: /bin/bash -c "echo -n -e 'T' >> /dev/ttyV0" \ No newline at end of file diff --git a/build/arduino.avr.uno/extras/dashboard.yaml b/build/arduino.avr.uno/extras/dashboard.yaml new file mode 100644 index 0000000..68f97ff --- /dev/null +++ b/build/arduino.avr.uno/extras/dashboard.yaml @@ -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