Skip to content
Permalink
Browse files

Add Mirabella Genio lights to the office.

  • Loading branch information...
mikalstill committed Mar 7, 2019
1 parent e58d674 commit 4043d57330d3ff969235eb162ae74e9888e74108
Showing with 72 additions and 0 deletions.
  1. +18 −0 automation/sonoff.yaml
  2. +1 −0 configuration.yaml
  3. +53 −0 light.yaml
@@ -0,0 +1,18 @@
- alias: "Power state on HA start-up"
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: "cmnd/sonoffs/state"
payload: ""
- service: mqtt.publish
data:
topic: cmnd/sonoffs/POWER
- service: mqtt.publish
data:
topic: cmnd/sonoffs/POWER2
- service: mqtt.publish
data:
topic: cmnd/sonoffs/POWER3
@@ -82,6 +82,7 @@ automation: !include_dir_merge_list automation
camera: !include cameras.yaml
device_tracker: !include device_tracker.yaml
group: !include groups.yaml
light: !include light.yaml
script: !include_dir_merge_named scripts
sensor: !include_dir_merge_list sensors
vacuum: !include vacuum.yaml
@@ -0,0 +1,53 @@
# Dimmable Mirabella Genio running Tasmota
# Remember to run "SetOption59 1" on the web console before deployment!
# See https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant-%E2%80%90-Manual-Config#dimmer--pwm-led for details.
- platform: mqtt
name: "Office Desk"
command_topic: "cmnd/sonoff5/POWER"
state_topic: "tele/sonoff5/STATE"
state_value_template: "{{value_json.POWER}}"
availability_topic: "tele/sonoff5/LWT"
brightness_command_topic: "cmnd/sonoff5/Dimmer"
brightness_state_topic: "tele/sonoff5/STATE"
brightness_scale: 100
on_command_type: "brightness"
brightness_value_template: "{{value_json.Dimmer}}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false

# RGB Mirabella Genio running Tasmota
# Remember to run "SetOption17 1" and "SetOption59 1" on the web console before deployment!
# See https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant-%E2%80%90-Manual-Config#rgb-lights for details.
- platform: mqtt
name: "Office Couch Left"
command_topic: "cmnd/sonoff6/POWER"
state_topic: "tele/sonoff6/STATE"
state_value_template: "{{value_json.POWER}}"
availability_topic: "tele/sonoff6/LWT"
brightness_command_topic: "cmnd/sonoff6/Dimmer"
brightness_state_topic: "tele/sonoff6/STATE"
brightness_scale: 100
on_command_type: "brightness"
brightness_value_template: "{{value_json.Dimmer}}"
rgb_command_topic: "cmnd/sonoff6/Color2"
rgb_state_topic: "tele/sonoff6/STATE"
rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
effect_command_topic: "cmnd/sonoff6/Scheme"
effect_state_topic: "tele/sonoff6/STATE"
effect_value_template: "{{value_json.Scheme}}"
effect_list:
- 0
- 1
- 2
- 3
- 4
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false

0 comments on commit 4043d57

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.