Zigbee bulbs do not turn on in automation

I have an automation that turns on a zigbee bulb if the motion sensor detects motion.

- id: '1596084441618'
  alias: Loft Motion Night
  description: ''
  trigger:
  - device_id: 3e716d6c34ed462abb55cf622d6f817a
    domain: binary_sensor
    entity_id: binary_sensor.loft_motion
    platform: device
    type: motion
  condition:
  - after: '22:00'
    before: '6:00'
    condition: time
  action:
  - brightness_pct: 100
    device_id: ea8ae5fb32894979b68d2443ed7bf1c9
    domain: light
    entity_id: light.loft_lamp_color
    type: turn_on
  mode: single

It worked the first time I tested it out no problem. Every time after that it will not turn on. The state on my dashboard says it is on but the bulb itself is not on. If I trigger the bulb off, the bulb will turn on for 1 second and then turn off. If I trigger the bulb on from my dashboard, the bulb will turn on. This is happening for all my zigbee bulbs in all my automations and scenes. I am using the sylvania plus bulbs and a nortek zwave/zigbee usb hub.

I’m having the same issue with my Sylvania Smart+ bulb. The RSSI says -97 so that may be the issue, going to try getting a smart outlet to use as a repeater and see if that helps any.

Update:
RSSI down to -75ish and working much more smoothly

Hi Ian

Don’t you need an “or” condition? This is mine based on sunrise and sunset and I couldn’t get it to work without the or condition.

  condition:
  - condition: or
    conditions:
    - after: sunset
      condition: sun
    - before: sunrise
      condition: sun

Are you sure this is how your device works? From personal experience, all motion sensors I have encountered have a state ‘off’ (no motion) and a state ‘on’ (motion). You can go to developer tools and search for that entity in the states section to check what state it shows. My code always looks like this, works like a charm.

  trigger:
  - entity_id: binary_sensor.office_motion_sensor
    from: 'off'
    platform: state
    to: 'on'

EDIT:
Also time, for the condition, need to be like this

  - after: '22:00:00'
    before: '06:00:00'

Thanks Trevor,

In this case I do not think it is the condition. I have another automation that turns on lights at 7:30 PM. All the lights turn on except my zigbee bulbs.

Yeah I am sure the motion automation works because I have another motion automation that turns on other lights without issues.

Maybe you could paste the other automation code here?

I use a motion automation in another room to start a scene. This is the automation

- id: '1594492790792'
  alias: Night Time Lights
  description: ''
  trigger:
  - device_id: 3ca0d0abb93b47afb63b3928a91b52f3
    domain: binary_sensor
    entity_id: binary_sensor.entry_way
    platform: device
    type: motion
  condition:
  - after: '22:00'
    before: 05:30
    condition: time
  action:
  - scene: scene.night_family_room

And this is the scene

- id: '1594626032789'
  name: Night Family Room
  entities:
    light.family_lamp:
      brightness: 200
      state: 'on'
    light.family_room_main_lights:
      brightness: 51
      friendly_name: Family Room Lights
      state: 'on'

In this automation the family room lights will turn on but the family lamp will not.

I am somewhat of a newbie and I had this exact same problem (bulb issue; I was not using motion detection) with identical hardware. I was able to resolve it by updating the bulbs’ firmware to v 102428 using instructions provided here. I manually downloaded the Sylvania (aka Ledvance) firmware from the Ledvance site. Hope this helps someone.

Cheers,
T

1 Like