Skip to content

Commit 788ccc8

Browse files
authored
Merge pull request #163 from vapouryh/master
Alexa Discovery Temp Fix
2 parents 6243841 + a96e40a commit 788ccc8

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.venv
2+
/__pycache__

fauxmo_config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"FAUXMO": {
3+
"ip_address": "auto"
4+
},
5+
"PLUGINS": {
6+
"SimpleHTTPPlugin": {
7+
"DEVICES": [
8+
{
9+
"name": "SOMFY",
10+
"on_cmd": "http://localhost:80/cmd/stop?shutter={SHUTTER_ID}",
11+
"off_cmd": "http://localhost:80/cmd/up?shutter={SHUTTER_ID}",
12+
"method": "POST",
13+
"initial_state": "on",
14+
"use_fake_state": true
15+
}
16+
]
17+
}
18+
}
19+
}

shutters.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=network-online.target
55

66
[Service]
77
User=pi
8-
ExecStart=sudo /usr/bin/python3 /home/pi/Pi-Somfy/operateShutters.py -c /home/pi/Pi-Somfy/operateShutters.conf -a -e -m
8+
ExecStart=sudo bash /home/pi/Pi-Somfy/start.sh
99
Environment=PYTHONUNBUFFERED=1
1010
Restart=on-failure
1111
Type=exec

start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
sudo /usr/bin/python3 /home/pi/Pi-Somfy/operateShutters.py -c /home/pi/Pi-Somfy/operateShutters.conf -a -m &
4+
fauxmo -c /home/pi/Pi-Somfy/fauxmo_config.json -vv

0 commit comments

Comments
 (0)