Add balcony light

This commit is contained in:
monster
2019-02-09 10:54:42 +03:00
parent 1b1ddf758a
commit 3116c2378e
6 changed files with 28 additions and 22 deletions
@@ -40,4 +40,4 @@ light_control_balcony:
constraint: input_boolean.balcony_light_control constraint: input_boolean.balcony_light_control
after_sundown: True after_sundown: True
global_dependencies: global_dependencies:
- globals - globals
@@ -24,3 +24,8 @@ light.bath:
light.balcony: light.balcony:
friendly_name: Свет friendly_name: Свет
light.yeelight_white_286c07f12bed:
friendly_name: Балкон1
light.yeelight_white_f0b429a8d936:
friendly_name: Балкон2
@@ -2,4 +2,5 @@ balcony_light:
name: Свет (балкон) name: Свет (балкон)
control: hidden control: hidden
entities: entities:
- light.balcony - light.yeelight_white_286c07f12bed
- light.yeelight_white_f0b429a8d936
@@ -2,6 +2,7 @@
name: Балкон name: Балкон
control: hidden control: hidden
entities: entities:
- light.balcony - light.yeelight_white_286c07f12bed
- light.yeelight_white_f0b429a8d936
- sensor.temperature_158d000117d37a - sensor.temperature_158d000117d37a
- sensor.humidity_158d000117d37a - sensor.humidity_158d000117d37a
@@ -1,7 +1,7 @@
- platform: mqtt # - platform: mqtt
name: "balcony" # name: "balcony"
state_topic: "stat/BALCONYV2/POWER" # state_topic: "stat/BALCONYV2/POWER"
command_topic: "cmnd/BALCONYV2/POWER" # command_topic: "cmnd/BALCONYV2/POWER"
payload_on: "ON" # payload_on: "ON"
payload_off: "OFF" # payload_off: "OFF"
optimistic: false # optimistic: false
+11 -12
View File
@@ -1,21 +1,20 @@
# Home Assistant integration (MQTT discovery)
homeassistant: xxxxxxxxx homeassistant: xxxxxxxxx
# allow new devices to join
permit_join: xxxxxxxxx permit_join: xxxxxxxxx
# MQTT settings
mqtt: xxxxxxxxx mqtt: xxxxxxxxx
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: xxxxxxxxx base_topic: xxxxxxxxx
# MQTT server URL
server: xxxxxxxxx server: xxxxxxxxx
# MQTT server authentication, uncomment if required: xxxxxxxxx
user: xxxxxxxxx user: xxxxxxxxx
password: xxxxxxxxx password: xxxxxxxxx
# Serial settings
serial: xxxxxxxxx serial: xxxxxxxxx
# Location of CC2531 USB sniffer
port: xxxxxxxxx port: xxxxxxxxx
disable_led: xxxxxxxxx
advanced: xxxxxxxxx
cache_state: xxxxxxxxx
# log_level: xxxxxxxxx
devices: xxxxxxxxx
'0x00158d0001e065e8': xxxxxxxxx
friendly_name: xxxxxxxxx
retain: xxxxxxxxx
'0x00158d0002a55439': xxxxxxxxx
friendly_name: xxxxxxxxx
retain: xxxxxxxxx