name: Stato Casa
expose: true
room: Generale
+script.speech_consumption:
+ name: Consumo Casa
+ expose: true
+ room: Generale
script.homeassistant_restart:
name: Riavvia Homeassistant
expose: true
light.luce_cucina:
expose: true
room: Cucina
+light.luce_sala:
+ expose: true
+ room: Sala
light.luce_divano:
expose: true
room: Sala
script.speech_engine:
icon: mdi:text-to-speech
-
script.speech_status:
icon: mdi:voice
+script.speech_consumption:
+ icon: mdi:power-plug
entities:
- light.luce_cucina
- light.luce_corridoio
+ - light.luce_sala
- light.luce_divano
- light.luce_bagno
- light.luce_specchio
view: true
icon: mdi:lightbulb
entities:
+ - light.luce_sala
- light.luce_divano
- - light.luce_divano_bianca
+# - light.luce_divano_bianca
- sensor.shelly7_status
- sensor.shelly8_status
- sensor.shelly9_status
+ - sensor.shelly10_status
- sensor.shellybulb_status
- sensor.shellyem_status
- sensor.shellyplugs_status
entities:
- light.luce_corridoio
- light.luce_cucina
+ - light.luce_sala
- light.luce_divano
- light.luce_bagno
- light.luce_specchio
######################################################################
-# Living Room Light (Color)
+# Living Room Light
+######################################################################
+
+- platform: mqtt
+ name: Luce Sala
+ command_topic: "shellies/shelly1-C426F9/relay/0/command"
+ state_topic: "shellies/shelly1-C426F9/relay/0"
+ payload_on: "on"
+ payload_off: "off"
+ retain: false
+ qos: 0
+ optimistic: false
+
+######################################################################
+# Living Room Couch Light (Color)
######################################################################
- platform: mqtt
optimistic: false
######################################################################
-# Living Room Light (White)
+# Living Room Couch Light (White)
######################################################################
#- platform: mqtt
friendly_name: "Luci Sala"
turn_on:
service: light.turn_on
- entity_id: "light.luce_divano"
+ entity_id: "light.luce_sala, light.luce_divano"
turn_off:
service: light.turn_off
- entity_id: "light.luce_divano"
+ entity_id: "light.luce_sala, light.luce_divano"
value_template: >-
{% if is_state('light.luce_divano', 'on') or is_state('light.luce_divano_bianca', 'on') %}
on
{%- endfor %}
{%- endmacro -%}
+ {# Consumption Status #}
+ {%- macro status_consumption() -%}
+ "Il consumo istantaneo è pari a {{ states.sensor.potenza_istantanea.state }} watt"
+ {%- endmacro -%}
+
{# Car Status #}
{%- macro status_car() -%}
{% if is_state('device_tracker.wdd1760081v167576', 'Casa') %}
{{ status_lights() }}
{{ status_covers() }}
+
+ {{ status_consumption() }}
{% endif %}
data:
enable_greeting: 1
enable_status: 1
+
+######################################################################
+# Speech Consumption
+#
+# Operations:
+# - script.speech_engine
+######################################################################
+
+speech_consumption:
+ alias: Consumo Energetico
+ sequence:
+ - service: script.speech_engine
+ data_template:
+ language: 'it'
+ message: >-
+ "Il consumo istantaneo è pari a {{ states.sensor.potenza_istantanea.state }} watt"
shelly7.giorgioravera.it
shelly8.giorgioravera.it
shelly9.giorgioravera.it
+ shelly10.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
shellyplugs.giorgioravera.it
shellyswitch-559C49
shelly1-24D1EE
shelly1-93B27D
+ shelly1-C426F9
shellyswitch25-7457D8
shelly1-59E18C
shelly1-24D1A8
shelly7.giorgioravera.it
shelly8.giorgioravera.it
shelly9.giorgioravera.it
+ shelly7.giorgioravera.it
shellybulb.giorgioravera.it
shellyem.giorgioravera.it
shellyplugs.giorgioravera.it
state_image:
"on": /local/images/rooms/sala_on.jpg
"off": /local/images/rooms/sala_off.jpg
- entity: light.luce_divano
- #entity: group.lights_livingroom
+ entity: group.lights_livingroom
entities:
+ - light.luce_sala
- light.luce_divano
#- light.luce_divano_bianca
- cover.tapparella_sala
state_image:
"on": /local/images/rooms/bagno_on.jpg
"off": /local/images/rooms/bagno_off.jpg
- entity: light.luce_bagno
- #entity: group.lights_bathroom
+ entity: group.lights_bathroom
entities:
- light.luce_bagno
- light.luce_specchio
show_header_toggle: false
entities:
- script.speech_status
+ - script.speech_consumption
- automation.risveglio_giorgio
- type: entities
badges:
- light.luce_cucina
- light.luce_corridoio
+ - light.luce_sala
- light.luce_divano
- light.luce_bagno
- light.luce_specchio
- light.luce_cucina
- light.luce_corridoio
- light.luci_sala
+ - light.luce_sala
- light.luce_divano
#- light.luce_divano_bianca
- light.luci_bagno