I’m using ha, knx and hue. I have a knx phyisical light switch which triggers a automation to turn the light on. It works perfect and I can change the color etc.
But… from time to time the light turns on in the middle of the night and it is only in the night. I checked the logs and I don’t know why the light is turned on. We also use hue in other rooms but without the knx light switch. So only this combination is the problem.
Thank you very much for the interesting blueprint! I have to check it and how to use it in my case. I have a button to toggle between 0%, 50% and 100% brightnes and a second button to toggle between to color.
your KNX tunnel is not connected. If it gets reconnected, the state changes from “unavailable” to whatever it reads from the bus → your automation may trigger
Check the history, not the current state - you will see if and when it changed from unavailable to something else
the entity you are looking at is not the one referenced by your yaml configuration, but an orphaned entity. Have a look at if you find a similar one - with _1 or something like that appended to the name. This can happen if you change the significant group address of a knx entity (see https://www.home-assistant.io/integrations/knx/#duplicate-entities)
Other than that, check the automation debugger what exactly triggered your automation (or if it was triggered at all - maybe there is another one doing so…)
I check more GA and some doesn’t have the read flag set. I also noticed, that the error appeared for the first time yesterday. What I do not understand is, that everythink works, only the spontaneous trigger. And the error logs appeared yesterday.
I had also considered whether the firewall or AdGuard could be the cause. But HA and the KNX is in the same network and adguard also runs since few months.
Should I set the read flag and observe the situation?
No. Unless you know exactly what you are doing, you should not mess with that. Playing with flags can lead to awkward situations that are quite hard to debug in the future. Normally an objects flags are set properly and don’t need any changes.
Consider not using GAs as *state_address in HA if it doesn’t have a read-flag set instead.
Since you seem to use a router, are you using routing or tunnelling to connect HA? What IA does HA use? Do you use KNX Secure?
I switch for english, but it is still german… The connection is establish 2 days ago. 0 receiving and sending erros and the connection type is “Tunnel TCP”
I download the diagnosic data and it seems to be outdated. The local and host address are old.
I have to wait for the next event because the last event is to far away and I do not see it in the debugger.
Actually I have only the “Could not sync group address” error in the log.
OMG, it is 26 days since the last post. I was very bussy the last weeks, but the good news are, that the problem occours and I have logs now. But first…
Actually I don’t use the second line. It was planned for o outdoor, but actually I do not have any outdoor knx devices and the line is not used.
So here is the log
Logger: homeassistant.components.automation
Source: components/automation/__init__.py:1019
Integration: Automatisierung (documentation, issues)
First occurred: 19:25:12 (1 occurrences)
Last logged: 19:25:12
Error evaluating condition in 'Hue Schlafzimmer Einschalten': In 'condition': In 'template' condition: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ (float(trigger.to_state.state) > 0) }}' but no default was specified