-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Zigbee2MQTT breaking changes #1090
Comments
MQTT device triggers or event entities are suggested |
Hi @fir3drag0n , Z2M is removing the connection via sensors, and recommend using events. ControllerX allows connecting directly via MQTT, so I recommend you changing to that this type of configuration. You can read more about mqtt config migration here: https://controllerx.netlify.app/controllerx/others/zigbee2mqtt-light-controller/ Regarding E1743, I still have to see what has it changed, so I leave this ticket open. Regards, |
v2.0.0 of Z2M has been released. Here's what I had to do:
Appdaemon configappdaemon:
# ...
plugins:
# ...
MQTT:
type: mqtt
namespace: mqtt
client_host: core-mosquitto
client_user: mqtt
client_password: password
# Listen only to zigbee2mqtt messages
client_topics:
- zigbee2mqtt/# Apps configurationBeforelivingroom_controller:
module: controllerx
class: E1810Controller
controller: sensor.livingroom_controller_action
integration: z2m
light: light.bedroom Afterlivingroom_controller:
module: controllerx
class: E1810Controller
controller: Livingroom Controller # this is the "friendly name" of the device in Z2M
integration:
name: z2m
listen_to: mqtt
light: light.bedroom SuggestionsI suggest updating the second code sample here, it wasn't immediately clear that the MQTT error
The warning disappeared when listening only to z2m messages ( Logs
Edited on 2025-01-04: add appdaemon config example + update on MQTT warning |
Thanks for the guidance! As I'm and likely many others, using the mqtt add-on it might be a good idea to add information about the client_host configuration key in the appdeamon.yaml file. I had to do it like this: appdaemon:
latitude: xx.xxxxxx
longitude: xx.xxxxxx
elevation: x
time_zone: xx/xx
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt
client_host: core-mosquitto
client_user: mqtt
client_password: strong_secret_from_app_deamon_add-on_configuration_page |
The errors you're getting might be related to message formats which AppDaemon does not understand, like frigate streams. You could try and specify the 'client_topics' so it only subscribes to what it needs. Here's what I have: client_topics:
- zigbee2mqtt/# I still can't get this to work unfortunately. It successfully subscribes to z2m, but the actions are not executed somehow. Nothing in the logs. Any ideas? My app config: studiekamer_controller:
module: controllerx
class: Philips929002398602LightController
controller: Studiekamer Dimmer Switch
integration:
name: z2m
listen_to: mqtt
light: light.studiekamer_lampen_dimmer |
Thank you @AlexL00 & @jeroenbeuz, I updated my message above.
Unfortunately no, sorry. |
I have now changed it, however the response is much slower. Also dimming doesn't seem to working any more. Using:
|
@xaviml Isn't it a question of "just" using the same mechanism as for ZHA, I beleive ZHA uses events as well? |
Finally fixed the issue. I reinstalled AppDaemon and ControllerX after it stopped working due to the z2m update. I then added my applications to the app_dir: /homeassistant/appdaemon/apps |
Which apps.yaml file did you edit? You can see if the config has taken effect if you go here: |
Hi @xaviml Issue here is changing to Z2M means that colour looping doesn't work: Are there any suggestions to enable this using any other method? Thanks Phill |
All I have just found an option within zigbee2mqtt that allows for the old action entities to continue to work. You just have to enable it. Go to zigbee2mqtt, and select settings - home assistant integration and then select the option "Home Assistant legacy action sensors". This will then allow your setup to continue to work. How much longer for I have no idea as this might go in the future but I hope it doesn't. I have multiple actions set for my remotes and reverting to z2m controls means I somehow have to get the devices to work with mqtt which at this moment in time I have no idea about, or somehow work out how to call an event rather than an action and I have no idea if this would even work with controllerx. Hopefully this helps someone out there.. Ive been pulling what hair I have left out until I found this in a reddit forum! Cheers Phill |
That's already documented here: Koenkk/zigbee2mqtt#24198
But since it's a legacy option, we should probably find a way to not rely on it too much. |
@xaviml I'm facing an issue with the following config: ampoule_chambre:
module: controllerx
class: E1810Controller
controller: Interrupteur chambre
integration:
name: z2m
listen_to: mqtt
light: light.ampoule_chambre
merge_mapping:
"toggle$2": on_full_brightness
arrow_left_click:
- service: switch.toggle
data:
entity_id: switch.guirlande_chambre
arrow_right_click:
- service: switch.toggle
data:
entity_id: switch.guirlande_chambre
toggle_hold: []
arrow_left_hold: []
arrow_left_release: []
arrow_right_hold: []
arrow_right_release: [] The intent is to use a single press on the "power" button to toggle the light and a double press to trigger full brightness.
If I remove the This didn't happen with the action sensor. |
I ran into trouble with node-red, and found out that there is a setting in Z2M that should be activated: Maybe ControllerX could use this as well @xaviml ? |
This was very helpfull for me, after a couple of hours I realised that friendly names in Z2M are : Now everything is working perfectly fine. Here below 2 examples
|
Bug report
As Zigbee2MQTT 1.42. or 2.0 come with breaking changes (Koenkk/zigbee2mqtt#24198), it also breaks some controllers, such as E1743
Description
The controller does not work anymore.
Additional information
AppDaemon app configuration
The text was updated successfully, but these errors were encountered: