My Home Assistant logs are flooded with entries like the following:
2024-07-15 20:26:32.114 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘dict object’ has no attribute ‘ledColorForFanControlMode’ when rendering ‘{{ value_json.ledColorForFanControlMode }}’
I get them for the attributes ledColorForFanControlMode, highLevelForFanControlMode, singleTapBehavior, quickStartTime, fanControlMode, fanLedLevelType, lowLevelForFanControlMode, and mediumLevelForFanControlMode.
By “flooded” I mean 180,000+ messages in the last five days.
I have seven VZM31-SN switches. If I look at the HA device info page I can see these attributes, but they’re all in the “unknown” state:
The Z2M “Exposes” tab for each of the switches shows those attributes, each with no set value:
Thanks @rohan, I was just writing a post explaining what I’d discovered. Updating to 2.18 doesn’t seem like a desirable solution for folks who want to stay on production firmware, seeing as the latest production firmware is 2.15.
All but one of my switches are on firmware versions prior to 2.17. The one switch that is on 2.17 has values populated for these parameters in the Z2M “Exposes” tab and has valid states in the HA device info page.
So the problem is that unless your switches have a beta firmware version installed, current versions of Z2M are going to result in spamming the log with these errors.
So you can’t run production firmware and stay up-to-date with your Z2M version? AFAICT there doesn’t seem to be a way to even detect that you’re about to get into this state when updating Z2M.
I believe that’s a Z2M issue. I’m not aware of it supporting different params at different firmware versions (unlike Z-Wave JS).
That said, I would encourage you to upgrade to 2.18. It’s currently the version shipping with new switches from the manufacturer and has been extensively tested and deemed reliable.
Thanks for that info. The firmware revision page doesn’t even mention 2.18 yet and the GitHub repo still has it in the “beta” folder, so I couldn’t tell if it was ready for use.
This is an interesting discussion though for those that do not want to update their firmware. Some people are in the “if it ain’t broke, why fix it” camp (very few I know). It would be useful to know a workaround in that scenario . . . but I don’t know one at this time.
Some people are in the “if it ain’t broke, why fix it” camp
Especially given your own documentation says, “Beta firmware is considered unstable - please update at your own risk”.
Also, I was confused as to why these parameters were even here, since the VZM31 isn’t for controlling fans. But I just found your fan controller module and it all clicked.