Hi,
I need to store variable within custom_components python script for later use, ideally it remains after restart. It will be just unix timestamp. How to use python scripting to access read/write some variable value?
I have created in configuration.yaml this record for input_number and not sure if it is possible to use set_value. It is overall correct approach?
input_number:
last_ahc_change_timestamp:
initial: 0
and how to read / write to this variable, can i access the variable as entity via hass.states.get()?