-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Expose: send periodically, throttle #765
Comments
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. |
I'd suggest the following: exposure to KNX should be configurable by 2 parameters: min_send_time throttles the sending to KNX: e.g. if a value is updated every 1s, but min_send_time is set to 1min, max_send_time is the periodic to send the value, even though it has not changed: e.g. if a value is updated but not changed, it should be send every "max_send_time" to the KNX bus. maybe, a 3rd parameter is necessary: |
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. |
Maybe you could consider to send the saved states on startup of Home Assistant to the KNX bus. |
Hi 👋! |
Hi, |
Another use case is exposing time and date to the KNX-bus. There are plenty of KNX sensors with displays that require cyclic sending of time and date to ensure the display always shows the right time. (internal clocks of these devices are not very reliable) |
@ottonet Hi 👋! In HA: If you use expose with a type of In xknx: Configure a |
@farmio Hi ;) Good to know. Sadly the HA Expose documentation does not mention this. At the same time, there are a few other use cases, where it would make sense. For instance Valve Drives for heating systems, can be set up to monitor the actuating value. If a value is not received in a certain time, it would open to a predefined position. This is to avoid total shutdown of a heating system, in case a thermostat is not functioning properly. I'm actually planning to use a virtual thermostat in HA in the near future, where this thermostat would control a few KNX valves. In case HA crashes or something else is off, and the valve does not receive a new instruction within "X" amount of time, it would move itself to some kind of emergency postion, off or for instance 25%.. |
So #1094 solved the main issue here. I think for periodical sending and other, more specialized usecases in HA an automation with Documentation of expose time is also fixed. |
"send on startup" is actually quite useful after situations like a power failure. Assuming the KNX system is up before HA, it would ensure that KNX devices always receive the correct value of an object after such a situation, as a read-request after power-on from the device to HA (which is still starting up) would fail in such a case. I'm currently in a process of moving my logic and automations in my Gira HomeServer (in use since 2004) to Home Assistant, and I notice I have about 5 different implementations of cyclic sending. In the Gira HomeServer this is setup as an automation (logic building block) as well. Obviously it's not too difficult to built such an automation in HA, yet from an end-user / integrator perspective, adding a few lines of YAML in knx_expose.yaml is much easier / more intuitive, and would cover 99% of the use-cases. Example: |
It should probably be |
I also think that 1 or 2 lines of YAML are a lot easier to configure than generating an automation for every value that should be sent cyclically. My usecase is also heating actuators, but different than that of ottonet. The other possible way of implementing this could be: |
Maybe from HA integration
The text was updated successfully, but these errors were encountered: