Closed Standarduser closed 1 year ago
Should be possible, we can use the expire functionality of setState
like servConn.setState('vis.0.iPad.alive', { val: true, ack: true, expire: 60 })
and setting every 30 seconds in interval. So it only will be false
if no connection for 60 seconds.
Of course needs to be enabled via config option, as we need permissions to create and set the state. So for non-privileged users this can be disabled.
This sounds great, thank you!
It is now implemented and will be part of the next version.
Technically, the state will be deleted if the connection drops, thats how expire
on db side works. Thus the state will be null
if not connected.
Is there an existing feature request for this?
Feature description
Ich bitte um das Einfügen eines Life-Bits um erkennen zu können, ob die Visualisierung läuft und in Scripten darauf reagieren zu können, etwa dass Meldung dann per Telegram übermittelt werden.
Im industriellen Umfeld werden Life-Bits in der Regel so realisiert, dass die Visualisierung ein Bit (hier State) auf True setzt und die Automation diesen auf False. Anschließend setzt die Visualisierung das Bit wieder auf True, usw. Wenn es über längere Zeit keine Zustandsänderung gibt, ist die Visualisierung tot und man reagiert entsprechend.
Eine Verzögerung, bis die Visualisierung das Bit setzt, zwischen 1-5 Sekunden scheint mir ein sinnvoller Wert zu sein.
Vielen Dank
Anything else?
No response