83.2 => invalid authentication from

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\"}}'

i also added to trusted networks, but doesnt change


2018-12-03 14:18:45 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from
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
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 327, in async_run_job
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/automation/state.py”, line 60, in state_automation_listener
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’

ok, fixed the state

adding the trusted network line, so i was able to remove the API string from the curl command

but now everything else is not working anymore, switches/lights…
but only if i open the home assistant from my mobile phone

i have errors lilke below

2018-12-03 15:33:11 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall switch.turn_off (c:b8e73f23d6124ea2b93e411ca2df2a04): entity_id=[‘switch.plug1’]>
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1177, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 177, in handle_service
self._platforms.values(), func, call
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py”, line 250, in entity_service_call
homeassistant.exceptions.Unauthorized: Unauthorized

ok, found it
if i login on Hass frontend with API password, all my switches/lighs are not executing
if i login with user/pass , then everythings works fine

is this a changed behaviour since 83.x ?