I am receiving some data via gpio, and i wish to set it up to HASS Web, so i have tried:
hass.states.input_slider.ac_temperature.state =8
This results in:
e[31m2017-12-05 02:50:55 ERROR (Thread-9) [homeassistant.components.python_script.hello_world.py] Error executing script: Not allowed to access StateMachine.input_slider
hass.states.set(‘input_number.ac_temperature’ ,8)
This one results one in werid web display where the value is not changed and the number appears beside the slider.