"layout": "icon_name_state",
"entity": "switch.nas",
"name": "Stato",
- "show_name": false,
+ "show_name": true,
"show_icon": true,
- "show_state": true,
+ "show_state": false,
"color-type": "card",
"icon": "mdi:power",
"styles": {
"state": [
{
"value": "on",
+ "name": "Acceso",
"styles": {
"icon": [
{
},
{
"value": "off",
+ "name": "Spento",
"styles": {
"icon": [
{
"action": "call-service",
"service": "script.shelly_reboot"
}
- },
- {
- "type": "tile",
- "entity": "script.shelly_force_state_update",
- "name": "Aggiorna Stato Dispositivi",
- "tap_action": {
- "action": "call-service",
- "service": "script.shelly_force_state_update"
- }
}
]
}
######################################################################
# Shelly: Force State Update
######################################################################
- shelly_force_state_update:
- alias: "Shelly: Aggiornamento stato dispositivi"
- sequence:
- - service: mqtt.publish
- data:
- payload: update
- topic: shellies/command
+ #shelly_force_state_update:
+ # alias: "Shelly: Aggiornamento stato dispositivi"
+ # sequence:
+ # - service: mqtt.publish
+ # data:
+ # payload: update
+ # topic: shellies/command
automation:
######################################################################
# Shelly: Update Notification
######################################################################
- - alias: "Shelly: Update Notification"
+ - id: "shelly_update_notification"
+ alias: "Shelly: Update Notification"
variables:
pending_update_list: >
{{ states.update
######################################################################
# Shelly: Force State Update at Startup
######################################################################
- - alias: "Shelly - Startup: Aggiornamento stati"
-
- trigger:
- - event: start
- platform: homeassistant
-
- action:
- service: script.shelly_force_state_update
+ #- id: "shelly_startup_aggiornamento_stati"
+ # alias: "Shelly - Startup: Aggiornamento stati"
+ #
+ # trigger:
+ # - event: start
+ # platform: homeassistant
+ #
+ # action:
+ # service: script.shelly_force_state_update
######################################################################
# Shelly Package - Operations Shell Command