light.luce_camera:
expose: true
room: Camera
+light.luce_balcone:
+ expose: true
+ room: Balcone
\ No newline at end of file
- light.luce_specchio
- light.luce_studio
- light.luce_camera
+ - light.luce_balcone
- sensor.shelly8_status
- sensor.shelly9_status
- sensor.shelly10_status
+ - sensor.shelly11_status
- sensor.shellybulb_status
- sensor.shellyem_status
- sensor.shellydw_status
- light.luce_specchio
- light.luce_studio
- light.luce_camera
+ - light.luce_balcone
--- /dev/null
+######################################################################
+# Balcony Light
+######################################################################
+
+- platform: mqtt
+ name: Luce Balcone
+ command_topic: "shellies/shelly1-C423C8/relay/0/command"
+ state_topic: "shellies/shelly1-C423C8/relay/0"
+ payload_on: "on"
+ payload_off: "off"
+ retain: false
+ qos: 0
+ optimistic: false
topic: 'shellies/shelly1-24D1A8/command'
payload: 'update_fw'
+ # Shelly 1 Luce Balcone
+ - service: mqtt.publish
+ data:
+ topic: 'shellies/shelly1-C423C8/command'
+ payload: 'update_fw'
+
# Shelly EM
- service: mqtt.publish
data:
{% set year = now().strftime('%Y') %}
Sono le {{ hour }} e {{ min }} del {{ day }} {{ mounth }} {{ year }}
{%- endmacro -%}
-
+
+ {# Door Status #}
+ {%- macro status_door() -%}
+ {% for entity_id in states.group.doors.attributes.entity_id %}
+ {% set name = entity_id.split('.')[1]|replace('_', ' ') %}
+ {% if is_state(entity_id, 'off') %}
+ La {{ name }} è chiusa.
+ {% else %}
+ La {{ name }} è aperta.
+ {% endif %}
+ {%- endfor %}
+ {%- endmacro -%}
+
{# Lights Status #}
{%- macro status_lights() -%}
{% for entity_id in states.group.lights.attributes.entity_id %}
{% if enable_status | int == 1 %}
{{ time_and_date() }}
-
+
+ {{ status_door() }}
+
{{ status_lights() }}
{{ status_covers() }}
shelly8.giorgioravera.it
shelly9.giorgioravera.it
shelly10.giorgioravera.it
+ shelly11.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
shellydw.giorgioravera.it
shellyswitch25-7457D8
shelly1-59E18C
shelly1-24D1A8
+ shelly1-C423C8
shellyem-B9E1A0
shellydw-B88F53
shellyplug-s-7A31CB
shelly8.giorgioravera.it
shelly9.giorgioravera.it
shelly10.giorgioravera.it
+ shelly11.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
shellydw.giorgioravera.it