Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)

It has to go in the serial section. https://www.zigbee2mqtt.io/information/configuration.html

serial:
  # Required: location of the adapter (e.g. CC2531).
  # To autodetect the port, set 'port: null'.
  port: /dev/ttyACM0
  # Optional: disable LED of the adapter if supported (default: false)
  disable_led: false

Could you show us your configuration?

it’s like the one posted by dojf, but without the disable_led line.
Ops… maybe I found the problem, i forgot to put the “,”!!!

Edit: ops…that was the problem :stuck_out_tongue:

Edit2: 1.8.0 is out. let’s update again!

I updated yesterday to 1.8.0, had no problems.

I seem to run into issues after my upgrade from 1.7.1 to 1.8. Everything worked fine until this release and I have upgraded multiple versions, including the breaking version post 1.6…

I updated the add-on as usual (running Hassio on an RPI).

Error log shows this :

2019-12-19T08:32:31: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.8.0
> node index.js
zigbee2mqtt:info  2019-12-19 08:32:36: Logging to console and directory: '/share/zigbee2mqtt/log/2019-12-19.08-32-36'
zigbee2mqtt:info  2019-12-19 08:32:37: Starting zigbee2mqtt version 1.8.0 (commit #unknown)
zigbee2mqtt:info  2019-12-19 08:32:37: Starting zigbee-herdsman...
zigbee2mqtt:info  2019-12-19 08:32:39: zigbee-herdsman started
zigbee2mqtt:info  2019-12-19 08:32:39: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190109}}'
zigbee2mqtt:error 2019-12-19 08:32:45: Failed to start zigbee
zigbee2mqtt:error 2019-12-19 08:32:45: Exiting...
zigbee2mqtt:error 2019-12-19 08:32:45: Error: SRSP - UTIL - ledControl after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/zigbee2mqtt-1.8.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
npm
 ERR! code ELIFECYCLE
npm ERR! errno 1
npm
 ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR!
 Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-19T07_32_45_256Z-debug.log

the log in the log folder shows this:

info  2019-12-19 08:36:34: Logging to console and directory: '/share/zigbee2mqtt/log/2019-12-19.08-36-34'
info  2019-12-19 08:36:35: Starting zigbee2mqtt version 1.8.0 (commit #unknown)
info  2019-12-19 08:36:35: Starting zigbee-herdsman...
info  2019-12-19 08:36:37: zigbee-herdsman started
info  2019-12-19 08:36:37: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190109}}'
error 2019-12-19 08:36:38: Failed to call 'DeviceReceive' 'onZigbeeEvent' (TypeError: Cannot read property 'ieeeAddr' of null
    at DeviceReceive.canHandleEvent (/zigbee2mqtt-1.8.0/lib/extension/deviceReceive.js:62:55)
    at DeviceReceive.onZigbeeEvent (/zigbee2mqtt-1.8.0/lib/extension/deviceReceive.js:101:19)
    at Controller.callExtensionMethod (/zigbee2mqtt-1.8.0/lib/controller.js:322:44)
    at Controller.onZigbeeEvent (/zigbee2mqtt-1.8.0/lib/controller.js:226:14)
    at Zigbee.emit (events.js:198:13)
    at Controller.herdsman.on (/zigbee2mqtt-1.8.0/lib/zigbee.js:57:52)
    at Controller.emit (events.js:198:13)
    at Controller.<anonymous> (/zigbee2mqtt-1.8.0/node_modules/zigbee-herdsman/dist/controller/controller.js:446:22)
    at Generator.next (<anonymous>)
    at /zigbee2mqtt-1.8.0/node_modules/zigbee-herdsman/dist/controller/controller.js:8:71)
