Hi, I’am new with hassio.
I made a connection with xiaomi temp/hum/pressure sensor with a zigbee2mqtt dongle and home assistant. But I can’t find how the see the payload in home assistant.
So what did I do:
zigbee config:
{
“data_path”: “/share/zigbee2mqtt”,
“homeassistant”: true,
“permit_join”: true,
“mqtt_base_topic”: “zigbee2mqtt”,
“mqtt_server”: “mqtt://homeassistant”,
“serial_port”: “/dev/ttyACM0”,
“devices”: ,
“network_key”:
}
my zigbee yaml:
devices:
‘0x00158d0003498ebc’:
friendly_name: xiaomi_temp_living
retain: false
homeassistant: true
mqtt:
base_topic: zigbee2mqtt
discovery: true
server: mqtt://homeassistant
permit_join: true
serial:
port: /dev/ttyACM0
my zigbee log:
Log
[Info] Configuration file found: /share/zigbee2mqtt/configuration.yaml
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
2019-07-14T10:05:41: PM2 log: Launching in no daemon mode
2019-07-14T10:05:41: PM2 log: App [npm:0] starting in -fork mode-
2019-07-14T10:05:41: PM2 log: App [npm:0] online
[email protected] start /zigbee2mqtt-1.4.0
node index.js
zigbee2mqtt:info 7/14/2019, 10:05:48 AM Logging to directory: ‘/share/zigbee2mqtt/log/2019-07-14.10-05-48’
zigbee2mqtt:info 7/14/2019, 10:05:51 AM Starting zigbee2mqtt version 1.4.0 (commit #unknown)
zigbee2mqtt:info 7/14/2019, 10:05:51 AM Starting zigbee-shepherd
zigbee2mqtt:info 7/14/2019, 10:05:53 AM zigbee-shepherd started
zigbee2mqtt:info 7/14/2019, 10:05:53 AM Coordinator firmware version: ‘20190608’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM Currently 1 devices are joined:
zigbee2mqtt:info 7/14/2019, 10:05:54 AM xiaomi_temp_living (0x00158d0003498ebc): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:warn 7/14/2019, 10:05:54 AMpermit_join
set totrue
in configuration.yaml.
zigbee2mqtt:warn 7/14/2019, 10:05:54 AM Allowing new devices to join.
zigbee2mqtt:warn 7/14/2019, 10:05:54 AM Setpermit_join
tofalse
once you joined all devices.
zigbee2mqtt:info 7/14/2019, 10:05:54 AM Zigbee: allowing new devices to join.
zigbee2mqtt:info 7/14/2019, 10:05:54 AM Connecting to MQTT server at mqtt://homeassistant
zigbee2mqtt:info 7/14/2019, 10:05:54 AM zigbee-shepherd ready
zigbee2mqtt:info 7/14/2019, 10:05:54 AM Connected to MQTT server
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘online’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘zigbee2mqtt/xiaomi_temp_living’, payload ‘{“temperature”:22.15,“linkquality”:65,“humidity”:60.86,“pressure”:1019,“battery”:100,“voltage”:3005}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘homeassistant/sensor/0x00158d0003498ebc/temperature/config’, payload ‘{“unit_of_measurement”:“°C”,“device_class”:“temperature”,“value_template”:“{{ value_json.temperature }}”,“state_topic”:“zigbee2mqtt/xiaomi_temp_living”,“json_attributes_topic”:“zigbee2mqtt/xiaomi_temp_living”,“name”:“xiaomi_temp_living_temperature”,“unique_id”:“0x00158d0003498ebc_temperature_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0003498ebc”,“name”:“xiaomi_temp_living”,“sw_version”:“Zigbee2mqtt 1.4.0”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘homeassistant/sensor/0x00158d0003498ebc/humidity/config’, payload ‘{“unit_of_measurement”:“%”,“device_class”:“humidity”,“value_template”:“{{ value_json.humidity }}”,“state_topic”:“zigbee2mqtt/xiaomi_temp_living”,“json_attributes_topic”:“zigbee2mqtt/xiaomi_temp_living”,“name”:“xiaomi_temp_living_humidity”,“unique_id”:“0x00158d0003498ebc_humidity_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0003498ebc”,“name”:“xiaomi_temp_living”,“sw_version”:“Zigbee2mqtt 1.4.0”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘homeassistant/sensor/0x00158d0003498ebc/pressure/config’, payload ‘{“unit_of_measurement”:“hPa”,“device_class”:“pressure”,“value_template”:“{{ value_json.pressure }}”,“state_topic”:“zigbee2mqtt/xiaomi_temp_living”,“json_attributes_topic”:“zigbee2mqtt/xiaomi_temp_living”,“name”:“xiaomi_temp_living_pressure”,“unique_id”:“0x00158d0003498ebc_pressure_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0003498ebc”,“name”:“xiaomi_temp_living”,“sw_version”:“Zigbee2mqtt 1.4.0”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘homeassistant/sensor/0x00158d0003498ebc/battery/config’, payload ‘{“unit_of_measurement”:“%”,“device_class”:“battery”,“value_template”:“{{ value_json.battery }}”,“state_topic”:“zigbee2mqtt/xiaomi_temp_living”,“json_attributes_topic”:“zigbee2mqtt/xiaomi_temp_living”,“name”:“xiaomi_temp_living_battery”,“unique_id”:“0x00158d0003498ebc_battery_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0003498ebc”,“name”:“xiaomi_temp_living”,“sw_version”:“Zigbee2mqtt 1.4.0”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘homeassistant/sensor/0x00158d0003498ebc/linkquality/config’, payload ‘{“unit_of_measurement”:“-”,“value_template”:“{{ value_json.linkquality }}”,“state_topic”:“zigbee2mqtt/xiaomi_temp_living”,“json_attributes_topic”:“zigbee2mqtt/xiaomi_temp_living”,“name”:“xiaomi_temp_living_linkquality”,“unique_id”:“0x00158d0003498ebc_linkquality_zigbee2mqtt”,“device”:{“identifiers”:“zigbee2mqtt_0x00158d0003498ebc”,“name”:“xiaomi_temp_living”,“sw_version”:“Zigbee2mqtt 1.4.0”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
zigbee2mqtt:info 7/14/2019, 10:05:54 AM MQTT publish: topic ‘zigbee2mqtt/bridge/config’, payload ‘{“version”:“1.4.0”,“commit”:“unknown”,“coordinator”:20190608,“log_level”:“info”,“permit_join”:true}’
zigbee2mqtt:info 7/14/2019, 10:09:14 AM Succesfully reenabled joining
my mosquitto config
{
“logins”: [
{
“username”: “mymosquittousername”,
“password”: “mymosquittopw”
}
],
“anonymous”: true,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
my mosquitto log
[10:05:24] INFO: Setup mosquitto configuration
[10:05:24] WARNING: SSL not enabled - No valid certs found!
[10:05:24] INFO: Found local users inside config
[10:05:25] INFO: Initialize Hass.io Add-on services
[10:05:25] INFO: Initialize Home Assistant discovery
[10:05:25] INFO: Start Mosquitto daemon
1563091525: mosquitto version 1.6.3 starting
1563091525: Config loaded from /etc/mosquitto.conf.
1563091525: Loading plugin: /usr/share/mosquitto/auth-plug.so
1563091525: |-- *** auth-plug: startup
1563091525: ├── Username/password checking enabled.
1563091525: ├── TLS-PSK checking enabled.
1563091525: └── Extended authentication not enabled.
1563091525: Opening ipv4 listen socket on port 1883.
1563091525: Opening ipv6 listen socket on port 1883.
1563091525: Opening websockets listen socket on port 1884.
1563091525: Warning: Mosquitto should not be run as root/administrator.
1563091554: New connection from 172.30.32.1 on port 1883.
1563091554: New client connected from 172.30.32.1 as mqttjs_ff362508 (p2, c1, k60).
1563091560: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1563091561: New client connected from 172.30.32.1 as auto-D84F900D-CEC4-9C37-F2AC-8EBF1DF8F067 (p2, c1, k60, u’homeassistant’).
my configuration.yaml
…
Mqtt
mqtt:
broker: homeassistant
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: ‘hass/status’
payload: ‘online’
will_message:
topic: ‘hass/status’
payload: ‘offline’
#Sensors
sensor:
- platform: mqtt
state_topic: “zigbee2mqtt/xiaomi_temp_living”
name: “Living Temperatuur”
unit_of_measurement: “°C”
value_template: “{{ value_json.temperature }}”
…
What did I wrong ??? I don’t see it. Please advice what I have to change.
Many thanks