{% endif %}
{% endif %}
device_class: opening
-
- ######################################################################
- # Binary Sensor: Serbatoio
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_fuellid:
- # friendly_name: Serbatoio
- # value_template: >-
- # {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusgas', true) }}
- # icon_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'doorstatusgas', true) %}
- # mdi:gas-station
- # {% else %}
- # mdi:gas-station
- # {% endif %}
- # device_class: opening
sequence:
- service: shell_command.shelly_reboot
- ######################################################################
- # Shelly: Force State Update
- ######################################################################
- #shelly_force_state_update:
- # alias: "Shelly: Aggiornamento stato dispositivi"
- # sequence:
- # - service: mqtt.publish
- # data:
- # payload: update
- # topic: shellies/command
-
automation:
######################################################################
# Shelly: Update Notification
- service: input_boolean.turn_on
entity_id: input_boolean.update_shelly
- ######################################################################
- # Shelly: Force State Update at Startup
- ######################################################################
- #- alias: "Shelly - Startup: Aggiornamento stati"
- #
- # trigger:
- # - event: start
- # platform: homeassistant
- #
- # action:
- # service: script.shelly_force_state_update
-
######################################################################
# Shelly Package - Operations Shell Command
######################################################################