Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95481

(Solved) MQTT & Zigbee2Mqtt & HomeAssistant

$
0
0

@Deten wrote:

Hey,

I set up a docker Mosquitto, Zigbee2Mqtt & HomeAssistant.

On HA, I am using the integration MQTT (nothing in my configuration.yaml)

For Zigbee2mqtt:

I wasnt sure if homeassistant integration was for HASS docker addons or if you are just using homeassistant at all. Since I am running my own docker mqtt I tried both and it didnt solve the problem.

# Home Assistant integration (MQTT discovery)
homeassistant: false

# allow new devices to join
permit_join: true

# MQTT settings
mqtt:
  # MQTT base topic for zigbee2mqtt MQTT messages
  base_topic: zigbee2mqtt
  # MQTT server URL
  server: 'mqtt://192.168.xxx.xxx'
  # MQTT server authentication, uncomment if required:
  user: xx
  password: xx

# Serial settings
serial:
  # Location of CC2531 USB sniffer
  port: /dev/ttyACM1

Zigbee2mqtt Log

info  2020-04-17 15:42:14: Logging to console and directory: '/app/data/log/2020-04-17.15-42-14' filename: log.txt
info  2020-04-17 15:42:15: Starting zigbee2mqtt version 1.12.2 (commit #7d27a54)
info  2020-04-17 15:42:15: Starting zigbee-herdsman...
info  2020-04-17 15:42:16: zigbee-herdsman started
info  2020-04-17 15:42:16: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20180507}}'
info  2020-04-17 15:42:16: Currently 3 devices are joined:
info  2020-04-17 15:42:16: Stat 2 (0x00158d00023208ae): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info  2020-04-17 15:42:16: Stat 3 (0x00158d0002437c56): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info  2020-04-17 15:42:16: Stat 1 (0x00158d0002437b49): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
warn  2020-04-17 15:42:16: `permit_join` set to  `true` in configuration.yaml.
warn  2020-04-17 15:42:16: Allowing new devices to join.
warn  2020-04-17 15:42:16: Set `permit_join` to `false` once you joined all devices.
info  2020-04-17 15:42:16: Zigbee: allowing new devices to join.
info  2020-04-17 15:42:16: Connecting to MQTT server at mqtt://192.168.xxx.xxx
info  2020-04-17 15:42:17: Connected to MQTT server
info  2020-04-17 15:42:17: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info  2020-04-17 15:42:17: MQTT publish: topic 'zigbee2mqtt/Stat 2', payload '{"temperature":22.15,"linkquality":44,"humidity":55.89,"pressure":1012.2,"battery":100,"voltage":3015}'
info  2020-04-17 15:42:17: MQTT publish: topic 'zigbee2mqtt/Stat 3', payload '{"temperature":22.48,"linkquality":36,"humidity":50.2,"pressure":1011.4,"battery":41,"voltage":2895}'
info  2020-04-17 15:42:17: MQTT publish: topic 'zigbee2mqtt/Stat 1', payload '{"battery":100,"voltage":3015,"temperature":22.49,"humidity":57.38,"pressure":1012.2,"linkquality":23}'
info  2020-04-17 15:42:17: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.12.2","commit":"7d27a54","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20180507}},"log_level":"info","permit_join":true}'
info  2020-04-17 15:49:34: MQTT publish: topic 'zigbee2mqtt/Stat 3', payload '{"temperature":22.45,"linkquality":2,"humidity":50.34,"pressure":1011.6,"battery":41,"voltage":2895}'
info  2020-04-17 15:49:34: MQTT publish: topic 'zigbee2mqtt/Stat 3', payload '{"temperature":22.45,"linkquality":7,"humidity":50.34,"pressure":1011.6,"battery":41,"voltage":2895}'

And Mqtt log:

|2020-04-17 22:42:39|stdout|1587163359: New client connected from 192.168.xxx.xxx as auto-F64B2979-88C1-C473-9945-3E9526CF172D (p2, c1, k60, u'xxxx').|
|---|---|---|
|2020-04-17 22:42:39|stdout|1587163359: New connection from 192.168.xxx.xxx on port 1883.|

Finally, in homeassistant it shows mqtt as “No Devices Found” :frowning:

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95481

Trending Articles