mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Add new lights
This commit is contained in:
@@ -35,23 +35,23 @@ cards:
|
|||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_fade_and_switch
|
||||||
variables:
|
variables:
|
||||||
- light: light.living_room_1
|
- light: light.light_le_1
|
||||||
- fade: switch.living_room_1_light_fade
|
- fade: switch.light_le_1_light_fade
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_fade_and_switch
|
||||||
variables:
|
variables:
|
||||||
- light: light.living_room_2
|
- light: light.light_le_2
|
||||||
- fade: switch.living_room_2_light_fade
|
- fade: switch.light_le_2_light_fade
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_fade_and_switch
|
||||||
variables:
|
variables:
|
||||||
- light: light.living_room_3
|
- light: light.light_le_3
|
||||||
- fade: switch.living_room_3_light_fade
|
- fade: switch.light_le_3_light_fade
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_fade_and_switch
|
||||||
variables:
|
variables:
|
||||||
- light: light.living_room_4
|
- light: light.light_le_4
|
||||||
- fade: switch.living_room_4_light_fade
|
- fade: switch.light_le_4_light_fade
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
type: custom:decluttering-card
|
type: custom:decluttering-card
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ yeelight:
|
|||||||
!secret yeelight_bedside_ip:
|
!secret yeelight_bedside_ip:
|
||||||
name: Bedside light
|
name: Bedside light
|
||||||
|
|
||||||
|
# https://www.home-assistant.io/integrations/tuya
|
||||||
|
tuya:
|
||||||
|
username: !secret tuya_username
|
||||||
|
password: !secret tuya_password
|
||||||
|
country_code: bg
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "PC"
|
name: "PC"
|
||||||
@@ -36,18 +42,18 @@ light:
|
|||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 1"
|
name: "light_le_1"
|
||||||
availability_topic: "tele/living_room_1/LWT"
|
availability_topic: "tele/light_le_1/LWT"
|
||||||
command_topic: "cmnd/living_room_1/POWER"
|
command_topic: "cmnd/light_le_1/POWER"
|
||||||
state_topic: "tele/living_room_1/STATE"
|
state_topic: "tele/light_le_1/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
brightness_command_topic: "cmnd/living_room_1/Dimmer"
|
brightness_command_topic: "cmnd/light_le_1/Dimmer"
|
||||||
brightness_state_topic: "tele/living_room_1/STATE"
|
brightness_state_topic: "tele/light_le_1/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
on_command_type: "brightness"
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/living_room_1/CT"
|
color_temp_command_topic: "cmnd/light_le_1/CT"
|
||||||
color_temp_state_topic: "tele/living_room_1/STATE"
|
color_temp_state_topic: "tele/light_le_1/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
payload_on: "ON"
|
||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
@@ -57,18 +63,18 @@ light:
|
|||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 2"
|
name: "light_le_2"
|
||||||
availability_topic: "tele/living_room_2/LWT"
|
availability_topic: "tele/light_le_2/LWT"
|
||||||
command_topic: "cmnd/living_room_2/POWER"
|
command_topic: "cmnd/light_le_2/POWER"
|
||||||
state_topic: "tele/living_room_2/STATE"
|
state_topic: "tele/light_le_2/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
brightness_command_topic: "cmnd/living_room_2/Dimmer"
|
brightness_command_topic: "cmnd/light_le_2/Dimmer"
|
||||||
brightness_state_topic: "tele/living_room_2/STATE"
|
brightness_state_topic: "tele/light_le_2/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
on_command_type: "brightness"
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/living_room_2/CT"
|
color_temp_command_topic: "cmnd/light_le_2/CT"
|
||||||
color_temp_state_topic: "tele/living_room_2/STATE"
|
color_temp_state_topic: "tele/light_le_2/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
payload_on: "ON"
|
||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
@@ -78,18 +84,18 @@ light:
|
|||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 3"
|
name: "light_le_3"
|
||||||
availability_topic: "tele/living_room_3/LWT"
|
availability_topic: "tele/light_le_3/LWT"
|
||||||
command_topic: "cmnd/living_room_3/POWER"
|
command_topic: "cmnd/light_le_3/POWER"
|
||||||
state_topic: "tele/living_room_3/STATE"
|
state_topic: "tele/light_le_3/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
brightness_command_topic: "cmnd/living_room_3/Dimmer"
|
brightness_command_topic: "cmnd/light_le_3/Dimmer"
|
||||||
brightness_state_topic: "tele/living_room_3/STATE"
|
brightness_state_topic: "tele/light_le_3/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
on_command_type: "brightness"
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/living_room_3/CT"
|
color_temp_command_topic: "cmnd/light_le_3/CT"
|
||||||
color_temp_state_topic: "tele/living_room_3/STATE"
|
color_temp_state_topic: "tele/light_le_3/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
payload_on: "ON"
|
||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
@@ -99,18 +105,18 @@ light:
|
|||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 4"
|
name: "light_le_4"
|
||||||
availability_topic: "tele/living_room_4/LWT"
|
availability_topic: "tele/light_le_4/LWT"
|
||||||
command_topic: "cmnd/living_room_4/POWER"
|
command_topic: "cmnd/light_le_4/POWER"
|
||||||
state_topic: "tele/living_room_4/STATE"
|
state_topic: "tele/light_le_4/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
brightness_command_topic: "cmnd/living_room_4/Dimmer"
|
brightness_command_topic: "cmnd/light_le_4/Dimmer"
|
||||||
brightness_state_topic: "tele/living_room_4/STATE"
|
brightness_state_topic: "tele/light_le_4/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
on_command_type: "brightness"
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/living_room_4/CT"
|
color_temp_command_topic: "cmnd/light_le_4/CT"
|
||||||
color_temp_state_topic: "tele/living_room_4/STATE"
|
color_temp_state_topic: "tele/light_le_4/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
payload_on: "ON"
|
||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
@@ -119,13 +125,67 @@ light:
|
|||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_1"
|
||||||
|
availability_topic: "tele/light_lohas_1/LWT"
|
||||||
|
command_topic: "cmnd/light_lohas_1/POWER"
|
||||||
|
state_topic: "tele/light_lohas_1/STATE"
|
||||||
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
brightness_command_topic: "cmnd/light_lohas_1/Dimmer"
|
||||||
|
brightness_state_topic: "tele/light_lohas_1/STATE"
|
||||||
|
brightness_scale: 100
|
||||||
|
on_command_type: "brightness"
|
||||||
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
|
hs_command_topic: "cmnd/light_lohas_1/HSBColor"
|
||||||
|
hs_state_topic: "tele/light_lohas_1/STATE"
|
||||||
|
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
|
||||||
|
color_temp_command_topic: "cmnd/light_lohas_1/CT"
|
||||||
|
color_temp_state_topic: "tele/light_lohas_1/STATE"
|
||||||
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
|
rgb_command_topic: "cmnd/light_lohas_1/Color"
|
||||||
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
retain: false
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_2"
|
||||||
|
availability_topic: "tele/light_lohas_2/LWT"
|
||||||
|
command_topic: "cmnd/light_lohas_2/POWER"
|
||||||
|
state_topic: "tele/light_lohas_2/STATE"
|
||||||
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
brightness_command_topic: "cmnd/light_lohas_2/Dimmer"
|
||||||
|
brightness_state_topic: "tele/light_lohas_2/STATE"
|
||||||
|
brightness_scale: 100
|
||||||
|
on_command_type: "brightness"
|
||||||
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
|
hs_command_topic: "cmnd/light_lohas_2/HSBColor"
|
||||||
|
hs_state_topic: "tele/light_lohas_2/STATE"
|
||||||
|
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
|
||||||
|
color_temp_command_topic: "cmnd/light_lohas_2/CT"
|
||||||
|
color_temp_state_topic: "tele/light_lohas_2/STATE"
|
||||||
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
|
rgb_command_topic: "cmnd/light_lohas_2/Color"
|
||||||
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
retain: false
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Living room main lights
|
name: Living room main lights
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_1
|
- light.light_lohas_1
|
||||||
- light.living_room_2
|
- light.light_lohas_2
|
||||||
- light.living_room_3
|
- light.light_le_9
|
||||||
- light.living_room_4
|
- light.light_le_10
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Living room all lights
|
name: Living room all lights
|
||||||
@@ -133,11 +193,52 @@ light:
|
|||||||
- light.living_room_main_lights
|
- light.living_room_main_lights
|
||||||
- light.pc
|
- light.pc
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Master bedroom main lights
|
||||||
|
entities:
|
||||||
|
- light.light_le_1
|
||||||
|
- light.light_le_2
|
||||||
|
- light.light_le_3
|
||||||
|
- light.light_le_4
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Master bedroom all lights
|
||||||
|
entities:
|
||||||
|
- light.master_bedroom_main_lights
|
||||||
|
- light.bedside_light
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Kitchen main lights
|
||||||
|
entities:
|
||||||
|
- light.light_le_11
|
||||||
|
- light.light_le_12
|
||||||
|
- light.light_orbecco_1
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Hallway entrance lights
|
||||||
|
entities:
|
||||||
|
- light.light_le_5
|
||||||
|
- light.light_le_6
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Hallway main lights
|
||||||
|
entities:
|
||||||
|
- light.light_le_7
|
||||||
|
- light.light_le_8
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Hallway all lights
|
||||||
|
entities:
|
||||||
|
- light.hallway_entrance_lights
|
||||||
|
- light.hallway_main_lights
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: All lights
|
name: All lights
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_all_lights
|
- light.living_room_all_lights
|
||||||
- light.bedside_light
|
- light.master_bedroom_all_lights
|
||||||
|
- light.kitchen_main_lights
|
||||||
|
- light.hallway_all_lights
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
@@ -151,42 +252,62 @@ sensor:
|
|||||||
value_template: "{{ value_json['Wifi'].RSSI }}"
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 1 light WiFi"
|
name: "light_le_1_wifi"
|
||||||
availability_topic: "tele/living_room_1/LWT"
|
availability_topic: "tele/light_le_1/LWT"
|
||||||
device_class: signal_strength
|
device_class: signal_strength
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
state_topic: "tele/living_room_1/STATE"
|
state_topic: "tele/light_le_1/STATE"
|
||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: "{{ value_json['Wifi'].RSSI }}"
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 2 light WiFi"
|
name: "light_le_2_wifi"
|
||||||
availability_topic: "tele/living_room_2/LWT"
|
availability_topic: "tele/light_le_2/LWT"
|
||||||
device_class: signal_strength
|
device_class: signal_strength
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
state_topic: "tele/living_room_2/STATE"
|
state_topic: "tele/light_le_2/STATE"
|
||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: "{{ value_json['Wifi'].RSSI }}"
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 3 light WiFi"
|
name: "light_le_3_wifi"
|
||||||
availability_topic: "tele/living_room_3/LWT"
|
availability_topic: "tele/light_le_3/LWT"
|
||||||
device_class: signal_strength
|
device_class: signal_strength
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
state_topic: "tele/living_room_3/STATE"
|
state_topic: "tele/light_le_3/STATE"
|
||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: "{{ value_json['Wifi'].RSSI }}"
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 4 light WiFi"
|
name: "light_le_4_wifi"
|
||||||
availability_topic: "tele/living_room_4/LWT"
|
availability_topic: "tele/light_le_4/LWT"
|
||||||
device_class: signal_strength
|
device_class: signal_strength
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
state_topic: "tele/living_room_4/STATE"
|
state_topic: "tele/light_le_4/STATE"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_1_wifi"
|
||||||
|
availability_topic: "tele/light_lohas_1/LWT"
|
||||||
|
device_class: signal_strength
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
state_topic: "tele/light_lohas_1/STATE"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_2_wifi"
|
||||||
|
availability_topic: "tele/light_lohas_2/LWT"
|
||||||
|
device_class: signal_strength
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
state_topic: "tele/light_lohas_2/STATE"
|
||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: "{{ value_json['Wifi'].RSSI }}"
|
value_template: "{{ value_json['Wifi'].RSSI }}"
|
||||||
|
|
||||||
@@ -203,47 +324,69 @@ switch:
|
|||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 1 light Fade"
|
name: "light_le_1_fade"
|
||||||
availability_topic: "tele/living_room_1/LWT"
|
availability_topic: "tele/light_le_1/LWT"
|
||||||
command_topic: "cmnd/living_room_1/FADE"
|
command_topic: "cmnd/light_le_1/FADE"
|
||||||
icon: mdi:gradient
|
icon: mdi:gradient
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
qos: 1
|
qos: 1
|
||||||
state_topic: "stat/living_room_1/RESULT"
|
state_topic: "stat/light_le_1/RESULT"
|
||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 2 light Fade"
|
name: "light_le_2_fade"
|
||||||
availability_topic: "tele/living_room_2/LWT"
|
availability_topic: "tele/light_le_2/LWT"
|
||||||
command_topic: "cmnd/living_room_2/FADE"
|
command_topic: "cmnd/light_le_2/FADE"
|
||||||
icon: mdi:gradient
|
icon: mdi:gradient
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
qos: 1
|
qos: 1
|
||||||
state_topic: "stat/living_room_2/RESULT"
|
state_topic: "stat/light_le_2/RESULT"
|
||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 3 light Fade"
|
name: "light_le_3_fade"
|
||||||
availability_topic: "tele/living_room_3/LWT"
|
availability_topic: "tele/light_le_3/LWT"
|
||||||
command_topic: "cmnd/living_room_3/FADE"
|
command_topic: "cmnd/light_le_3/FADE"
|
||||||
icon: mdi:gradient
|
icon: mdi:gradient
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
qos: 1
|
qos: 1
|
||||||
state_topic: "stat/living_room_3/RESULT"
|
state_topic: "stat/light_le_3/RESULT"
|
||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Living room 4 light Fade"
|
name: "light_le_4_fade"
|
||||||
availability_topic: "tele/living_room_4/LWT"
|
availability_topic: "tele/light_le_4/LWT"
|
||||||
command_topic: "cmnd/living_room_4/FADE"
|
command_topic: "cmnd/light_le_4/FADE"
|
||||||
icon: mdi:gradient
|
icon: mdi:gradient
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "Offline"
|
||||||
qos: 1
|
qos: 1
|
||||||
state_topic: "stat/living_room_4/RESULT"
|
state_topic: "stat/light_le_4/RESULT"
|
||||||
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_1_fade"
|
||||||
|
availability_topic: "tele/light_lohas_1/LWT"
|
||||||
|
command_topic: "cmnd/light_lohas_1/FADE"
|
||||||
|
icon: mdi:gradient
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
state_topic: "stat/light_lohas_1/RESULT"
|
||||||
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_lohas_2_fade"
|
||||||
|
availability_topic: "tele/light_lohas_2/LWT"
|
||||||
|
command_topic: "cmnd/light_lohas_2/FADE"
|
||||||
|
icon: mdi:gradient
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
state_topic: "stat/light_lohas_2/RESULT"
|
||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
|||||||
Reference in New Issue
Block a user