Hi, all
I recently went with Phillips Hue route with lighting. I have the basic starter kit that included to lightbulbs and the bridge. I also have a Smart Things door sensor. I’m trying to get the lightbult in my living room to turn on when I open a certain door between sunset and sunrise. It worked well with a regular bulb and a Smart Things switch, but I have done away with the switch for now and my Smat Things app can’t read my Hue bridge for some reason.
ANYWAY…My goal is to migrate to Home Assistant I currently have Smart Things communicating with HA through MQTT, and it appears to be functioning. However, I’ve tried to create two different automations to activate my light (one using MQTT and another as a “state” of a device monitored by MQTT) and neither are working.
- id: ‘XXXXXXXXXXX’
alias: Turn on Living Room Lamp after Door Open after Sunset
trigger:- entity_id: binary_sensor.garage_house_door
from: closed
platform: state
to: open
condition: - after: sunset
before: sunrise
condition: sun
action: - data:
entity_id: light.living_room_lamp_1
service: light.turn_on
- entity_id: binary_sensor.garage_house_door
- id: ‘XXXXXXXXXXXXX’
alias: MQTT Turn on Living Room Lamp at Door Open
trigger:- payload: open
platform: mqtt
topic: smartthings/Garage House Door/contact/state
condition: - after: sunset
before: sunrise
condition: sun
action: - data:
entity_id: light.living_room_lamp_1
service: light.turn_on
- payload: open
I’ve tried one and then the other, both with no results.
Any suggestions?