-
Notifications
You must be signed in to change notification settings - Fork 29
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
code_format: null #71
Comments
This attribute has nothing to do with HA in general but has its meaning in some Lovelace cards (like alarm card). When you describe the issue, it would be great to see real evidence rather than "the Alarm tile does not work because this attribute is null" as I personally don't use TileBoard and don't know how to deal with such an issue. This attribute exists in |
Ok, I agree my comment was a bit vague and I did not do my reading on it. So I checked the documentation of the alarm control panel entity here https://developers.home-assistant.io/docs/en/entity_alarm_control_panel.html#code-formats.
I think that description is rather clear. Since this alarm component only support number codes it should be number or at least none. I think the issue is with null. I also checked the code (I'm far from a coder. I'm a decent reverse engineer/ugly hacker) and the code actually includes setting this attribute but it does not seem to do it correctly. I can of course do a really ugly hack and just set the res = "number" as a workaround but I would be happy to see this working as intended. Thanks for you hard work! :) |
As you can see from the code, this integration returns None or Number (at least I believe that's the value of that Will look into it soon, it won't take too long so don't rush with your workaround ;) |
Here's the debug printout:
Looking at HA states (0.103.0) I can see loads of automations with |
There you go. |
Thanks for the investigation. I found the issue now. |
Thanks for the update. |
Hi,
I'm not sure where this attribute is used throughout HA but I use the TileBoard dashboard and the Alarm tile does not work because this attribute is null. Looking at the manual alarm control panel I see that this attribute is "number". As soon as I set this manually to "number" it works as expected. Actually setting it to anything else then "null" works so I think this integration should set the attribute accordingly.
I think this is a standard attribute in the Alarm control panel component in HA and should be set.
Thanks!
The text was updated successfully, but these errors were encountered: