light.luce_divano:
room: Sala
expose: true
-# Tapparelle
- cover.tapparella_globale:
- room: Generale
+ light.luce_bagno:
+ room: Sala
+ expose: true
+ light.luce_specchio:
+ room: Sala
expose: true
+# Tapparelle
cover.tapparella_cucina:
room: Cucina
expose: true
--- /dev/null
+######################################################################\r
+# Global Light\r
+######################################################################\r
+\r
+- platform: group\r
+ name: Luci Globale\r
+ entities:\r
+ - light.luce_corridoio\r
+ - light.luce_cucina\r
+ - light.luce_divano\r
+ - light.luce_bagno\r
+ - light.luce_specchio\r
--- /dev/null
+######################################################################\r
+# Bathroom Light\r
+######################################################################\r
+\r
+- platform: mqtt\r
+ name: Luce Bagno\r
+ command_topic: "shellies/shellyswitch25-7457D8/relay/0/command"\r
+ state_topic: "shellies/shellyswitch25-7457D8/relay/0"\r
+ payload_on: "on"\r
+ payload_off: "off"\r
+ retain: false\r
+ qos: 1\r
+ optimistic: false\r
+\r
+######################################################################\r
+# Bathroom Mirror Light\r
+######################################################################\r
+\r
+- platform: mqtt\r
+ name: Luce Specchio\r
+ command_topic: "shellies/shellyswitch25-7457D8/relay/1/command"\r
+ state_topic: "shellies/shellyswitch25-7457D8/relay/1"\r
+ payload_on: "on"\r
+ payload_off: "off"\r
+ retain: false\r
+ qos: 1\r
+ optimistic: false\r
######################################################################\r
-# Living Room Light (Color)\r
+# Corridor Light\r
######################################################################\r
\r
- platform: mqtt\r
######################################################################\r
-# Kitchen Room Light\r
+# Kitchen Light\r
######################################################################\r
\r
- platform: mqtt\r
"gain": {{ (brightness/255*100) | int }},
{%- endif -%}
{%- if effect is defined -%}
- {%- if effect == 'Meteor Shower' -%}
+ {%- if effect == 'Pioggia di Meteore' -%}
"effect": 1
- {%- elif effect == 'Gradual Change' -%}
+ {%- elif effect == 'Cambio Graduale' -%}
"effect": 2
{%- elif effect == 'Breath' -%}
"effect": 3
{%- elif effect == 'Flash' -%}
"effect": 4
- {%- elif effect == 'On/Off Gradual' -%}
+ {%- elif effect == 'On/Off Graduale' -%}
"effect": 5
- {%- elif effect == 'Red/Green Change' -%}
+ {%- elif effect == 'Rosso/Verde' -%}
"effect": 6
{%- else -%}
"effect": 0
command_off_template: >
{
"turn": "off",
- "mode": "color",
- "effect": 0
+ "mode": "color"
}
state_template: >
{% if value_json.ison == true and value_json.mode == "color" %}
white_value_template: '{{ value_json.white }}'
effect_template: >
{%- if value_json.effect == 1 -%}
- Meteor Shower
+ Pioggia di Meteore
{%- elif value_json.effect == 2 -%}
- Gradual Change
+ Cambio Graduale
{%- elif value_json.effect == 3 -%}
Breath
{%- elif value_json.effect == 4 -%}
Flash
{%- elif value_json.effect == 5 -%}
- On/Off Gradual
+ On/Off Graduale
{%- elif value_json.effect == 6 -%}
- Red/Green Change
+ Rosso/Verde
{%- else -%}
Off
{%- endif -%}
effect_list:
- "Off"
- - Meteor Shower
- - Gradual Change
+ - Pioggia di Meteore
+ - Cambio Graduale
- Breath
- Flash
- - On/Off Gradual
- - Red/Green Change
+ - On/Off Graduale
+ - Rosso/Verde
retain: false
qos: 1
optimistic: false
- platform: mqtt
name: Luce Divano Bianca
schema: template
- command_topic: "shellies/shellybulb-<deviceid>/color/0/set"
- state_topic: "shellies/shellybulb-<deviceid>/color/0/status"
+ command_topic: "shellies/shellybulb-BC8610/color/0/set"
+ state_topic: "shellies/shellybulb-BC8610/color/0/status"
command_on_template: >
{
"turn": "on",
title: Comandi tapparelle
show_header_toggle: false
entities:
- - cover.all_covers
+ - cover.tapparella_globale
- cover.tapparella_cucina
- cover.tapparella_sala
- cover.tapparella_studio
######################################################################
- title: Principale
id: main
- #icon: mdi:home-assistant
icon: mdi:home
badges:
- device_tracker.google_maps_115265981849847357125
image: /local/rooms/sala.jpg
entities:
- light.luce_divano
+ - light.luce_divano_bianca
- cover.tapparella_sala
- climate.sala_termostato_sala
- media_player.tv_sala
show_state: true
image: /local/rooms/bagno.jpg
entities:
+ - light.luce_bagno
+ - light.luce_specchio
- climate.bagno_termostato_bagno
- type: picture-glance
- title: Luci
id: light
icon: mdi:lightbulb
+ badges:
+ - light.luce_cucina
+ - light.luce_corridoio
+ - light.luce_divano
+ - light.luce_bagno
+ - light.luce_specchio
cards:
- type: light
- entity: light.luce_cucina
+ name: Luci Globale
+ entity: light.luci_globale
+
+ - type: light
name: Luce Cucina
+ entity: light.luce_cucina
+
- type: light
- entity: light.luce_corridoio
name: Luce Corridoio
+ entity: light.luce_corridoio
+
- type: light
- entity: light.luce_divano
name: Luce Divano
+ entity: light.luce_divano
+
+ - type: light
+ name: Luce Divano Bianca
+ entity: light.luce_divano_bianca
+
+ - type: light
+ name: Luce Bagno
+ entity: light.luce_bagno
+
+ - type: light
+ name: Luce Specchio
+ entity: light.luce_specchio
######################################################################
# Covers