smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
119 stars 92 forks source link

lib.item: cast cached value on initialization #623

Closed Morg42 closed 5 months ago

Morg42 commented 5 months ago

fixes #550

onkelandy commented 5 months ago

Seems to work nicely. Maybe one thing to think about.. if the value can not be converted, should then the initial_value be loaded (meaning delete current cache)? Right now if I e.g. change a num item with value 5 to bool I get the warning in the log, but last_update/change is still Init:Cache (what is actually not true)