@dsonenberg wrote:
I’m trying to have my Ecolink PIR Motion sensor turn on/off two z-wave light switches using the HA Cookbook example.
Here is what I have in Automations.yaml:
- alias: Turn on basement light when there is movement trigger: platform: state entity_id: binary_sensor.basement_motion_1_sensor to: 'on' action: service: scene.turn_on entity_id: scene.BasementLightsOn - alias: Turn off basement light 10 minutes after last movement trigger: platform: state entity_id: binary_sensor.basement_motion_1_sensor to: 'off' for: minutes: 10 action: service: scene.turnon entity_id: scene.BasementLightsOff
This is the code from Scenes.yaml:
- name: BasementLightsOn entities: switch.basement_light_1: state: on switch.basement_light_2: state: on - name: BasementLightsOff entities: switch.basement_light_1: state: off switch.basement_light_2: state: off
and this is what show up in the Zwave log:
2020-04-12 09:51:22.454 Detail, Node016, Received: 0x01, 0x13, 0x00, 0x04, 0x00, 0x10, 0x0b, 0x71, 0x05, 0x00, 0x00, 0x00, 0xff, 0x07, 0x08, 0x00, 0x00, 0x00, 0xca, 0x00, 0xbd 2020-04-12 09:51:22.454 Detail, 2020-04-12 09:51:22.454 Info, Node016, Received Alarm report: type=0, level=0, sensorSrcID=0, type:Burglar event:8, status=255 2020-04-12 09:51:22.454 Detail, Node016, Initial read of value 2020-04-12 09:51:22.454 Detail, Node016, Initial read of value 2020-04-12 09:51:22.454 Detail, Node016, Initial read of value 2020-04-12 09:51:22.454 Detail, Node016, Initial read of value 2020-04-12 09:51:22.455 Detail, Node016, Notification: ValueChanged 2020-04-12 09:51:22.465 Detail, Node016, Notification: ValueChanged 2020-04-12 09:51:22.476 Detail, Node016, Notification: ValueChanged 2020-04-12 09:51:22.481 Detail, Node016, Notification: ValueChanged 2020-04-12 09:51:22.485 Detail, Node016, Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x10, 0x04, 0x30, 0x03, 0xff, 0xff, 0xcd, 0x00, 0x1d 2020-04-12 09:51:22.485 Detail, 2020-04-12 09:51:22.485 Info, Node016, Received SensorBinary report: Sensor:255 State=On 2020-04-12 09:51:22.485 Detail, Node016, Initial read of value 2020-04-12 09:51:22.485 Detail, Node016, Notification: ValueChanged
This is what the HA log shows:
2020-04-12 09:51:22 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities scene.basementlightson
So it looks like it’s a problem with the scene but I’m not seeing the problem. I would appreciate a second set of eyes. TIA
Posts: 2
Participants: 2