logo elektroda
logo elektroda
X
logo elektroda

AVATTO Tuya ZigBee3.0 thermostat integration ZigBee3.0 actuator smart thermostat TRV with home assis

hkielp745 1752 53
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 21274418
    hkielp745
    Level 2  
    Well it's better, but still not ideal:
    [19:37:26] INFO: Preparing to start....
    [19:37:28] INFO: Socat not enabled
    [19:37:37] INFO: Starting Zigbee2MQTT...
    Starting Zigbee2MQTT without watchdog.
    [2024-10-23 19:38:03] info: z2m: Logging to console, file (filename: log.log)
    [2024-10-23 19:38:03] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
    [2024-10-23 19:38:03] info: z2m: Starting zigbee-herdsman (2.1.3)
    [2024-10-23 19:38:06] info: zh:ember: Using default stack config.
    [2024-10-23 19:38:06] info: zh:ember: ======== Ember Adapter Starting ========
    [2024-10-23 19:38:06] info: zh:ember:ezsp: ======== EZSP starting ========
    [2024-10-23 19:38:06] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
    [2024-10-23 19:38:06] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
    [2024-10-23 19:38:06] info: zh:ember:uart:ash: Serial port opened
    [2024-10-23 19:38:06] info: zh:ember:uart:ash: ======== ASH starting ========
    [2024-10-23 19:38:07] info: zh:ember:uart:ash: ======== ASH connected ========
    [2024-10-23 19:38:07] info: zh:ember:uart:ash: ======== ASH starting ========
    [2024-10-23 19:38:07] info: zh:ember:ezsp: ======== EZSP started ========
    [2024-10-23 19:38:07] error: z2m: Error while starting zigbee-herdsman
    [2024-10-23 19:38:07] error: z2m: Failed to start zigbee
    [2024-10-23 19:38:07] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
    [2024-10-23 19:38:07] error: z2m: Exiting...
    [2024-10-23 19:38:08] error: z2m: Error: Adapter EZSP protocol version (8) is not supported by Host [13-14].
    at EmberAdapter.emberVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1411:19)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processImmediate (node:internal/timers:447:9)
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:688:9)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)
  • ADVERTISEMENT
  • #32 21274425
    sobel23
    Level 17  
    sobel23 wrote:
    Reload configurations after each change you make.
    What hardware are you running HAOS on?
    .
    Use ember in the serial instead of ezsp
  • ADVERTISEMENT
  • #33 21274429
    hkielp745
    Level 2  
    I already have an ember.
  • #34 21274430
    sobel23
    Level 17  
    still try reloading the HA and unplugging and plugging in the coordinator because you are close :)

    Added after 53 [seconds]:

    hkielp745 wrote:
    I already have an ember
    .

    and it didn't start with ezsp either?

    Added after 3 [minutes]:

    You may need to update the coordinator
  • #35 21274435
    hkielp745
    Level 2  
    From the ezsp something like this:
    [19] INFO: Preparing to start...
    [19] INFO: Socat not enabled
    [19] INFO: Starting Zigbee2MQTT...
    Starting Zigbee2MQTT without watchdog.
    [2024-10-23 19] info: z2m: Logging to console, file (filename: log.log).
    [2024-10-23 19] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
    [2024-10-23 19] info: z2m: Starting zigbee-herdsman (2.1.3)
    [2024-10-23 19] warning: zh:ezsp: 'ezsp' driver is deprecated and will only remain to provide support for older firmware (pre 7.4.x). Migration to 'ember' is recommended. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
    [2024-10-23 19] info: z2m: zigbee-herdsman started (resumed)
    [2024-10-23 19] info: z2m: Coordinator firmware version: '{"meta":{"maintrel": "3 ", "majorrel": "6", "minorrel": "10", "product":8, "revision": "6.10.3.0 build 297"}, "type": "EZSP v8"}'
    [2024-10-23 19] info: z2m: Currently 0 devices are joined.
    [2024-10-23 19] info: z2m: Zigbee: disabling joining new devices.
    [2024-10-23 19] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
    [2024-10-23 19] error: z2m: MQTT error: Connection refused: Not authorized
    [2024-10-23 19] error: z2m: MQTT failed to connect, exiting... (Connection refused: Not authorized)
    [2024-10-23 19] info: z2m: Stopping zigbee-herdsman...
    [2024-10-23 19] info: zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'.
    [2024-10-23 19] info: z2m: Stopped zigbee-herdsman

    Added after 37 [seconds]: .

    And how do you do such a thing?
  • ADVERTISEMENT
  • #36 21274442
    sobel23
    Level 17  
    Are you showing me the logs and trying to enter Z2MQQT?
    AVATTO Tuya ZigBee3.0 thermostat integration ZigBee3.0 actuator smart thermostat TRV with home assis
  • #37 21274448
    hkielp745
    Level 2  
    I only have 502: Bad Gateway.
  • #38 21274449
    sobel23
    Level 17  
    By the way, you've messed something up with Mosquitto Broker
    [2024-10-23 19] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
    [2024-10-23 19] error: z2m: MQTT error: Connection refused: Not authorized
    [2024-10-23 19] error: z2m: MQTT failed to connect, exiting... (Connection refused: Not authorized)
  • #39 21274452
    hkielp745
    Level 2  
    I didn't move Mosquitto Broker as it was so.
  • #40 21274473
    sobel23
    Level 17  
    Maybe you have special characters in your password that can't be there, such as a full stop :) .

    Added after 1 [minute]:

    Logs are ok now only we have a problem with Mosquitto Broker
  • #41 21274481
    hkielp745
    Level 2  
    Well now it's like this:
    [20:12:12] INFO: Preparing to start....
    [20:12:14] INFO: Socat not enabled
    [20:12:22] INFO: Starting Zigbee2MQTT...
    Starting Zigbee2MQTT without watchdog.
    [2024-10-23 20:12:49] info: z2m: Logging to console, file (filename: log.log)
    [2024-10-23 20:12:49] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
    [2024-10-23 20:12:49] info: z2m: Starting zigbee-herdsman (2.1.3)
    [2024-10-23 20:12:51] info: zh:ember: Using default stack config.
    [2024-10-23 20:12:51] info: zh:ember: ======== Ember Adapter Starting ========
    [2024-10-23 20:12:51] info: zh:ember:ezsp: ======== EZSP starting ========
    [2024-10-23 20:12:51] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
    [2024-10-23 20:12:51] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
    [2024-10-23 20:12:51] info: zh:ember:uart:ash: Serial port opened
    [2024-10-23 20:12:51] info: zh:ember:uart:ash: ======== ASH starting ========
    [2024-10-23 20:12:52] info: zh:ember:uart:ash: ======== ASH connected ========
    [2024-10-23 20:12:52] info: zh:ember:uart:ash: ======== ASH starting ========
    [2024-10-23 20:12:52] info: zh:ember:ezsp: ======== EZSP started ========
    [2024-10-23 20:12:52] error: z2m: Error while starting zigbee-herdsman
    [2024-10-23 20:12:52] error: z2m: Failed to start zigbee
    [2024-10-23 20:12:52] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
    [2024-10-23 20:12:52] error: z2m: Exiting...
    [2024-10-23 20:12:53] error: z2m: Error: Adapter EZSP protocol version (8) is not supported by Host [13-14].
    at EmberAdapter.emberVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1411:19)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processImmediate (node:internal/timers:447:9)
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:688:9)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)
  • #42 21274486
    sobel23
    Level 17  
    And what did you do?
    You were supposed to stay with ezsp and only change the password to one without characters in Mosquitto Broker and enter the same password in the configuration 🤔
  • #43 21274490
    hkielp745
    Level 2  
    I have not ezsp changed to ember.
  • #44 21274501
    sobel23
    Level 17  
    hkielp745 wrote:
    Not the ezsp I changed to ember
    .

    Well then as I wrote you were supposed to stay with ezsp and fix the broker problem :) .

    Added after 2 [minutes]:

    you must have the same password as in the configured broker - lowercase and no characters
    and the same server
  • #45 21274512
    hkielp745
    Level 2  
    In mqtt I have these logs:
    2024-10-23 20:26:12: New connection from 172.30.32.2:43624 on port 1883.
    2024-10-23 20:26:12: Client <unknown> closed its connection.
    2024-10-23 20:26:30: New connection from 172.30.33.2:39126 on port 1883.
    2024-10-23 20:26:30: Client mqttjs_eb6a6824 disconnected, not authorised.
  • #46 21274517
    sobel23
    Level 17  
    Show me the configuration tab in the broker
  • #48 21274519
    sobel23
    Level 17  
    "To use the Mosquitto as a broker, go to the integration page and install the configuration with one click:

    Navigate in your Home Assistant frontend to Settings -> Devices & Services -> Integrations.
    MQTT should appear as a discovered integration at the top of the page
    Select it and check the box to enable MQTT discovery if desired, and hit submit."
  • #49 21274527
    hkielp745
    Level 2  
    Well, I have
  • #50 21274531
    sobel23
    Level 17  
    Looks ok. in devices and services go to MQTT > 3 dots > system options and enable 2 available options then > configure > reconfigure > advanced options
    AVATTO Tuya ZigBee3.0 thermostat integration ZigBee3.0 actuator smart thermostat TRV with home assis .

    Added after 42 [seconds]:

    Later, reload and reload HA

    Added after 1 [minute]:

    AVATTO Tuya ZigBee3.0 thermostat integration ZigBee3.0 actuator smart thermostat TRV with home assis .

    Added after 1 [minute]:

    hkielp745 wrote:
    2024-10-23 20:26:30: Client mqttjs_eb6a6824 disconnected, not authorised
    .
    does not pass authorisation somewhere there is still an error

    Added after 2 [minutes]: .

    AVATTO Tuya ZigBee3.0 thermostat integration ZigBee3.0 actuator smart thermostat TRV with home assis .

    Added after 2 [minutes]:

    Once you've checked everything then disable the device completely from HA.
    I still haven't got an answer on what you put HAOS on :P .
  • ADVERTISEMENT
  • #51 21274559
    hkielp745
    Level 2  
    HA has on Dell Wyse 3040 Thin Client Atom x5-z8350

    Added after 7 [minutes]:

    But it still doesn't work.
  • Helpful post
    #52 21274617
    sobel23
    Level 17  
    Well, I'm spreading my arms here for now. Maybe you'll work your way through the instructional videos and eventually it will catch on.
    It was close but you still have something wrong with the broker.
  • #53 21274632
    hkielp745
    Level 2  
    Well I won't do anything but thanks for your help.
  • #54 21274697
    sobel23
    Level 17  
    Don't give up so easily. You can see by the logs where the problem is with what. You can always buy a second coordinator only sonoff dongle P (not e not v2) and combine without "hanging" the whole smart home. Sometimes it is enough to reboot the whole machine and it can start.

