First zigbee2mqtt automation isn't working

Hi people,

im trying to make my first automation with zigbee2mqtt (cc2531), but in my case it isn’t working.
Can anybody tell my what im doing when you see this pictures?

Maybe its something really simple but I can’t find it.
I am using this sensor: and this bulb:

Thanks in advance.


Behind those pictures is YAML, and it’s much easier to work with that to help you.

That said, the picture with light.turn_on shows you’re using entities. That’s wrong, see

- id: '1567540314982'
  alias: New automation
  - entity_id: binary_sensor.0x00158d0002c9e43c_contact
    from: 'false'
    platform: state
    to: 'true'
  condition: []
  - data:
      entity_id: light.0x000b57fffea832da_light
    service: light.turn_on
configuration zigbee2mqtt
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
  base_topic: zigbee2mqtt
  server: #deleted
  user: mqtt
  password: mqtt
  port: /dev/ttyACM0
  pan_id: 6754
  channel: 11
  availability_blacklist: []
ban: []
whitelist: []
queue: {}

  friendly_name: '0x00158d0002b6ee02'
  retain: false
  friendly_name: '0x00158d0002b609b5'
  retain: false
  friendly_name: '0x00158d0002c9e43c'
  retain: false
  friendly_name: '0x000b57fffea832da'
  retain: false
  friendly_name: '0x90fd9ffffe1a79bc'
  retain: false

    "0x00158d0002b6ee02": {
        "illuminance": 0,
        "linkquality": 123,
        "occupancy": false
    "0x00158d0002b609b5": {
        "illuminance": 3,
        "linkquality": 99,
        "occupancy": false
    "0x00158d0002c9e43c": {
        "battery": 100,
        "voltage": 3005,
        "contact": true,
        "linkquality": 23
    "0x000b57fffea832da": {
        "state": "OFF",
        "linkquality": 84,
        "brightness": 254
    "0x90fd9ffffe1a79bc": {
        "state": "OFF",
        "linkquality": 86,
        "brightness": 254

These are the yaml documents, do you need more information?
Can you help my with this information?


Ok, your automation looks good now.

If you select the automation (from States under Developer Tools) and push TRIGGER does it work?

No it does not work when I press set state.

also it doesn’t work when I fill in ‘on’ or ‘trigger’ in ‘state’.

Please re-read what I posted

  1. Developer tools
  2. States
  3. Find automation
  4. Click on the little icon next to it
  5. Push TRIGGER