-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
always_callback does not trigger a state update within homeassistant #965
Comments
I'm curious what the use case for that would be. Always_callback was initially meant for devices sending periodically on their own or sending things like scene numbers that are meant to trigger events even with same payloads (although A GroupValueResponse would always trigger a state change event when there is a new (changed) state. |
The main point I stumbled on is the visualization in grafana using influxdb as a datasource, which relies on the |
This sounds more like an InfluxDB issue then 🙃 |
Probably you are right. When looking around the internet, I found some other people in e.g. the knx forum with the same 'problem' for years, therefore I thougt it might be handy. Some more or less hacky workarounds seem to do the trick, but somtimes with side effects like heavy load on the database. |
Just found this and well, it seems to be a known problem for quite some time. 😦 |
Yep. It seems to be in the implicit category 'Won't fix' ... |
I think the influx issue should be specifically handled in the For the new option, I currently don't see any other usecase than bypassing this influx issue 🤔 has @marvin-w an opinion about this? |
@farmio I (now) totally aggree with you. This is a general problem in HA or the InfluxDB integration. I checked my other integrations (ESPHome, MQTT) and saw that I implemented the equivalent of Funny enough: The MQTT documentation explicitly states, that this is the way to go for this scenario. 😬
So there might be a point for adding the feature to xknx, to be feature equivialent to other integrations? 🤔 I now mitigated the problem by upgrading to InfluxDB 2.2 where queries can be written in Just for reference for someone in the future, faceing a similar problem: Here is a
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please make sure to update to the latest version of xknx (or Home Assistant) and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions. |
Description of problem:
A KNX sensor is defined with
always_callback
, but does not trigger a state update within homeassistant based on anyGroupValue_Response
. Even if it is a direct response to aGroupValue_Read
triggered bei thesync_state
of the sensor itself.The green
GroupValue_Write
are found in thestate
db in homeassistant (screenshot form the SQL db, time mismatch by 3h due to timezone), and do show up in the developer-tools/event tab, when listening tostate_changed
. Even, when the same value is sent twice, as it is expected foralways_callback
.GroupValue_Response
don't show up anywhere, therefore leading to the paradoxical, that a sensor is neither changed, nor updated for many minutes, even it is set tosync_state: expire 1
andalways_callback: true
Version information:
KNX installation:
It does not seem hardware related, can be reproduced within HA, nevertheless also occures also with real hardware KO connected to GAs.
Problem-relevant
configuration.yaml
entries (fill out even if it seems unimportant):Diagnostic data of the config entry (only when Home Assistant is used)
Traceback (if applicable):
The text was updated successfully, but these errors were encountered: