I am using a Raspberry and followed the docker container approach (
https://bropat.github.io/eufy-security-ws/#/docker), updating the variables with the correct values for me (I am in France, with Homebases v2 & v3, using a mobile phone called Pixel 6a for my Eufy app on a daily basis):
Code: Select all
docker run --network host -it \
-e USERNAME=your-secondary-account\
-e PASSWORD="corresponding-password"\
-e PORT=3000\
-e COUNTRY=FR\
-e LANGUAGE=fr\
-e TRUSTED_DEVICE_NAME="Pixel 6a"\
-e STATION_IP_ADDRESSES="T8010P232010034A:192.168.10.60;T8030P2323101277:192.168.10.34"\
-v /home/pi/docker/eufy-security-ws/data:/data \
bropat/eufy-security-ws:latest
Corresponding result in the shell:
Code: Select all
2023-08-29 20:09:12.014 INFO Eufy Security server listening on host 0.0.0.0, port 3000
2023-08-29 20:09:17.343 INFO Connected to station T8010P232010034A on host 192.168.10.60 and port 27393
2023-08-29 20:09:17.422 INFO Connected to station T8030P2323101277 on host 192.168.10.34 and port 29815
2023-08-29 20:09:20.546 INFO Push notification connection successfully established
2023-08-29 20:09:25.902 INFO Push notification connection successfully established
Then, with the following python script, I was able to disarm my Homebase3 (replace your-docker-ip string with the IP of the machine running your docker, same for the serial number of your homebase):
Code: Select all
import json
from websocket import create_connection
ws = create_connection("ws://your-docker-ip:3000")
print(ws.recv())
ws.send(json.dumps({"command": "station.set_property", "serialNumber": "T8030P2323101277", "name": "guardMode", "value": "63"}))
print(ws.recv())
ws.close()
The corresponding log:
Code: Select all
2023-08-29 20:40:45.620 INFO Alarm mode for station T8030P2323101277 changed to: DISARMED
2023-08-29 20:40:45.863 INFO Received push notification for changing guard mode
{
guard_mode: 63,
current_mode: 63,
stationSN: 'T8030P2323101277'
}
You just need to create several Python scripts, one for each of the scenario you want to achieve, and to execute them in Domoticz (by filling the "Action on" or "Action off" fields of your scenarios with these scripts).
I used the following thread to understand what to do (in french, sorry) :
https://community.jeedom.com/t/integrat ... eufy/76603
For remind, the guardmode values:
Code: Select all
Away = 0
Home = 1
Disarmed = 63
Planned = 2
Geofencing = 47
CUSTOM1 = 3
CUSTOM2 = 4
CUSTOM3 = 5
Hope it helps.
Raspberry Pi 4 (8GB) & 3B+ (buster) / Conbee II / Z-Stick Gen 5 / RFXCOM 433 XL / Domoticz 2020.02
Pi zero 2 ordered