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
Sticky Unreach information will not be reset under objects even if there is already reset in CCU #50
Comments
Do you mean the state UNREACH or the state UNREACH_ALARM? |
If you mean the alarm state, I can confirm this. It seems like the script to read alarms shows state 2 for solved alarms, like:
and state 1 for an currently present alarm. But the code in rega seems like it has been implemented to interpret 0 as no alarm and everything else as an active alarm by using const state = {
val: !!data[dp].AlState,
ack: true,
lc: new Date(data[dp].AlOccurrenceTime),
ts: new Date(data[dp].LastTriggerTime)
}; Unfortunately I am not able to find more information about AlState: 2 so I can only assume that it says: Once there was an alarm. So I would suggest to set the alarm indicator to false if its !== 1 @smartboart please anyway give me an answer to my question to be sure. ;-) |
The idea of the (iobroker onw) ALARM states is to use them as "true" trigger option when it happends. They are not supporsed to be reset |
Thanks for clarification, so if the alarm state was meant it works as designed. Maybe enhancing Readme would be a good option. |
OK, understand... I mean sticky unreach and sticky unreach alarm. But I am quit sure that all reacts the same. Just sticky happens quit often. That's maybe why it hurts me the most.. I trigger with this state a counting script to see which hardware seems to have some trouble... So I would be happy to have this information as a trigger in both directions... I mean I also want to know if the problem is acknowledged and not present anymore... For my opinion it makes sense to update this states also... |
Yes, e. g. the UNREACH state should work like this (not the UNREACH_ALARM). Tested it with Config pending state today and it worked as expected. |
@Apollon77 I still think there is something wrong with the implementation of alarms. Maybe the following example helps:
I know you are also not deep in this alarm meachanics, but as it is implemented at the moment, it makes no sense for me. |
On the other hand due to the fact, that the alarm is set with its occurence time in last changed, users may use it as an indicator when the alarm has happened, but it's still weird, that you are not able to recognize if the alarm is present or already acknowledged by the user. So my 3 possible approaches would be, but option 3 sounds most promising to me:
|
Added documentation + reworked the alarm states as described here https://github.com/ioBroker/ioBroker.hm-rega#what-are-the-alarm-states-created-in-the-devices-object in d6c775e |
Cool I even did not knew that :-) |
Hello ,
The Sticky Unreach information will not be reset automatically under objects even if it is already reset in CCU. The state still stands on true.
The text was updated successfully, but these errors were encountered: