-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[profiles] timestamp-update channel profile forces Item state #1537
Comments
hello |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/update-datetime-as-thing-receives-data/117367/6 |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/timestamps-not-rendering-consistently-in-ui-3-0-2/121891/2 |
See https://community.openhab.org/t/timestamps-not-rendering-consistently-in-ui-3-0-2/121891/13 It seems this may be fixed by 3.0.2 or (less likely) only occurs with some channels. |
@Rossko57 I'll run a manual backup and see if I can trigger the issue again later today or tonight. |
Looks like the issue is still there. I linked two Channels to the same Item with the "Timestamp on change" profile, and the log was filled with updates and the system basically ground to a halt. Deleting one of the links brought it back to normal. The log messages are formatting errors, but I can see the Timestamp is iterating every few milliseconds, so I'd assume the formatting errors are related to #2037 and are a coincidence. Hope this helps! |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/oh3-no-offset-profile/120044/21 |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
This is exactly the intended behavior of the From the JavaDoc of the classes Lines 26 to 27 in aa48f59
and Lines 27 to 28 in aa48f59
you can see the implemented behavior. But the documentation tells us slightly different behavior.
I can offer to add a configuration to ignore updates from Items. This will keep the original behavior but adds a way to solve your issue. |
@cweitkamp if it helps, I've only noticed an issue with having multiple Links with openweathermap. For Z-Wave devices, linking multiple I wonder if there's something specific to the openweathermap binding that's causing it to update so frequently when multiple channels are linked? |
@brianwarner Thanks for helping. I cannot tell you if there are specific differences in both add-ons. I submitted #2353 to solve this issue. |
Why would anyone want a profile that updates an Item state when the same Item state is updated? But yes please, let's have it behaving as per user docs and doing timestamps in response to channel activity (only). |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/profile-timestamps-not-updating/128080/4 |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/datetime-format-with-oh3-items-not-working/130130/22 |
Example Item, using channel profile timestamp-update -
DateTime testTime "testing" {channel="openweathermap:weather-and-forecast:api:foss:current#condition" [profile="timestamp-update"]}
Expectation - when that channel updates, the Item state will be updated with a timestamp. That works well enough -
But, postUpdating the Item with some other value somehow causes the profile to immediately overwrite the state with a completely new value of "now"
Expectation here is that profile does nothing until the next real update of the associated channel. It should not destroy any manually set value of the Item. It certainly should not "invent" a new timestamp unrelated to its channel activity.
A nastier consequence; it is reasonable to link more than one channel with timestamp profile to a single Item, say to record the most recent event for any one of a set of sensors.
DateTime testTime {channel="x:x:x:x" [profile="timestamp-update"], channel="z:z:z:z" [profile="timestamp-update"]}
This results in disaster, the two profiles enter a loop of warring updates every few milliseconds
This presumably also affects timestamp-change, and potentially other profiles.
The text was updated successfully, but these errors were encountered: