minims / somfyprotect2mqtt Goto Github PK
View Code? Open in Web Editor NEWSomfy Protect to MQTT
License: GNU General Public License v3.0
Somfy Protect to MQTT
License: GNU General Public License v3.0
Hello,
Today, my alarm was raised (hopefully no intrusion this time) but in HA stays in 'armed_away' state.
Debug mode was off so I haven't any interesting logs.
@Minims Do you have tested this recently ?
Hello,
Thanks for your repository first !
I just want to share a new error I have with my Somfy configuration just to help future issue or not. (currently I have no error on my configuration):
Invalid option for select.porte_support_type: 'interndoor' (valid options: ['slidedoor', 'window', 'externdoor', 'slidewindow', 'garage'])
Regards
Quentin
Hi,
I've tried your latest image version, but the error is still there:
/bin/sh: 1: [: python3: unexpected operator
Thanks !
Originally posted by @WhistleMaster in #22 (comment)
Any chance to set « sensitivity_level » type as « select » instead of « sensor » so that the parameter can be changed via HA ? (Similarly to « sensitivity_IntelliTag » whose type is « number »)
Hi.
Thank you very much for your addon! :-)
Would it be possible to switch on and off the lights connected to the external cameras? Also, being able to retrieve the light status in mqtt would be useful.
Thanks again!
When i try to trig the Siren switch (to fire the alarm manually), i then have a log error:
[ERROR] Error when processing message: local variable 'site_id' referenced before assignment
The siren is not firing.
(look like it a problem with python of declaring some variable as 'global' before setting it ?
And when i try to stop the alarm manually (direct switch off):
[ERROR] Error when processing message: 400 Client Error: Bad Request for url: https://api.myfox.io/v3/site//alarm/stop (i removed mysiteID for convenience).
I'm using stable branch v0.1.2
Hello everyone,
The addon doesn't start without apparently reason, also after resume old backup.
My installation is home assistant os under vm.
The log say:
s6-overlay-suexec: fatal: can only run as pid 1
Any help?
Thank you
Hello,
I tried to deploy on Docker (rather than HomeAssistant because I don't know why but your Module seems to stop working, or not starting correctly on reboot, even if HA does not says so : alarm state stays on "UNKNOWN", and restarting the module manually corrects it).
So I deployed the container on docker.
I pasted my config.yaml (the same that was workign on HA).
And I get this message :
TypeError: '<' not supported between instances of 'str' and 'int'
2022-05-01 19:33:39,119 [INFO] Starting SomfyProtect2Mqtt
2022-05-01 19:33:39,120 [INFO] Reading config file config/config.yaml
2022-05-01 19:33:39,127 [INFO] Init SomfyProtect2Mqtt
Traceback (most recent call last):
File "/usr/src/SomfyProtect2MQTT/somfyProtect2Mqtt/main.py", line 29, in <module>
SOMFY_PROTECT = SomfyProtect2Mqtt(CONFIG)
File "/usr/src/SomfyProtect2MQTT/somfyProtect2Mqtt/somfy_protect_2_mqtt.py", line 52, in __init__
if self.delay_site < 10:
TypeError: '<' not supported between instances of 'str' and 'int'
What don't I do correctly ?
Hi,
first of all I want to thank you very much for this amazing piece of code. Finally I can use my Somfy One+ incl. all my Intellitags. Since there is no way (yet) to get a home assistant event in the Somfy pre-alarm phase (which I would use for lights, shutters, etc., also helps you notice a false alarm when at home), I have been creating a custom alarm panel and using all the Motion_sensor signals in the trigger automations.
Today I had my first false (Home assistant) alarm, because the sensors keep triggering sporadically. Does that have anything to do with the last update? Do you think using the motion_sensor signal is a good way of using the intellitags?
Thanks & best regards,
Reschix
Hi, thanks again for your work, and your recent update for the external lights! :-)
I was wondering, as Somfy can open and shut the window shutters when you arm/disarm the alarm, would it be possible to directly control the shutters on HA, without having to trigger the alarm?
Hi !
Thanks for the great work on that project ! I'm using latest version 0.2.0 with docker and everything seems to work except that I have to following error in the log when, as an example, arming / disarming the alarm or opening/closing the camera cover:
2022-06-06 07:35:52,179 [WARNING] [business.mqtt:40] Error while refreshing Camera: 'Client' object has no attribute 'client'
2022-06-06 07:35:05,358 [WARNING] [business.mqtt:40] Error while refreshing Camera: 'Client' object has no attribute 'client'
2022-06-06 07:36:29,454 [WARNING] [business.mqtt:40] Error while refreshing Camera: 'Client' object has no attribute 'client'
2022-06-06 07:36:46,591 [WARNING] [business.mqtt:40] Error while refreshing Camera: 'Client' object has no attribute 'client'
2022-06-06 07:37:09,270 [WARNING] [business.mqtt:58] Error while refreshing site <<redacted>>: 'Client' object has no attribute 'client'
2022-06-06 07:37:16,256 [WARNING] [business.mqtt:58] Error while refreshing site <<redacted>>: 'Client' object has no attribute 'client'
Kind regards,
WM
It looks like the presence sensor does not work properly.
Could this because of a typo problem, i.e. extra space in the following: " payload_home"
and " payload_not_home"
?
I have 2 somfy sites, i try to filter only one in home assistant, standard config is:
sites:
- Maison
But i still see in MQTT and HomeAssistant the other site's devices.
For now as a workaround, i created a new somfy account which can only see 1 site, and used this account in SomfyProtectMQTT.
Hi !
Thanks for the great work on this project !
I'm looking at the attribute supported_features
of the entity created by SomfyProtect2MQTT and I have the value 63.
Not sure where it's defined in your code, but according to HA documentation:
Supported features are defined by using values in the AlarmControlPanelEntityFeature enum and are combined using the bitwise or (|) operator.
Which means that, in HA core, const.py L26 is defining those:
ARM_HOME = 1
ARM_AWAY = 2
ARM_NIGHT = 4
TRIGGER = 8
ARM_CUSTOM_BYPASS = 16
ARM_VACATION = 32
So, 63 means that all the modes are supported for Somfy Protect. It can be tested with bitwise operator "&" in Python:
# python3
>>> 63 & 0b000001
1
>>> 63 & 0b000010
2
>>> 63 & 0b000100
4
>>> 63 & 0b001000
8
>>> 63 & 0b010000
16
>>> 63 & 0b100000
32
>>>
Which, if I'm not wrong, is not correct, as only ARM_NIGHT
and ARM_AWAY
are available for Somfy Protect. Not sure about TRIGGER
, if this could be detected when the alarm has been triggered.
I think that this attribute supported_features
should be defined somewhere and should then be 6 (or 14 if TRIGGER
can be detected).
# python3
>>> 6 & 0b000001
0
>>> 6 & 0b000010
2
>>> 6 & 0b000100
4
>>> 6 & 0b001000
0
>>> 6 & 0b010000
0
>>> 6 & 0b100000
0
>>>
Thanks !
Regards,
WM
Hi,
I try to install the addon to HA, get the following error message :
The command '/bin/ash -o pipefail -c apk add --no-cache py3-pip' returned a non-zero code: 1
This appen from both Stable and Dev addon.
Hi,
I am running SomfyProtect2MQTT as a docker image since I am not using home assistant OS or supervisor.
It is connected both to the MQTT broker and to Somfy.
I can see the status messages from my Sonfy One in the MQTT integration in HA. But I do not see the autodiscover messages and no devices get discovered.
Any idea?
My Somfy Protect alarm doesn't tell me when is ringing/is fired..
is it a future feature or mine is not working?
Dans les journaux de mon homeassistant, je trouve beaucoup de ce message :
Logger: homeassistant.components.mqtt.select
[...]
First occurred: 22. Mai 2022, 20:46:35 (628 occurrences)
Last logged: 07:41:16
Invalid option for select.tur_support_type: 'garage' (valid options: ['slidedoor', 'window', 'externdoor', 'slidewindow'])
Ils semblent être générés par ce message mqtt :
somfyProtect2mqtt/***/***/state {"recalibration_required": "False", "recalibrateable": "False", "cover_present": "False", "battery_level": "100", "rlink_state": "0", "rlink_quality": "-68", "rlink_quality_percent": "75", "device_lost": "False", "last_status_at": "2022-05-22T18:33:03.000000Z", "sensitivity": "7", "support_type": "garage", "night_mode_enabled": "True", "prealarm_enabled": "True"}
Le dispositif correspondant est un capteur de porte Intellitag.
Bonjour,
Le statut de l'alarme ne change pas suite à un déclenchement. Est-ce normal ou le problème n'est que chez moi ?
De quelles informations avez-vous besoin pour le diagnostique ?
Version 0.1.9
Merci d'avance pour votre action.
Al
Hi I/m using the docker container to get the status and update my alarm system.
As from today I cannot update the state anymore. I get the following error:
❯ docker run -v /home/rakimac/somfy:/config minims/somfyprotect2mqtt
2022-11-25 13:24:52,496 [INFO] [__main__:55] Starting SomfyProtect2Mqtt 0.2.4
2022-11-25 13:24:52,497 [INFO] [root:43] Reading config file /config/config.yaml
2022-11-25 13:24:52,498 [INFO] [root:114] Init SSO
2022-11-25 13:24:52,499 [INFO] [somfy_protect.sso:79] Requesting Token
2022-11-25 13:24:53,127 [INFO] [root:101] Init MQTT
2022-11-25 13:24:53,128 [INFO] [somfy_protect.sso:79] Requesting Token
2022-11-25 13:24:53,667 [INFO] [root:40] Init SomfyProtect2Mqtt
2022-11-25 13:24:54,005 [INFO] [somfy_protect_2_mqtt:63] Found 1 Site(s)
2022-11-25 13:24:54,006 [INFO] [somfy_protect_2_mqtt:65] Found Site : HKFortyTwo
2022-11-25 13:24:54,006 [INFO] [somfy_protect_2_mqtt:67] Storing Site ID for HKFortyTwo
2022-11-25 13:24:54,006 [INFO] [business:31] Looking for Sites
2022-11-25 13:24:54,211 [INFO] [business:63] Looking for Devices
2022-11-25 13:24:54,212 [INFO] [somfy_protect.websocket:63] Websocket Connection is READY
2022-11-25 13:24:54,384 [INFO] [business:67] Configuring Device: Indoor Siren
2022-11-25 13:24:54,385 [INFO] [business:67] Configuring Device: Tiffany's Key Fob
2022-11-25 13:24:54,386 [INFO] [business:130] Found Key Fob
2022-11-25 13:24:54,386 [INFO] [business:67] Configuring Device: outdoor siren front
2022-11-25 13:24:54,387 [INFO] [business:67] Configuring Device: Link
2022-11-25 13:24:54,388 [INFO] [business:67] Configuring Device: garden window
2022-11-25 13:24:54,389 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,389 [INFO] [business:67] Configuring Device: Back door
2022-11-25 13:24:54,390 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,390 [INFO] [business:67] Configuring Device: link_extender
2022-11-25 13:24:54,391 [INFO] [business:67] Configuring Device: Front window
2022-11-25 13:24:54,391 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,392 [INFO] [business:67] Configuring Device: main room
2022-11-25 13:24:54,393 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,394 [INFO] [business:67] Configuring Device: kitchen window
2022-11-25 13:24:54,394 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,395 [INFO] [business:67] Configuring Device: Jai room
2022-11-25 13:24:54,396 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,396 [INFO] [business:67] Configuring Device: outdoor Siren back
2022-11-25 13:24:54,397 [INFO] [business:67] Configuring Device: Front door
2022-11-25 13:24:54,398 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,398 [INFO] [business:67] Configuring Device: Rakesh's Key Fob
2022-11-25 13:24:54,399 [INFO] [business:130] Found Key Fob
2022-11-25 13:24:54,399 [INFO] [business:67] Configuring Device: AC room
2022-11-25 13:24:54,400 [INFO] [business:147] Found Motion Sensor (PIR & IntelliTag) IntelliTag
2022-11-25 13:24:54,400 [INFO] [business:176] Update Sites Status
2022-11-25 13:24:54,650 [INFO] [business:180] Update HKFortyTwo Status
2022-11-25 13:24:54,650 [INFO] [business:236] Update Camera Snapshot
2022-11-25 13:24:55,496 [INFO] [business:204] Update Devices Status
2022-11-25 13:25:04,090 [ERROR] [business.mqtt:198] Error when processing message: list index out of range
So now my state does not get updated, likely due to this error.
Can you help?
Hey,
Merci pour tout le boulot ! J'ai migré de homebridge et domoticz hass.io et j'apprécie beaucoup de voir toutes ses infos sur la Somfy Protect. J'ai plusieurs questions/remarques et certaines se rapprochent de celles déjà posées:
Est-il possible via l'api de savoir si une porte est ouverte ? L'intellitag doit renvoyer une telle info mais je n'ai rien vu en parcourant le plugin. Ce sera vraiment cool de pouvoir les voir comme capteurs d'ouvertures de portes.
J'ai utilisé un template pour inverser le statut des badges afin qu'ils correspondent à la présence de leurs propriétaires afin de créer des automatisations personnalisées. Pour autant l'api n'a pas l'air de remonter correctement l'info de présence/absence contrairement à l'app.
le déclenchement de l'alarme via l'app ou par ouverture non souhaitée ne remonte pas dans home assistant. Le bouton sirène déclenche aussi l'alarme correctement mais le statut n'est pas modifié dans hass.io
Merci pour tout et ça fait hyper plaisir de voir que des personnes s'intéressent à cette petite alarme !
Bonne continuation et je reste à disposition pour tester !
Q.
Hi there ! it's me again.
I've been playing a little bit on HA this afternoon and I was wondering how did you manage to display the temperature given by a motion sensor (as it can be seen on your screenshot), on a HA dashboard ?
When I try to simply had a new card on the dashboard the only entites available for a motion sensor are :
To get the same result as you (I mean, a card displaying the temperature), I had a long journey...
I dig into the entity info through MQTT integration menu to be able to know the topic providing the required information :
It gives something like : somfyProtect2mqtt/sddqsdfqsfdfdfdfdsdsf/fdqfdfdfdsfdsfs/state
Then I switch to Node Red integration, made up a really simple flow with : mqtt_in --> function --> mqtt_out
mqtt_in is set on the topic I've found, the function isolate the temperature and mqtt_out forward the temperature on a specific topic.
Then I created a sensor (in yaml config file ) which read the topic of my mqtt_out node.
I'm pretty sure that it's not the proper way to do so...
Ciao, thanks a lot for your job! I've integrated this module and it works fine (i can activate alarm, siren, etc.), but if I try to see a snapshot from the camera in a Glance card, i receive a grey (or broken) image. Did it never happened to you?
Thanks for your support
PS
If you add the streaming support, you update your level to God :-)
While installing the add-on on HA OS through supervisor I get the following error. I am running the latest version 2021.4.6
21-04-22 03:20:04 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for c53cd0b5/amd64-addon-somfy-protect-2-mqtt:0.1.2
21-04-22 03:20:17 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build c53cd0b5/amd64-addon-somfy-protect-2-mqtt:0.1.2: The command '/bin/ash -o pipefail -c apk add --no-cache py3-pip' returned a non-zero code: 1
21-04-22 03:20:17 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log:
Step 1/21 : ARG BUILD_FROM
Step 2/21 : FROM $BUILD_FROM
---> 7f05b4a45489
Step 3/21 : ENV LANG C.UTF-8
---> Using cache
---> c6a74ba6aeda
Step 4/21 : ARG VERSION=0.1.1
---> Using cache
---> d0837bafcc4e
Step 5/21 : RUN apk add --no-cache py3-pip
---> Running in 82abf568eb11
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
WARNING:
Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
WARNING:
Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/community: temporary error (try again later)
ERROR:
unable to select packages:
py3-pip (no such package):
required by: world[py3-pip]
Removing intermediate container 82abf568eb11
Hello,
After updating HA to 2023.1.1 and with SomfyProtect2MQTT release 0.2.5, I get incorrect unit warning reports for my intellitag sensors in HA :
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:980
Integration: Capteur ([documentation](https://www.home-assistant.io/integrations/sensor),
[issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 20:06:24 (22 occurrences)
Last logged: 20:07:15
Entity sensor.baie_salon_so_droite_rlink_quality_percent (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>)
is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength')
it is using; Please update your configuration if your entity is manually configured, otherwise create a bug report
at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
I don't know why it appeared after update, but it seems some other integrations suffered from same warning:
home-assistant/core#84376
The following entries for the outside camera appear in homeassistant.log:
2023-01-15 08:07:18.459 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_hauseingang_smart_alarm_duration: '30' (valid options: [30, 60, 90, 120])
2023-01-15 08:07:18.467 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_hauseingang_lighting_trigger: 'always' (valid options: [30, 60, 90, 120])
2023-01-15 08:07:18.498 ERROR (MainThread) [homeassistant.components.mqtt.number] Invalid value for number.kamera_hintere_terrasse_ambient_light_threshold: 255 (range 0.0 - 100.0)
2023-01-15 08:07:18.505 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_hintere_terrasse_smart_alarm_duration: '30' (valid options: [30, 60, 90, 120])
2023-01-15 08:07:18.510 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_hintere_terrasse_lighting_trigger: 'manual' (valid options: [30, 60, 90, 120])
2023-01-15 08:07:18.580 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_nebeneingang_smart_alarm_duration: '30' (valid options: [30, 60, 90, 120])
2023-01-15 08:07:18.584 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.kamera_nebeneingang_lighting_trigger: 'always' (valid options: [30, 60, 90, 120])
Hi,
I use SomfyProtect2MQTT for my automations based on the intellitag motion_sensor.
However, I note that the motion_sensor is not detected on the volumetric sensor.
When will this feature be available?
Thanks,
Luca.
Bonjour,
J'ai essayé d'avoir l'état des badges avec cette entité mais ça ne fonctionne pas pour moi.
J'ai plusieurs états différents et desvaleurs qui remontentent mais ne correspondent pas à l'appli.
Existe-t-il une autre entité ou je dois gérer la présence avec une autre intégration?
Merci d'avance
Hello,
I can't sound the alarm using switch.<>_siren entity in Home Assistant (latest release).
In fact, when switch status is off and I try to sound the alarm manually using the mobile app, the alarm is silent.
Do you have any idea please ?
Bonjour,
Un grand merci pour ton travail, désolé de ne pas poster en anglais, ce n'est pas mon fort.
J'ai créé un script pour associer des détecteurs de mouvement zigbee au declenchement de mon alarme, mais la fonction trigger ne fonctionne pas. Si dans le script je remplace par arm ou disarm le script fonctionne pas. Aurais tu une idée ? Quand je lis les logs il me met "cant reach item"
Si tu as besoin de ma renseignement sur ma configuration n'hésite pas.
Cordialement
Have some trouble finding out, how to get this to work. I surely are making a error.
Log:
raise_from_error(params.get('error'), params)
File "/usr/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 399, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant)
[18:47:48] WARNING: Halt add-on
[18:47:48] INFO: Service restart after closing
My config:
somfy_protect:
username: xxxxxxxxxxx
password: xxxxxxxxxxx
sites:
- Maison
homeassistant_config:
code: "0"
code_arm_required: false
code_disarm_required: false
mqtt:
host: 192.xxxxxxxxx
port: "1883"
ssl: false
username: xxxxxxxxxx
password: xxxxxxxxx
client-id: somfy-protect
topic_prefix: somfyProtect2mqtt
ha_discover_prefix: homeassistant
delay_site: "10"
delay_device: "60"
manual_snapshot: false
debug: false
🤔
Best regards.
Hello,
The logs are spam by the following error message :
2022-05-17 17:49:56 ERROR (MainThread) [homeassistant.components.mqtt.select] Invalid option for select.camera_cuisine_video_mode: 'HD' (valid options: ['FHD'])
HD is a valid option (FHD, HD and SD)
Can you correct that ?
Thanks.
Regards
Hi,
I don't find how start my camera, what entity I must use to do that ?
If I set ON with official app Somfy on my smartphone, all is OK, it work fine.
But just how I can set ON camera with your integration HA ?
Thank you.
Hi,
Since the new version It's broken for me with this error message:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='sso.myfox.io', port=443): Max retries exceeded with url: /oauth/oauth/v2/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff76ee2fb50>: Failed to establish a new connection: [Errno 13] Permission denied'))
My mqtt config:
host: 192.168.178.xxx <- local ip of HA
port: '1883'
ssl: false
username: mqtt-user
password: <pw>
client-id: somfy-protect
topic_prefix: somfyProtect2mqtt
ha_discover_prefix: homeassistant
What could be the issue? Previously it worked fine. (< v0.2.0). Now I am on v0.2.1.
Hello, after updating to 0.2.4, the somProtect2Mqtt service can't start, here is the log :
nov. 04 07:50:18 raspberrypi systemd[1]: Started Somfy2Mqtt.
nov. 04 07:50:19 raspberrypi python3[25423]: 2022-11-04 07:50:19,151 [INFO] [__main__:55] Starting SomfyProtect2Mqtt 0.2
nov. 04 07:50:19 raspberrypi python3[25423]: 2022-11-04 07:50:19,151 [INFO] [root:43] Reading config file None
nov. 04 07:50:19 raspberrypi python3[25423]: Traceback (most recent call last):
nov. 04 07:50:19 raspberrypi python3[25423]: File "/home/homeassistant/SomfyProtect2MQTT/somfyProtect2Mqtt/main.py", l
nov. 04 07:50:19 raspberrypi python3[25423]: CONFIG = read_config_file(CONFIG_FILE)
nov. 04 07:50:19 raspberrypi python3[25423]: File "/home/homeassistant/SomfyProtect2MQTT/somfyProtect2Mqtt/utils/__ini
nov. 04 07:50:19 raspberrypi python3[25423]: if not os.path.isfile(config_file):
nov. 04 07:50:19 raspberrypi python3[25423]: File "/usr/lib/python3.7/genericpath.py", line 30, in isfile
nov. 04 07:50:19 raspberrypi python3[25423]: st = os.stat(path)
nov. 04 07:50:19 raspberrypi python3[25423]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Main process exited, code=exited, status=1/FAILURE
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Failed with result 'exit-code'.
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Service RestartSec=100ms expired, scheduling restart
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Scheduled restart job, restart counter is at 5.
nov. 04 07:50:19 raspberrypi systemd[1]: Stopped Somfy2Mqtt.
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Start request repeated too quickly.
nov. 04 07:50:19 raspberrypi systemd[1]: somfyProtect2Mqtt.service: Failed with result 'exit-code'.
nov. 04 07:50:19 raspberrypi systemd[1]: Failed to start Somfy2Mqtt.
Can't use docker either, it fails to start with error
python: can't open file 'main.py': [Errno 2] No such file or directory
Hi !
Thanks for the great work ! I've tried to update to version 0.1.5 but I have the following error message:
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.
Thanks for your help,
Regards,
Snapshot doesn't work anymore ... is it normal ? thx everyone
Hello,
did anybody create a service to start at boot?
i've tryed in Ubuntu:
crontab -e
systemd
always getting errors...
which method did you use?
Thank you
Hello,
Thank you for sharing this project here.
I also have this somfy alarm, so I am very interrested to integrate it into Home assistant :)
I was able to copy your depot but the custom component refuse to start on mi RPI3.
I have the following error on my supervisor terminal :
21-04-15 08:28:54 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready 21-04-15 08:29:02 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with c53cd0b5_somfy-protect-2-mqtt! 21-04-15 08:29:02 ERROR (SyncWorker_3) [supervisor.docker] Image c53cd0b5/aarch64-addon-somfy-protect-2-mqtt not exists for addon_c53cd0b5_somfy-protect-2-mqtt 21-04-15 08:29:02 ERROR (MainThread) [supervisor.misc.tasks] c53cd0b5_somfy-protect-2-mqtt watchdog reanimation failed with
I have no idea wath it means ...
Hi,
I'm unable to arm home from HA, Arm Away is working fine.
Logs show:
[ERROR] Error when processing message: list index out of range
Regards,
Tim
Hi,
I am experimenting with somfy API and websocket. I am wondering how did you get the client_id and secret_id for you application ?
Thanks
Hello,
Just a quick question: does this work directly with the Somfy Home Alarm set, or does it require Tahoma to work?
Thanks!
Bonjour Minims,
D'abord merci pour ton travail.
J'ai réussi à installer ce module, je reçois bien les modifications d'état mais lorsque je clique sur un bouton, il ne se passe rien.
Dans les log, rien
2022-09-23 09:57:26,745 [INFO] [business:180] Update Mon alarme Status
2022-09-23 09:57:36,757 [INFO] [business:176] Update Sites Status
2022-09-23 09:57:36,935 [INFO] [business:180] Update Mon alarme Status
2022-09-23 09:57:46,948 [INFO] [business:176] Update Sites Status
2022-09-23 09:57:47,078 [INFO] [business:180] Update Mon alarme Status
J'ai certainement manqué quelque chose dans la configuration.
Merci d'avance pour ton aide
version | core-2022.9.6 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.5 |
os_name | Linux |
os_version | 5.15.67 |
arch | x86_64 |
timezone | Europe/Paris |
config_dir | /config |
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
host_os | Home Assistant OS 9.0 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2022.09.1 |
agent_version | 1.3.0 |
docker_version | 20.10.17 |
disk_total | 30.8 GB |
disk_used | 2.9 GB |
healthy | true |
supported | true |
board | ova |
supervisor_api | ok |
version_api | ok |
installed_addons | SomfyProtect2MQTT (0.2.1), File editor (5.4.1), Network UPS Tools (0.11.0) |
dashboards | 1 |
---|---|
resources | 0 |
views | 1 |
mode | storage |
oldest_recorder_run | 22 septembre 2022 à 19:37 |
---|---|
current_recorder_run | 23 septembre 2022 à 09:49 |
estimated_db_size | 1.37 MiB |
database_engine | sqlite |
database_version | 3.38.5 |
Bonjour,
je viens d'installer SomfyProtect2MQTT.
Les journaux sont ok mais je ne vois pas les entités de mes appareils somfy.
Il y a t'il une configuration a rajouter sur le fichier configuration.yaml.
Merci d'avance pour votre aide
Bonne soirée
Hello,
I'm facing an issue with the security camera shutter state control. I have the entity switch.camera_rdc_shutter_state in HA that provides the state of the shutter in real time when set by the alarm, but I can't set it on or off from HA. Is it a status only ?
If not controllable from HA, shouldn't it be a binary sensor instead of a switch?
I would like to be able to automate the camera shutter based on the status of my vacuum robot.
Hi, I'm currently testing your add-on, but was curious why having the devices "presence" as lost binary instead of a present binary?
The latter would better tie into the HA concept of device presence.
Continue the nice work, I have this alarm since 3 years and the IFTTT integration was not the ideal solution!
I have an issue with the siren of somfy protect.
There is a switch to disable or enable sound notification.
When I disable the sound in HA, the switch come back in true state after one second. On the somfy app the notification is always activate.
When I disable on the somfy app, the switch become false after few seconds in HA. I enable the sound notification in HA and this time it works. So it's just the disable which doesn't work (It's the same thing for light notification).
In general every things works good :)
Hi Minims,
I've been browsing the web to find a solution to manage my Somfy Alarm from Home Assistant (I saw your name many times on forums) and I'm glad to see that you began to work on something.
I would love to help you (as an end user) to debug and/or improve your app.
I have really basic knowledge in dev so I need a bit of explanation to go further. Is it possible to detail steps to install your app ?
Just to let you know, I started using HA a few month ago, it's running on a raspb3, mqtt broker is already set up and used through Node Red to drive Ikea spotlights and sonoff relay (garage door).
By the way I assume you speak french or even you're french ? I'm also french ;)
One more thing, I saw that something is on going on Jeedom's community side (an other french is building a plugin), don't know if it can be ported or at least help you...
https://community.jeedom.com/t/plugin-somfy-home-alarm-script-a-convertir-en-plugin/36119/31
Bonsoir Minims
J'ai trouvé ton intégration qui m'a l'air top à la place d'IFTTT. J'ai tenté de configurer l'add-on mais j'ai toujours l'info qu'il trouve 0 site en retour :
En mode debug je vois bien que les échanges de jetons avec Somfy marchent pourtant.
Et il me dit mettre tout le temps à jour le status (update sites status).
J'ai fait toutes les mises à jour système d'HA mais cela ne change pas. J'ai bien vérifié que le nom du site Myfox est le même que dans ma conf (Maison). La conf MQTT semble bonne aussi (j'utilise Zigbee2mqtt).
Peux-tu m'aider à trouver où je fais erreur ? 🙏
This is great to replace IFTTT which is slow and unreliable, thank you.
A feature that would great is the possibility to arm/disarm with a code just like the alarm control panel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.