Hi everybody !
I’m new to home assistant, and I follow this topic since many days…
Today… I try to be less noob with HA !
I started to install Mosquitto Broker, then SomfyProtect2MQTT.
Everything seams to be good.
I use configuration file.
If I see the log, we can see :
2021-07-26 16:58:34,970 [INFO] Starting SomfyProtect2Mqtt
2021-07-26 16:58:34,971 [INFO] Reading config file config/config.yaml
2021-07-26 16:58:34,990 [INFO] Init SomfyProtect2Mqtt
2021-07-26 16:58:36,473 [INFO] Found 1 Site(s)
2021-07-26 16:58:36,474 [INFO] Look for Sites
2021-07-26 16:58:36,475 [INFO] Look for Devices
2021-07-26 16:58:36,476 [INFO] Update Sites Status
2021-07-26 16:58:36,477 [INFO] Update Camera Snapshot
2021-07-26 16:58:36,478 [INFO] Update Devices Status
2021-07-26 16:58:46,482 [INFO] Update Sites Status
OK ? But After… ? I feel lost… I dont see entity or card to see this plugin…
Is it possible to update the camera snapshot via a script or automation? I want to show the snapshot at my hub when motion is detected but because of the update delay the snapshot isn’t always showing what triggered the motion detector.
Will be merge in schumijo repo once it’s validated.
If you already have my repo :
Rebuild the SomfyProtect2MQTT-dev add-on in home assistant supervisor to test.
What’s New :
Manage Snapshot on old MyFox Security Camera
Manage Extender
Manage Fume Sensor
Add a param in config : manual_snapshot: true to avoid snapshot auto refresh. A switch is available to trigger a snapshot in all cas now. @Jerome33400@About2Break
I updated to the latest dev version, and I get a recurring warning in log :
Logger: homeassistant.helpers.template
Source: helpers/template.py:1612
First occurred: 11:21:49 (7 occurrences)
Last logged: 11:27:59
Template variable warning: 'dict object' has no attribute 'snapshot' when rendering '{{ value_json.snapshot }}'
Also, I’m using the add-on as a standalone python script ran as a service by the systemd on my Rpi at boot. The service is configured to wait for docker to be ready as I’m using MQTT in a docker container. I did it this way as I’m running HA core in docker.
It works very well, but whenever the MQTT docker container is restarted while the systemd service is already running (i.e. to update MQTT), the SomfyProtect2MQTT service loose connection to MQTT and never recover.
That’s annoying as HA then stops receiving updates from the alarm, locking my automations.
for value_json.snapshot I think it is a misconfiguration of the new switch allowing to manually trigger a snapshot. I will look a it. it might only have an issue for checking switch status which is here unused.
I will check the reconnect function on MQTT too so.
Works good for me without any errors. Maybe a stupid question but is it possible to make the ‘snapshot camera’ support the stream service? Without this service it is not possible to cast the camera to a hub or chromecast?