hi , upgraded from 81.x to 83.2 , now i am receiving errors below when i want to change the state from a light, using this shell command :
state_wc_on: "curl -k POST -d '{\"state\": \"on\",\"attributes\": {\"assumed_state\": true,\"friendly_name\": \"WC\",\"icon\": \"mdi:lightbulb-on\"}}' https://127.0.0.1:8123/api/states/light.wc?api_password=XXXX
i also added 127.0.0.1 to trusted networks, but doesnt change
trusted_networks:
- 127.0.0.1
2018-12-03 14:18:45 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2018-12-03 14:18:47 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_state_change..state_change_listener at 0x7f862553aae8>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 64, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/event.py”, line 82, in state_change_listener
event.data.get(‘new_state’))
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 327, in async_run_job
target(*args)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/automation/state.py”, line 60, in state_automation_listener
call_action()
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/automation/state.py”, line 52, in call_action
}, context=to_s.context))
AttributeError: ‘NoneType’ object has no attribute ‘context’