error 2019-12-19 08:36:38: Not connected to MQTT server!
error 2019-12-19 08:36:38: Cannot send message: topic: 'homeassistant/switch/0x00158d0002677734/switch/config', payload: '{"payload_off":"OFF","payload_on":"ON","value_template":"{{ value_json.state }}","command_topic":"zigbee2mqtt/0x00158d0002677734/set","state_topic":"zigbee2mqtt/0x00158d0002677734","json_attributes_topic":"zigbee2mqtt/0x00158d0002677734","name":"0x00158d0002677734_switch","unique_id":"0x00158d0002677734_switch_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002677734"],"name":"0x00158d0002677734","sw_version":"Zigbee2mqtt 1.8.0","model":"Mi power plug ZigBee (ZNCZ02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}
error 2019-12-19 08:36:38: Not connected to MQTT server!
error 2019-12-19 08:36:38: Cannot send message: topic: 'homeassistant/sensor/0x00158d0002677734/power/config', payload: '{"unit_of_measurement":"W","icon":"mdi:factory","value_template":"{{ value_json.power }}","state_topic":"zigbee2mqtt/0x00158d0002677734","json_attributes_topic":"zigbee2mqtt/0x00158d0002677734","name":"0x00158d0002677734_power","unique_id":"0x00158d0002677734_power_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002677734"],"name":"0x00158d0002677734","sw_version":"Zigbee2mqtt 1.8.0","model":"Mi power plug ZigBee (ZNCZ02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}
error 2019-12-19 08:36:38: Not connected to MQTT server!
error 2019-12-19 08:36:38: Cannot send message: topic: 'homeassistant/sensor/0x00158d0002677734/linkquality/config', payload: '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0002677734","json_attributes_topic":"zigbee2mqtt/0x00158d0002677734","name":"0x00158d0002677734_linkquality","unique_id":"0x00158d0002677734_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002677734"],"name":"0x00158d0002677734","sw_version":"Zigbee2mqtt 1.8.0","model":"Mi power plug ZigBee (ZNCZ02LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}
error 2019-12-19 08:36:43: Failed to start zigbee

