Ikea device added to zigbee2mqtt but cannot control?

Beginner warning: I’ve built a hass.io server on a spare rPi, and seemingly have setup zigbee2mqtt & Mosquitto broker. I’ve ‘believe’ I’ve managed to pair TRADFRI driver for wireless control (30 watt), from what I can see in the logs, but I don’t see any devices within ‘Configuration > Integration’
Any ideas?

Here’s the zigbee2mqtt logs:

[Info] Configuration file found: /share/zigbee2mqtt/configuration.yaml
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2019-08-01T13:53:25: PM2 log: Launching in no daemon mode
2019-08-01T13:53:26: PM2 log: App [npm:0] starting in -fork mode-
2019-08-01T13:53:26: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.4.0
> node index.js
  zigbee2mqtt:info 8/1/2019, 1:53:33 PM Logging to directory: '/share/zigbee2mqtt/log/2019-08-01.13-53-33'
  zigbee2mqtt:info 8/1/2019, 1:53:35 PM Starting zigbee2mqtt version 1.4.0 (commit #unknown)
  zigbee2mqtt:info 8/1/2019, 1:53:35 PM Starting zigbee-shepherd
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM zigbee-shepherd started
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM Coordinator firmware version: '20190425'
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM Currently 1 devices are joined:
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM 0x90fd9ffffe1f3680 (0x90fd9ffffe1f3680): ICPSHC24-30EU-IL-1 - IKEA TRADFRI driver for wireless control (30 watt) (Router)
  zigbee2mqtt:warn 8/1/2019, 1:53:37 PM `permit_join` set to  `true` in configuration.yaml.
  zigbee2mqtt:warn 8/1/2019, 1:53:37 PM Allowing new devices to join.
  zigbee2mqtt:warn 8/1/2019, 1:53:37 PM Set `permit_join` to `false` once you joined all devices.
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM Zigbee: allowing new devices to join.
  zigbee2mqtt:info 8/1/2019, 1:53:37 PM Connecting to MQTT server at mqtt://homeassistant
  zigbee2mqtt:info 8/1/2019, 1:53:38 PM zigbee-shepherd ready
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM Connected to MQTT server
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM MQTT publish: topic 'zigbee2mqtt/0x90fd9ffffe1f3680', payload '{"state":"ON","linkquality":173,"brightness":254}'
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM MQTT publish: topic 'homeassistant/light/0x90fd9ffffe1f3680/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/0x90fd9ffffe1f3680/set","state_topic":"zigbee2mqtt/0x90fd9ffffe1f3680","name":"0x90fd9ffffe1f3680_light","unique_id":"0x90fd9ffffe1f3680_light_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x90fd9ffffe1f3680","name":"0x90fd9ffffe1f3680","sw_version":"Zigbee2mqtt 1.4.0","model":"TRADFRI driver for wireless control (30 watt) (ICPSHC24-30EU-IL-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM MQTT publish: topic 'homeassistant/sensor/0x90fd9ffffe1f3680/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x90fd9ffffe1f3680","json_attributes_topic":"zigbee2mqtt/0x90fd9ffffe1f3680","name":"0x90fd9ffffe1f3680_linkquality","unique_id":"0x90fd9ffffe1f3680_linkquality_zigbee2mqtt","device":{"identifiers":"zigbee2mqtt_0x90fd9ffffe1f3680","name":"0x90fd9ffffe1f3680","sw_version":"Zigbee2mqtt 1.4.0","model":"TRADFRI driver for wireless control (30 watt) (ICPSHC24-30EU-IL-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
  zigbee2mqtt:info 8/1/2019, 1:53:40 PM MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.4.0","commit":"unknown","coordinator":20190425,"log_level":"info","permit_join":true}'
  zigbee2mqtt:info 8/1/2019, 1:56:58 PM Succesfully reenabled joining

Its config file:

devices:
  '0x90fd9ffffe1f3680':
    friendly_name: '0x90fd9ffffe1f3680'
    retain: false
  '0xd0cf5efffec08c3b':
    friendly_name: '0xd0cf5efffec08c3b'
    retain: false
homeassistant: true
mqtt:
  base_topic: zigbee2mqtt
  password: MQTTUser
  server: mqtt://homeassistant
  user: MQTTUser
permit_join: true
serial:
  port: /dev/ttyACM0

I’ve seen this other page on manually adding devices but not sure where I’d put the config code. https://www.zigbee2mqtt.io/devices/ICPSHC24-30EU-IL-1

Can you check the logs of your Mosquito broker to see if it gets some data there?
Have you configured your HA to listen to the correct mqtt topics?

I’ve followed the guides I could find, how would I configure HA to listen to the correct mqtt topics? Thanks

Mosquitto broker logs:

[INFO] Setup mosquitto configuration
[WARN] SSL not enabled - No valid certs found!
[INFO] Found local users inside config
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1564670262: mosquitto version 1.5.6 starting
1564670262: Config loaded from /etc/mosquitto.conf.
1564670262: |-- *** auth-plug: startup
1564670262: Opening ipv4 listen socket on port 1883.
1564670262: Opening ipv6 listen socket on port 1883.
1564670262: Opening websockets listen socket on port 1884.
1564670262: Warning: Mosquitto should not be run as root/administrator.
1564670307: New connection from 172.30.32.1 on port 1883.
[INFO] found MQTTUser on local database
1564670310: New client connected from 172.30.32.1 as mqttjs_cecb62fa (c1, k60, u'MQTTUser').

Maybe you mean have I added the following:-

mqtt:
discovery: true
broker: 192.168.0.23  # Remove if you want to use builtin-in MQTT broker
birth_message:
  topic: 'hass/status'
  payload: 'online'
will_message:
  topic: 'hass/status'
  payload: 'offline'```

My mqtt config in HA is as follows:

    broker: IP_HERE
    discovery: true
    discovery_prefix: 'homeassistant'
    birth_message:
            topic: 'hass/status'
            payload: 'online'
    will_message:
            topic: 'hass/status'
            payload: 'offline'

Try adding the discovery prefix, see if that helps.

Thanks but that didnt help I’m afraid. I must be doing something wrong here, even though i’m following what I believe to be the correct steps. Think I’ll rebuild from scratch and write down the steps, that way hopefuly somebody can see where I’m messing up. :slight_smile:

Ok so I’ve pulled together the steps I’ve taken, plus the config & log files. Would appreciate any advice on how to get this working. Pulling my hair out :slight_smile:

Word Document

Just started playing with zigbee2mqtt myself a few days ago. Everything looks good from your logs so you should just see under Developer Tools/States a Light and Sensor for that device like mine here

tradfri

Look at the docs here

Turns out the problem was with how i setup the Mosquitto broker.

When following the above instructions I followed the WARNING section about creating explicit ACL definitions. Ignoring this solved my issue. Doh!!! Thanks for all the suggestions.