Verisure smart switches not working

Hello, the last couple of days my verisure smart switches have stopped working. I can see them and state but I cannot change state on them through home assistant. My other flows triggered by alarm state work fine, I just cannot switch the smart switches on and off. Tried toggle too, that does not work.

Here is the log:

INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=switch, service=turn_off, service_data=entity_id=[‘switch.espresso’], service_call_id=1696186704504-10>
ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\core.py”, line 1014, in event_to_service_call
yield from service_handler.func(service_call)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\switch_init
.py", line 108, in async_handle_switch_service
yield from switch.async_turn_off()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\concurrent\futures\thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\homeassistant\components\switch\verisure.py”, line 59, in turn_off
hub.my_pages.smartplug.set(self._id, ‘off’)
File “C:\Users\Administrator\AppData\Roaming.homeassistant\deps\verisure\devices\smartplug.py”, line 39, in set
return not self._session.post(COMMAND_URL, data)
File “C:\Users\Administrator\AppData\Roaming.homeassistant\deps\verisure\session.py”, line 161, in post
self.validate_response(response)
File “C:\Users\Administrator\AppData\Roaming.homeassistant\deps\verisure\session.py”, line 227, in validate_response
response.text.encode(‘utf-8’))))
File “C:\Users\Administrator\AppData\Roaming.homeassistant\deps\verisure\session.py”, line 234, in raise_response_error
raise default_error
verisure.session.ResponseError: Unable to validate response form My Pages, status code: 404 - Data: b’’

I have the same issue.

Me too! Have exact same issue, same error.

Must be after one of the latest updates, does anyone know what the last version where Verisure smart switches worked?

Tried downgrading, no change. Must be breaking changes from Verisures side. Have tried pinging Per Sandstrøm on Github, no response yet. Component needs updating.

I submitted a bug report a few days ago: https://github.com/home-assistant/home-assistant/issues/7547

Hope it will be fixed soon

Same problem here - hope for a fix soon :stuck_out_tongue:

I have found the issue.
Verisure has updated the URL for onoffplug.cmd.

In deps/verisure/devices/smartplug.py the COMMAND_URL has to be changed to /settings/smartplug/onoffplug.cmd.

1 Like

THANKS WORKED!!!

Worked fine! Thanks.

/Ola

where would I find that dir? Running HASSBIAN

right under my nose. got it… :slight_smile:

Worked perfectly here too. Thanks.

Works for me too! Thanks a lot.

Have been disconnected from the forum for a while and didn’t know about this. It should be fixed in the latest release.

Can Someone tell me. I bought 2 smartplugs from verisure on a second hand market. But i don’t get the smartplugs to connect to my verisure system.