As controller, I use a CC2530 with a USB to TTL (https://es.aliexpress.com/item/32673467746.html?spm=a2g0s.9042311.0.0.72684c4drdWMjj).

Again, all works fine with 1.7.1, but not with 1.8 and restoring the backup for the RPI so that I´m back on 1.7.1 makes everything work again?

Would someone have a clue?

Hi,
Is it possible to use the bind-function on IKEA TRÅDRFRI motion sensor to a IKEA TRÅDFRI e27 bulb? Or is the BIND function not possible with the motion sensor?

Hi all,

I’m just trying out zigbee2mqtt and run into a lot of troubles with ikea tradfri bulbs. See the logs below. Any idea’s?

P.s.: I already created an issue on Github but since there is so much knowledge here in this forum, I thought I’d ask for help here too.

info  2019-12-31 00:20:09: Logging to console and directory: '/app/data/log/2019-12-31.00-20-09'
debug 2019-12-31 00:20:09: Loaded state from file /app/data/state.json
info  2019-12-31 00:20:09: Starting zigbee2mqtt version 1.8.0 (commit #da4d26a)
info  2019-12-31 00:20:09: Starting zigbee-herdsman...
debug 2019-12-31 00:20:09: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":"HIDDEN"},"databasePath":"/app/data/database.db","databaseBackupPath":"/app/data/database.db.backup","backupPath":"/app/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM1"}}'
info  2019-12-31 00:20:11: zigbee-herdsman started
info  2019-12-31 00:20:11: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
debug 2019-12-31 00:20:11: Zigbee network parameters: {"panID":6754,"extendedPanID":"0xdddddddddddddddd","channel":11}
info  2019-12-31 00:20:11: Currently 4 devices are joined:
info  2019-12-31 00:20:11: Zigbee Versterker (0x000d6ffffe903bbf): E1746 - IKEA TRADFRI signal repeater (Router)
info  2019-12-31 00:20:11: Gang PIR (0xccccccfffec78f65): E1525 - IKEA TRADFRI motion sensor (EndDevice)
info  2019-12-31 00:20:11: 0x000b57fffea82c85 (0x000b57fffea82c85): LED1650R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info  2019-12-31 00:20:11: 0x000b57fffeb961c0 (0x000b57fffeb961c0): LED1650R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
warn  2019-12-31 00:20:11: `permit_join` set to  `true` in configuration.yaml.
warn  2019-12-31 00:20:11: Allowing new devices to join.
warn  2019-12-31 00:20:11: Set `permit_join` to `false` once you joined all devices.
info  2019-12-31 00:20:11: Zigbee: allowing new devices to join.
info  2019-12-31 00:20:11: Connecting to MQTT server at mqtt://192.168.1.250
info  2019-12-31 00:20:11: Connected to MQTT server
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/Zigbee Versterker', payload '{"linkquality":21}'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/Gang PIR', payload '{"occupancy":true,"linkquality":49,"battery":100}'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/0x000b57fffea82c85', payload '{"state":"OFF","brightness":61}'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":61}'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.8.0","commit":"da4d26a","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}},"log_level":"debug","permit_join":false}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/sensor/0x000d6ffffe903bbf/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Zigbee Versterker","json_attributes_topic":"zigbee2mqtt/Zigbee Versterker","name":"Zigbee Versterker_linkquality","unique_id":"0x000d6ffffe903bbf_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000d6ffffe903bbf"],"name":"Zigbee Versterker","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI signal repeater (E1746)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/binary_sensor/0xccccccfffec78f65/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/Gang PIR","json_attributes_topic":"zigbee2mqtt/Gang PIR","name":"Gang PIR_occupancy","unique_id":"0xccccccfffec78f65_occupancy_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xccccccfffec78f65"],"name":"Gang PIR","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI motion sensor (E1525)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/sensor/0xccccccfffec78f65/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Gang PIR","json_attributes_topic":"zigbee2mqtt/Gang PIR","name":"Gang PIR_battery","unique_id":"0xccccccfffec78f65_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xccccccfffec78f65"],"name":"Gang PIR","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI motion sensor (E1525)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/sensor/0xccccccfffec78f65/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Gang PIR","json_attributes_topic":"zigbee2mqtt/Gang PIR","name":"Gang PIR_linkquality","unique_id":"0xccccccfffec78f65_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xccccccfffec78f65"],"name":"Gang PIR","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI motion sensor (E1525)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/light/0x000b57fffea82c85/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/0x000b57fffea82c85/set","state_topic":"zigbee2mqtt/0x000b57fffea82c85","json_attributes_topic":"zigbee2mqtt/0x000b57fffea82c85","name":"0x000b57fffea82c85_light","unique_id":"0x000b57fffea82c85_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea82c85"],"name":"0x000b57fffea82c85","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/sensor/0x000b57fffea82c85/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x000b57fffea82c85","json_attributes_topic":"zigbee2mqtt/0x000b57fffea82c85","name":"0x000b57fffea82c85_linkquality","unique_id":"0x000b57fffea82c85_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea82c85"],"name":"0x000b57fffea82c85","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/light/0x000b57fffeb961c0/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/0x000b57fffeb961c0/set","state_topic":"zigbee2mqtt/0x000b57fffeb961c0","json_attributes_topic":"zigbee2mqtt/0x000b57fffeb961c0","name":"0x000b57fffeb961c0_light","unique_id":"0x000b57fffeb961c0_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffeb961c0"],"name":"0x000b57fffeb961c0","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2019-12-31 00:20:11: MQTT publish: topic 'homeassistant/sensor/0x000b57fffeb961c0/linkquality/config', payload '{"unit_of_measurement":"-","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x000b57fffeb961c0","json_attributes_topic":"zigbee2mqtt/0x000b57fffeb961c0","name":"0x000b57fffeb961c0_linkquality","unique_id":"0x000b57fffeb961c0_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffeb961c0"],"name":"0x000b57fffeb961c0","sw_version":"Zigbee2mqtt 1.8.0","model":"TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
debug 2019-12-31 00:21:51: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:21:51: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:21:56: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON"}'
debug 2019-12-31 00:21:56: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:21:57: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:21:57: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:21:57: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
debug 2019-12-31 00:21:59: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:21:59: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:22:00: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON"}'
debug 2019-12-31 00:22:00: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:22:01: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON"}'
debug 2019-12-31 00:22:01: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:22:01: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:22:01: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:22:03: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:22:03: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:22:03: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
info  2019-12-31 00:22:03: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":61}'
info  2019-12-31 00:22:03: MQTT publish: topic 'zigbee2mqtt/0x000b57fffea82c85', payload '{"state":"ON","brightness":61}'
info  2019-12-31 00:22:03: MQTT publish: topic 'zigbee2mqtt/0x000b57fffea82c85', payload '{"state":"OFF","brightness":61}'
info  2019-12-31 00:22:07: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"OFF","brightness":61}'
info  2019-12-31 00:22:07: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"OFF"}'
info  2019-12-31 00:22:07: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":61}'
info  2019-12-31 00:22:07: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON"}'
debug 2019-12-31 00:22:59: Received MQTT message on 'zigbee2mqtt/bridge/networkmap' with data 'graphviz'
info  2019-12-31 00:22:59: Starting network scan (includeRoutes 'false')
error 2019-12-31 00:23:09: Failed to execute LQI for 'Coordinator'
error 2019-12-31 00:23:19: Failed to execute LQI for 'Zigbee Versterker'
error 2019-12-31 00:23:29: Failed to execute LQI for '0x000b57fffea82c85'
debug 2019-12-31 00:23:29: LQI succeeded for '0x000b57fffeb961c0'
info  2019-12-31 00:23:29: Network scan finished
info  2019-12-31 00:23:29: MQTT publish: topic 'zigbee2mqtt/bridge/networkmap/graphviz', payload 'digraph G {
node[shape=record];
  "0x00124b0018e2491f" [style="bold, filled", fillcolor="#e04e5d", fontcolor="#ffffff", label="{Coordinator|0x00124b0018e2491f (0)failed: lqi|2019-12-31T00:23:29+01:00}"];
  "0x00124b0018e2491f" -> "0x000b57fffeb961c0" [penwidth=0.5, weight=0, color="#994444", label="97"]
  "0x000d6ffffe903bbf" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Zigbee Versterker|0x000d6ffffe903bbf (34684)failed: lqi|IKEA TRADFRI signal repeater (E1746)|unknown}"];
  "0x000d6ffffe903bbf" -> "0x000b57fffeb961c0" [penwidth=0.5, weight=0, color="#994444", label="140"]
  "0xccccccfffec78f65" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Gang PIR|0xccccccfffec78f65 (9023)|IKEA TRADFRI motion sensor (E1525)|unknown}"];
  "0x000b57fffea82c85" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0x000b57fffea82c85|0x000b57fffea82c85 (28427)failed: lqi|IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)|2019-12-31T00:22:03+01:00}"];
  "0x000b57fffea82c85" -> "0x000b57fffeb961c0" [penwidth=0.5, weight=0, color="#994444", label="120"]
  "0x000b57fffeb961c0" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0x000b57fffeb961c0|0x000b57fffeb961c0 (32192)|IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (LED1650R5)|2019-12-31T00:22:07+01:00}"];
}'
debug 2019-12-31 00:24:06: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 85}'
debug 2019-12-31 00:24:06: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:24:16: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:24:16: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:24:16: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:24:16: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 82}'
debug 2019-12-31 00:24:16: Publishing 'set' 'state' to '0x000b57fffeb961c0'
info  2019-12-31 00:24:17: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":82}'
info  2019-12-31 00:24:17: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON","brightness":82}'
debug 2019-12-31 00:24:24: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:24:24: Publishing 'set' 'state' to '0x000b57fffeb961c0'
error 2019-12-31 00:24:34: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:24:34: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:24:34: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
debug 2019-12-31 00:25:09: Saving state to file /app/data/state.json
debug 2019-12-31 00:26:13: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON"}'
debug 2019-12-31 00:26:13: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:26:17: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:26:17: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:26:17: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON"}'
debug 2019-12-31 00:26:17: Publishing 'set' 'state' to '0x000b57fffeb961c0'
error 2019-12-31 00:26:23: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:26:23: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:26:23: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
error 2019-12-31 00:26:23: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:26:23: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:26:23: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
info  2019-12-31 00:26:33: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":82}'
info  2019-12-31 00:26:33: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON","brightness":82}'
debug 2019-12-31 00:29:01: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "OFF"}'
debug 2019-12-31 00:29:01: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:29:04: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON"}'
debug 2019-12-31 00:29:04: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:29:07: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:29:07: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:07: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
debug 2019-12-31 00:29:13: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 188}'
debug 2019-12-31 00:29:13: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:29:13: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:29:13: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:13: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:29:16: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 255}'
debug 2019-12-31 00:29:16: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:29:19: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 255}'
debug 2019-12-31 00:29:19: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:29:23: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 146}'
debug 2019-12-31 00:29:23: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:29:23: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:29:23: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:23: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:29:25: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 82}'
debug 2019-12-31 00:29:25: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:29:25: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 53}'
debug 2019-12-31 00:29:25: Publishing 'set' 'state' to '0x000b57fffea82c85'
debug 2019-12-31 00:29:27: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 26}'
debug 2019-12-31 00:29:27: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:29:43: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:29:43: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:43: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:29:52: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 32}'
debug 2019-12-31 00:29:52: Publishing 'set' 'state' to '0x000b57fffeb961c0'
error 2019-12-31 00:29:53: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:29:53: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:53: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
error 2019-12-31 00:29:58: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:29:58: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:29:58: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
debug 2019-12-31 00:30:02: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 15}'
debug 2019-12-31 00:30:02: Publishing 'set' 'state' to '0x000b57fffeb961c0'
info  2019-12-31 00:30:03: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":15}'
info  2019-12-31 00:30:03: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON","brightness":15}'
error 2019-12-31 00:30:03: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:30:03: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:30:03: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:30:06: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 76}'
debug 2019-12-31 00:30:06: Publishing 'set' 'state' to '0x000b57fffeb961c0'
error 2019-12-31 00:30:09: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:30:09: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":53}'
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/0x000b57fffea82c85', payload '{"state":"ON","brightness":53}'
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":26}'
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/0x000b57fffea82c85', payload '{"state":"ON","brightness":26}'
debug 2019-12-31 00:30:09: Saving state to file /app/data/state.json
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":76}'
info  2019-12-31 00:30:09: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON","brightness":76}'
debug 2019-12-31 00:30:10: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 15}'
debug 2019-12-31 00:30:10: Publishing 'set' 'state' to '0x000b57fffeb961c0'
debug 2019-12-31 00:30:15: Received MQTT message on 'zigbee2mqtt/0x000b57fffeb961c0/set' with data '{"state": "ON", "brightness": 1}'
debug 2019-12-31 00:30:15: Publishing 'set' 'state' to '0x000b57fffeb961c0'
error 2019-12-31 00:30:16: Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'
debug 2019-12-31 00:30:16: Error: SRSP - AF - dataRequest after 6000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:30:16: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffeb961c0' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"0x000b57fffeb961c0"}}'
info  2019-12-31 00:30:17: MQTT publish: topic 'zigbee2mqtt/group_1', payload '{"state":"ON","brightness":1}'
info  2019-12-31 00:30:17: MQTT publish: topic 'zigbee2mqtt/0x000b57fffeb961c0', payload '{"state":"ON","brightness":1}'
debug 2019-12-31 00:30:24: Received MQTT message on 'zigbee2mqtt/0x000b57fffea82c85/set' with data '{"state": "ON", "brightness": 1}'
debug 2019-12-31 00:30:24: Publishing 'set' 'state' to '0x000b57fffea82c85'
error 2019-12-31 00:30:39: Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'
debug 2019-12-31 00:30:39: Error: AREQ - AF - dataConfirm after 10000ms
    at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
