Is it possible to do some math on a value before storing it in the device string?
The reason i ask this is because i got a MQTT topic that sends me the uptime in minutes but it is getting a large number so i would like to store it as hours.
A <value> mod 12 would give me hours.
Is this possible and if so how do it do this?
The reason i ask this is because i got a MQTT topic that sends me the uptime in minutes but it is getting a large number so i would like to store it as hours.
A <value> mod 12 would give me hours.
Is this possible and if so how do it do this?
Comment