honestly, I don’t call back. but I had to create a token since it worked until yesterday. the weird thing is that I didn’t have anything in configuration.yaml
I created a new one, I added somfy client_id and client_secret, but I still have the same problem.
Update done.
The add-on is up to date on my fork.
Waiting for @schumijo to review my PR for the official add-on.
Thanks!
it works well👍
Hello,
I have the missing token error since few hours. All my devices are at unknown state now.
I don’t see any update for the add-on. Do you know when it will be released ?
Rgds
It works! Thank you
Hello
can you do the same app as somfyprotect with the API: https://api.myfox.me:443 (MYFOX old alarm)?
I have an app that works on Jeedom home automation if you want the source codes.
cordially
Hello,
Sorry, but I have not the necessary time for it.
I already have some difficulties to work on the current project.
I have a made a big update pushed on dev branch.
This is an alpha release, not fully tested.
I have add :
- immediate device precence notification
- immediate alram status notification, including alarm is ringing
- some testing messages are pushed on MQTT
- new sensors.
It may have bugs, but if you any feedback, open an issue on the GitHub please.
Thx
I installed the dev version, it seems to work, but I have some warning and errors inside :
avril 11 21:39:35 raspberrypi systemd[1]: Started Somfy2Mqtt.
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,087 [INFO] [__main__:47] Starting SomfyProtect2Mqtt
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,087 [INFO] [root:40] Reading config file config/config.yaml
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,097 [INFO] [root:110] Init SSO
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,098 [INFO] [root:94] Init MQTT
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,100 [INFO] [somfy_protect.sso:75] Requesting Token
avril 11 21:39:36 raspberrypi python3[14717]: 2022-04-11 21:39:36,731 [INFO] [root:40] Init SomfyProtect2Mqtt
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,114 [INFO] [somfy_protect_2_mqtt:63] Found 1 Site(s)
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,115 [INFO] [somfy_protect_2_mqtt:66] Storing Site ID for Maison
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,116 [INFO] [business:31] Looking for Sites
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,328 [INFO] [somfy_protect.websocket:61] Websocket Connection is READY
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,340 [INFO] [business:58] Looking for Devices
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,581 [INFO] [business:88] Found Camera Myfox security camera
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,588 [INFO] [business:118] Found Key Fob Key Fob
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,602 [INFO] [business:118] Found Key Fob Key Fob
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,612 [INFO] [business:118] Found Key Fob Key Fob
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,616 [INFO] [business:137] Update Sites Status
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,872 [INFO] [business:141] Update Maison Status
avril 11 21:39:37 raspberrypi python3[14717]: 2022-04-11 21:39:37,874 [INFO] [business:189] Update Camera Snapshot
avril 11 21:39:38 raspberrypi python3[14717]: 2022-04-11 21:39:38,362 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:39:38 raspberrypi python3[14717]: 2022-04-11 21:39:38,364 [INFO] [business:160] Update Devices Status
avril 11 21:39:48 raspberrypi python3[14717]: 2022-04-11 21:39:48,541 [INFO] [business:137] Update Sites Status
avril 11 21:39:48 raspberrypi python3[14717]: 2022-04-11 21:39:48,761 [INFO] [business:141] Update Maison Status
avril 11 21:39:58 raspberrypi python3[14717]: 2022-04-11 21:39:58,764 [INFO] [business:137] Update Sites Status
avril 11 21:39:58 raspberrypi python3[14717]: 2022-04-11 21:39:58,979 [INFO] [business:141] Update Maison Status
avril 11 21:40:08 raspberrypi python3[14717]: 2022-04-11 21:40:08,988 [INFO] [business:137] Update Sites Status
avril 11 21:40:09 raspberrypi python3[14717]: 2022-04-11 21:40:09,220 [INFO] [business:141] Update Maison Status
avril 11 21:40:19 raspberrypi python3[14717]: 2022-04-11 21:40:19,234 [INFO] [business:137] Update Sites Status
avril 11 21:40:19 raspberrypi python3[14717]: 2022-04-11 21:40:19,480 [INFO] [business:141] Update Maison Status
avril 11 21:40:29 raspberrypi python3[14717]: 2022-04-11 21:40:29,490 [INFO] [business:137] Update Sites Status
avril 11 21:40:29 raspberrypi python3[14717]: 2022-04-11 21:40:29,703 [INFO] [business:141] Update Maison Status
avril 11 21:40:39 raspberrypi python3[14717]: 2022-04-11 21:40:39,714 [INFO] [business:160] Update Devices Status
avril 11 21:40:39 raspberrypi python3[14717]: 2022-04-11 21:40:39,857 [INFO] [business:189] Update Camera Snapshot
avril 11 21:40:40 raspberrypi python3[14717]: 2022-04-11 21:40:40,405 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:40:40 raspberrypi python3[14717]: 2022-04-11 21:40:40,406 [INFO] [business:137] Update Sites Status
avril 11 21:40:40 raspberrypi python3[14717]: 2022-04-11 21:40:40,665 [INFO] [business:141] Update Maison Status
avril 11 21:40:42 raspberrypi python3[14717]: 2022-04-11 21:40:42,092 [INFO] [business.mqtt:77] Security Level update ! Setting to partial
avril 11 21:40:42 raspberrypi python3[14717]: 2022-04-11 21:40:42,609 [INFO] [somfy_protect.websocket:323] [default] Read Message {'profiles': ['owner', 'admin', 'guest', 'kid'], 'site_id': '********************************', 'type': 'config', 'key': 'security.level.change', 'security_level': 'partial', 'message_id': '*********************************************'}
avril 11 21:40:44 raspberrypi python3[14717]: 2022-04-11 21:40:44,246 [INFO] [business.mqtt:45] Live Update site ********************************
avril 11 21:40:44 raspberrypi python3[14717]: 2022-04-11 21:40:44,469 [WARNING] [business.mqtt:58] Error while refreshing site ********************************: 'Client' object has no attribute 'client'
avril 11 21:40:50 raspberrypi python3[14717]: 2022-04-11 21:40:50,676 [INFO] [business:137] Update Sites Status
avril 11 21:40:50 raspberrypi python3[14717]: 2022-04-11 21:40:50,907 [INFO] [business:141] Update Maison Status
avril 11 21:40:51 raspberrypi python3[14717]: 2022-04-11 21:40:51,048 [ERROR] [business.mqtt:182] Error when processing message: 401 Client Error: Unauthorized for url: https://api.myfox.io/v3/site/********************************/device/********************************
avril 11 21:40:59 raspberrypi python3[14717]: 2022-04-11 21:40:59,228 [INFO] [business.mqtt:77] Security Level update ! Setting to disarmed
avril 11 21:40:59 raspberrypi python3[14717]: 2022-04-11 21:40:59,799 [INFO] [somfy_protect.websocket:323] [default] Read Message {'profiles': ['owner', 'admin', 'guest', 'kid'], 'site_id': '********************************', 'type': 'config', 'key': 'security.level.change', 'security_level': 'disarmed', 'message_id': '*********************************************'}
avril 11 21:41:00 raspberrypi python3[14717]: 2022-04-11 21:41:00,914 [INFO] [business:137] Update Sites Status
avril 11 21:41:01 raspberrypi python3[14717]: 2022-04-11 21:41:01,163 [INFO] [business:141] Update Maison Status
avril 11 21:41:01 raspberrypi python3[14717]: 2022-04-11 21:41:01,416 [INFO] [business.mqtt:45] Live Update site ********************************
avril 11 21:41:01 raspberrypi python3[14717]: 2022-04-11 21:41:01,597 [WARNING] [business.mqtt:58] Error while refreshing site ********************************: 'Client' object has no attribute 'client'
avril 11 21:41:01 raspberrypi python3[14717]: 2022-04-11 21:41:01,725 [ERROR] [business.mqtt:182] Error when processing message: 401 Client Error: Unauthorized for url: https://api.myfox.io/v3/site/********************************/device/********************************
avril 11 21:41:11 raspberrypi python3[14717]: 2022-04-11 21:41:11,174 [INFO] [business:137] Update Sites Status
avril 11 21:41:11 raspberrypi python3[14717]: 2022-04-11 21:41:11,566 [INFO] [business:141] Update Maison Status
avril 11 21:41:21 raspberrypi python3[14717]: 2022-04-11 21:41:21,577 [INFO] [business:137] Update Sites Status
avril 11 21:41:21 raspberrypi python3[14717]: 2022-04-11 21:41:21,785 [INFO] [business:141] Update Maison Status
avril 11 21:41:31 raspberrypi python3[14717]: 2022-04-11 21:41:31,789 [INFO] [business:137] Update Sites Status
avril 11 21:41:32 raspberrypi python3[14717]: 2022-04-11 21:41:32,015 [INFO] [business:141] Update Maison Status
avril 11 21:41:42 raspberrypi python3[14717]: 2022-04-11 21:41:42,026 [INFO] [business:160] Update Devices Status
avril 11 21:41:42 raspberrypi python3[14717]: 2022-04-11 21:41:42,213 [INFO] [business:189] Update Camera Snapshot
avril 11 21:41:42 raspberrypi python3[14717]: 2022-04-11 21:41:42,688 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:41:42 raspberrypi python3[14717]: 2022-04-11 21:41:42,689 [INFO] [business:137] Update Sites Status
avril 11 21:41:42 raspberrypi python3[14717]: 2022-04-11 21:41:42,873 [INFO] [business:141] Update Maison Status
avril 11 21:41:52 raspberrypi python3[14717]: 2022-04-11 21:41:52,885 [INFO] [business:137] Update Sites Status
avril 11 21:41:53 raspberrypi python3[14717]: 2022-04-11 21:41:53,155 [INFO] [business:141] Update Maison Status
avril 11 21:42:03 raspberrypi python3[14717]: 2022-04-11 21:42:03,165 [INFO] [business:137] Update Sites Status
avril 11 21:42:03 raspberrypi python3[14717]: 2022-04-11 21:42:03,371 [INFO] [business:141] Update Maison Status
avril 11 21:42:13 raspberrypi python3[14717]: 2022-04-11 21:42:13,382 [INFO] [business:137] Update Sites Status
avril 11 21:42:13 raspberrypi python3[14717]: 2022-04-11 21:42:13,623 [INFO] [business:141] Update Maison Status
avril 11 21:42:23 raspberrypi python3[14717]: 2022-04-11 21:42:23,632 [INFO] [business:137] Update Sites Status
avril 11 21:42:23 raspberrypi python3[14717]: 2022-04-11 21:42:23,875 [INFO] [business:141] Update Maison Status
avril 11 21:42:33 raspberrypi python3[14717]: 2022-04-11 21:42:33,884 [INFO] [business:137] Update Sites Status
avril 11 21:42:34 raspberrypi python3[14717]: 2022-04-11 21:42:34,120 [INFO] [business:141] Update Maison Status
avril 11 21:42:44 raspberrypi python3[14717]: 2022-04-11 21:42:44,124 [INFO] [business:160] Update Devices Status
avril 11 21:42:44 raspberrypi python3[14717]: 2022-04-11 21:42:44,285 [INFO] [business:189] Update Camera Snapshot
avril 11 21:42:44 raspberrypi python3[14717]: 2022-04-11 21:42:44,806 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:42:44 raspberrypi python3[14717]: 2022-04-11 21:42:44,807 [INFO] [business:137] Update Sites Status
avril 11 21:42:45 raspberrypi python3[14717]: 2022-04-11 21:42:45,008 [INFO] [business:141] Update Maison Status
avril 11 21:42:55 raspberrypi python3[14717]: 2022-04-11 21:42:55,011 [INFO] [business:137] Update Sites Status
avril 11 21:42:55 raspberrypi python3[14717]: 2022-04-11 21:42:55,268 [INFO] [business:141] Update Maison Status
avril 11 21:43:05 raspberrypi python3[14717]: 2022-04-11 21:43:05,274 [INFO] [business:137] Update Sites Status
avril 11 21:43:05 raspberrypi python3[14717]: 2022-04-11 21:43:05,491 [INFO] [business:141] Update Maison Status
avril 11 21:43:15 raspberrypi python3[14717]: 2022-04-11 21:43:15,496 [INFO] [business:137] Update Sites Status
avril 11 21:43:15 raspberrypi python3[14717]: 2022-04-11 21:43:15,725 [INFO] [business:141] Update Maison Status
avril 11 21:43:25 raspberrypi python3[14717]: 2022-04-11 21:43:25,734 [INFO] [business:137] Update Sites Status
avril 11 21:43:25 raspberrypi python3[14717]: 2022-04-11 21:43:25,978 [INFO] [business:141] Update Maison Status
avril 11 21:43:35 raspberrypi python3[14717]: 2022-04-11 21:43:35,984 [INFO] [business:137] Update Sites Status
avril 11 21:43:36 raspberrypi python3[14717]: 2022-04-11 21:43:36,206 [INFO] [business:141] Update Maison Status
avril 11 21:43:46 raspberrypi python3[14717]: 2022-04-11 21:43:46,214 [INFO] [business:160] Update Devices Status
avril 11 21:43:46 raspberrypi python3[14717]: 2022-04-11 21:43:46,370 [INFO] [business:189] Update Camera Snapshot
avril 11 21:43:46 raspberrypi python3[14717]: 2022-04-11 21:43:46,866 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:43:46 raspberrypi python3[14717]: 2022-04-11 21:43:46,866 [INFO] [business:137] Update Sites Status
avril 11 21:43:47 raspberrypi python3[14717]: 2022-04-11 21:43:47,078 [INFO] [business:141] Update Maison Status
avril 11 21:43:57 raspberrypi python3[14717]: 2022-04-11 21:43:57,088 [INFO] [business:137] Update Sites Status
avril 11 21:43:57 raspberrypi python3[14717]: 2022-04-11 21:43:57,296 [INFO] [business:141] Update Maison Status
avril 11 21:44:07 raspberrypi python3[14717]: 2022-04-11 21:44:07,307 [INFO] [business:137] Update Sites Status
avril 11 21:44:07 raspberrypi python3[14717]: 2022-04-11 21:44:07,520 [INFO] [business:141] Update Maison Status
avril 11 21:44:17 raspberrypi python3[14717]: 2022-04-11 21:44:17,532 [INFO] [business:137] Update Sites Status
avril 11 21:44:17 raspberrypi python3[14717]: 2022-04-11 21:44:17,751 [INFO] [business:141] Update Maison Status
avril 11 21:44:27 raspberrypi python3[14717]: 2022-04-11 21:44:27,754 [INFO] [business:137] Update Sites Status
avril 11 21:44:27 raspberrypi python3[14717]: 2022-04-11 21:44:27,971 [INFO] [business:141] Update Maison Status
avril 11 21:44:37 raspberrypi python3[14717]: 2022-04-11 21:44:37,981 [INFO] [business:137] Update Sites Status
avril 11 21:44:38 raspberrypi python3[14717]: 2022-04-11 21:44:38,175 [INFO] [business:141] Update Maison Status
avril 11 21:44:48 raspberrypi python3[14717]: 2022-04-11 21:44:48,186 [INFO] [business:160] Update Devices Status
avril 11 21:44:48 raspberrypi python3[14717]: 2022-04-11 21:44:48,343 [INFO] [business:189] Update Camera Snapshot
avril 11 21:44:48 raspberrypi python3[14717]: 2022-04-11 21:44:48,844 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:44:48 raspberrypi python3[14717]: 2022-04-11 21:44:48,844 [INFO] [business:137] Update Sites Status
avril 11 21:44:49 raspberrypi python3[14717]: 2022-04-11 21:44:49,049 [INFO] [business:141] Update Maison Status
avril 11 21:44:59 raspberrypi python3[14717]: 2022-04-11 21:44:59,053 [INFO] [business:137] Update Sites Status
avril 11 21:44:59 raspberrypi python3[14717]: 2022-04-11 21:44:59,509 [INFO] [business:141] Update Maison Status
avril 11 21:45:09 raspberrypi python3[14717]: 2022-04-11 21:45:09,520 [INFO] [business:137] Update Sites Status
avril 11 21:45:09 raspberrypi python3[14717]: 2022-04-11 21:45:09,725 [INFO] [business:141] Update Maison Status
avril 11 21:45:19 raspberrypi python3[14717]: 2022-04-11 21:45:19,735 [INFO] [business:137] Update Sites Status
avril 11 21:45:19 raspberrypi python3[14717]: 2022-04-11 21:45:19,987 [INFO] [business:141] Update Maison Status
avril 11 21:45:29 raspberrypi python3[14717]: 2022-04-11 21:45:29,999 [INFO] [business:137] Update Sites Status
avril 11 21:45:30 raspberrypi python3[14717]: 2022-04-11 21:45:30,251 [INFO] [business:141] Update Maison Status
avril 11 21:45:40 raspberrypi python3[14717]: 2022-04-11 21:45:40,253 [INFO] [business:137] Update Sites Status
avril 11 21:45:40 raspberrypi python3[14717]: 2022-04-11 21:45:40,455 [INFO] [business:141] Update Maison Status
avril 11 21:45:50 raspberrypi python3[14717]: 2022-04-11 21:45:50,466 [INFO] [business:160] Update Devices Status
avril 11 21:45:50 raspberrypi python3[14717]: 2022-04-11 21:45:50,599 [INFO] [business:189] Update Camera Snapshot
avril 11 21:45:51 raspberrypi python3[14717]: 2022-04-11 21:45:51,100 [WARNING] [business:221] Error while refreshing snapshot: 401 Client Error: Unauthorized for url: https://api.myfox.io/video/site/********************************/device/********************************/refresh-snapshot
avril 11 21:45:51 raspberrypi python3[14717]: 2022-04-11 21:45:51,102 [INFO] [business:137] Update Sites Status
avril 11 21:45:51 raspberrypi python3[14717]: 2022-04-11 21:45:51,330 [INFO] [business:141] Update Maison Status
avril 11 21:46:01 raspberrypi python3[14717]: 2022-04-11 21:46:01,343 [INFO] [business:137] Update Sites Status
avril 11 21:46:01 raspberrypi python3[14717]: 2022-04-11 21:46:01,550 [INFO] [business:141] Update Maison Status
avril 11 21:46:11 raspberrypi python3[14717]: 2022-04-11 21:46:11,557 [INFO] [business:137] Update Sites Status
avril 11 21:46:11 raspberrypi python3[14717]: 2022-04-11 21:46:11,764 [INFO] [business:141] Update Maison Status
avril 11 21:46:21 raspberrypi python3[14717]: 2022-04-11 21:46:21,776 [INFO] [business:137] Update Sites Status
avril 11 21:46:22 raspberrypi python3[14717]: 2022-04-11 21:46:22,040 [INFO] [business:141] Update Maison Status
Seems strange, I have this issue on mine. Do you have more information with debug set to true ?
Hello, how to enable the debugger ? Couldn’t find it in doc.
Dans la configuration de lardon tu mets :
debug: true
With installing the latest update I experienced the same problem as mentioned in the following topic:
This version should work now, give it a try.
I have also update somfyProtect2MQTT code to make the new add-on work
Addon version : 0.1.9.8
repo GitHub - Minims/homeassistant-addons
Hi,
Unfortunately, something is wrong somewhere. With this method, i’m able to change the state of the alarm from HA (but only the disarm function)
For an unknown reason, my HA doesn’t seems to receive posts from IFTTT to get the alarm status
Could you please help?
Here’s the config:
url
https://xxxxxxx.duckdns.org:8123/api/webhook/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
method
POST
content_type
application/json
body
{"action": "call_service", "service": "ifttt.push_alarm_state", "entity_id": "alarm_control_panel.somfy", "state":"alarm_arm_night"}
alarm panel card configuration:
type: alarm-panel
states:
- arm_away
- arm_night
entity: alarm_control_panel.somfy
automations.yaml:
- alias: Webhook received
initial_state: 'on'
trigger:
- platform: event
event_type: ifttt_webhook_received
event_data:
action: call_service
action:
service_template: '{{ trigger.event.data.service }}'
data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
state: '{{ trigger.event.data.state}}'
Hello,
To all of you who want to integrate the MyFox HC2 in HA, I have a new addon to manage basic function on this alarm :
The addon is on the same repository as somfyProtect2MQTT and is called MyFox2MQTT
Hi,
Thanks for the plugin, it works perfectly for information retrieval.
However, I don’t have an alarm panel available via MQTT, did I miss something?
I can’t turn the alarm on or off.
Thanks for your help