info  2019-12-31 00:30:39: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to '0x000b57fffea82c85' failed: 'Error: AREQ - AF - dataConfirm after 10000ms'","meta":{"friendly_name":"0x000b57fffea82c85"}}'
debug 2019-12-31 00:35:09: Saving state to file /app/data/state.json

I have a quite standard setup… running docker on an Ubuntu laptop…

Aha, Ubuntu. Did you disable/uninstall modemmanager ?

It was not installed… (to be honest, I’m running linux mint 19.1 based on Ubuntu 18.04).

For those interested I managed to get my non TRÅDFRI devices connected to my TRÅDFRI signal repeater:

1 Like

I have a Xiaomi aqara temperature/humidity/pressure sensor conncted to a TRÅDFRI signal repeater, the association took place automatically after a new pairing, but all my other xioami devices don’t want to use my TRÅDFRI signal repeater or my TRÅDFRI control outlet. How can i force my xiaomi devices to use an ikea router device?

The Xiaomi devices don’t like changing router, and most devices won’t just change route without a reason. You can force the issue by stopping Z2M and removing the USB stick for an hour. When things come back up they’ll identify a new “best” route, which may still mean they don’t use the new Tradfri devices.

Ok, i will try. Thanks a lot!

Did you have to do any crazy stuff to get this to work? Was thinking to grab one or two of those ikea repeaters myself

