Hi,
i have a electric meter which sends me (rpi, serial measurement thingy, mqtt) the total amount of energy. But, thanks to german law or whatever (privacy reasons....), after a power breakdown the resolution drops to 1 kWh. The energy meter has to be configured again for "high" resolution output.
Now i want to detect these low resolution so that a dont miss another month with higher resolution. The main reason is, that in low resolution mode also the 1W resolution is disabled.
E.g. i would like to trigger a message after 100 messages "9000" (value probably changes, but no "dot" appears). If one message is "xxxx.1" the counter should be resettet. If low resolution is detected, a message once a day should be send (telegram - the only thing that works right now)
A typical dataset looks like (1 message every second)
vzlogger/data/chn1/raw : msg.payload : number
9889878.9
vzlogger/data/chn1/raw : msg.payload : number
9889879
vzlogger/data/chn1/raw : msg.payload : number
9889879.1
I tried switch, but there is no "does not contain". The idea was to, if no dot is present, a counter decreases (function node)