Topic summary

The discussion addresses the integration of the AVATTO Tuya ZigBee 3.0 smart actuator and TRV thermostat with Home Assistant (HA) using the ZHA integration versus Zigbee2MQTT. The thermostat is detected by ZHA but lacks full control functionality, prompting recommendations to switch to Zigbee2MQTT for better device support. Users suggest running both ZHA and Zigbee2MQTT simultaneously with separate coordinators, preferably Sonoff Zigbee 3.0 USB Dongle Plus (non-V2) for compatibility. Detailed guidance is provided on configuring Zigbee2MQTT, including disabling ZHA, creating a dedicated MQTT user in HA, installing and configuring the Mosquitto broker, and correctly setting the serial port path and adapter type in Zigbee2MQTT configuration. The importance of matching MQTT credentials and avoiding special characters in passwords is emphasized to resolve authorization errors. Troubleshooting logs reveal common errors such as invalid serial port paths, missing udevadm utility, and adapter driver mismatches (zstack vs. ezsp vs. ember). The Sonoff Dongle Plus V2 requires specifying the 'ezsp' or 'ember' adapter due to different hardware. Users report persistent issues with Zigbee2MQTT startup and MQTT connection refusals, despite following step-by-step video tutorials and configuration advice. The discussion concludes with encouragement to persist, consider a second coordinator for stability, and verify all configuration steps carefully to achieve successful integration.
Summary generated by the language model.
ADVERTISEMENT