I re-paired my devices because I was setting up my HA install from scratch. As I don’t have too many it want a big issue. Also don’t know if 1.9 had any bearing on it.

Dear all,

I’m not sure if this is the right place to ask something but I will try. I want to start a relay if the temperature goes before a value (25 degree) and turn it off if the temperature goes below.
The value or the urn off/on is not important right now.
The only thing that I want to do in first step is to turn off the relay when temperature reach 25 degree.

I’m using an Awara 2 ways relay and an aqara temperature/humidity sensor.

The code is wrong probably. What should I change? Thank you very much.

- alias: temperatura_baie
  id: 'temperaturabaie_baie'
  trigger:
    platform: mqtt
    topic: 'zigbee2mqtt/0x00158d00****'
  condition:
    condition: template
    value_template: '{{ value_json.temperature > 25 }}'
#    above: 25
  action:
    entity_id: switch.0x00158d0003*****_switch_l1
    service: switch.turn_off

@joystick
I’m using the generic thermostat, really recommend it since it’s easy getting started:

@ antonholmstedt

Thank you. It’s a nice component. Can you please help me a little bit?
How should i write the sensors connected trough zigbeemqtt?

Something is wrong in my code:

climate:
  - platform: generic_thermostat
    name: Study
    heater: 0x00158d000*_switch_l1
    target_sensor: 0x00158d000*_temperature 
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 25
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.1

Probably :

climate:
  - platform: generic_thermostat
    name: Study
    heater: switch.0x00158d000*_switch_l1
    target_sensor: sensor.0x00158d000*_temperature 
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 25
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 16
    precision: 0.1