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
*Another* Template Variable Warning #8769
Comments
This might have been broken in this release of Home Assistant: |
Maybe so. Either way I am hoping to work out how to resolve this. |
Bump |
The templates in Home assistant need a "default" condition defined now. I set my own custom template to clear the error and posted it here for the Hampton bay fan #8617 I'm not sure how to fix the template sent during mqtt discovery by zigbee2mqtt, otherwise I would submit a pr. The concern is that starting in 2021.4 this is a warning, but per those release notes, will error in a coming release, possibly as soon as 2021.10 So if this isn't fixed, eventually the template will stop working on some future release. |
Thanks. Let me try your templatre and see if that removes my warnings and then we can see if we can work out what has to happen to get a PR done. |
* Fix more template warnings. #8769 * Update * Updates
Can you check if this has been fixed in the latest-dev? (edge for hassio) I see you are still using 1.18.1, probably you are using the old repository; check first point of https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.19.0 Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
Yes no warnings in the logs and everything seems to be working correctly (I am getting a warning about units changing from V to mV for my Xiaomi buttons but that seems correct and understandable so can sort that out myself) Thanks @Koenkk |
Great! |
* Fix more template warnings. Koenkk#8769 * Update * Updates
What happened
I am seeing thousands of these warnings:
What did you expect to happen
Not get thousands of warnings? I did create the converter for these light/fan switches so wondering if I missed something in the config? The model of the wall switch is Smart fan light switch (NUE-ZBFLB) which is causing all the state_button_fan warnings.
I think the action warnings are being generated by my MiJia wireless switch (WXKG01LM)
For the first one i am not sure why I am getting an error about not being able to find the last_seen attribute when the first thing that is checked is the existance of that attribute to avoid just this issue?
How to reproduce it (minimal and precise)
Unfortunately I am not sure about this. I don't know what is causing it to happen in the first place. I have reviewed the following similar issues but they don't seem to help
#6987
#7361
https://community.home-assistant.io/t/mqtt-dict-object-has-no-attribute/297330/49
Debug info
Zigbee2MQTT version: 1.18.1-1
Adapter hardware: CC2531
Adapter firmware version: 20190619
The text was updated successfully, but these errors were encountered: