-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the README Sort the manifest Advance to version 0.9.2
- Loading branch information
Showing
10 changed files
with
107 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Loads default set of integrations. Do not remove. | ||
default_config: | ||
|
||
logger: | ||
default: info | ||
logs: | ||
custom_components.comelit: debug | ||
|
||
comelit: | ||
hub: | ||
host: X.X.X.X | ||
port: 1883 | ||
mqtt-user: hsrv-user | ||
mqtt-password: sf1nE9bjPc | ||
username: comelithub | ||
password: xxxxxxxx | ||
serial: xxxxxxxxxxxxx | ||
client: homeassistant | ||
scan_interval: 2 | ||
vedo: | ||
host: X.X.X.X | ||
port: 80 | ||
password: xxxxxx | ||
scan_interval: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '2.4' | ||
|
||
services: | ||
homeassistant: | ||
image: homeassistant/home-assistant:latest | ||
container_name: homeassistant | ||
networks: | ||
default: { } | ||
ports: | ||
- "8123:8123" | ||
volumes: | ||
- ../custom_components/comelit:/config/custom_components/comelit | ||
- ./configuration.yaml:/config/configuration.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
*venv | ||
.coverage | ||
.idea | ||
.venv | ||
.vscode/ | ||
__pycache__ | ||
pythonenv* | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"domain": "comelit", | ||
"name": "Comelit SimpleHome/Vedo", | ||
"documentation": "https://github.com/gicamm/homeassistant-comelit/wiki", | ||
"issue_tracker": "https://github.com/gicamm/homeassistant-comelit/issues", | ||
"dependencies": [], | ||
"codeowners": [ | ||
"@gicamm" | ||
], | ||
"requirements": [ | ||
"requests", | ||
"paho-mqtt", | ||
"wrapt_timeout_decorator" | ||
], | ||
"iot_class": "local_push", | ||
"quality_scale": "silver", | ||
"version": "0.9.1", | ||
"config_flow": false | ||
"domain": "comelit", | ||
"name": "Comelit SimpleHome/Vedo", | ||
"codeowners": [ | ||
"@gicamm" | ||
], | ||
"config_flow": false, | ||
"dependencies": [], | ||
"documentation": "https://github.com/gicamm/homeassistant-comelit/wiki", | ||
"iot_class": "local_push", | ||
"issue_tracker": "https://github.com/gicamm/homeassistant-comelit/issues", | ||
"quality_scale": "silver", | ||
"requirements": [ | ||
"requests", | ||
"paho-mqtt", | ||
"wrapt_timeout_decorator" | ||
], | ||
"version": "0.9.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## SUB | ||
mosquitto_sub -v -h $IP -p $PORT -u "hsrv-user" -P "sf1nE9bjPc" -t 'HSrv/$SERIAL/tx/test' | ||
|
||
|
||
## LOGIN | ||
mosquitto_pub -h $IP -p $PORT -u "hsrv-user" -P "sf1nE9bjPc" -t 'HSrv/$SERIAL/rx/gc' -m '{"req_type": RequestType.LOGIN, "req_sub_type": -1, "agent_type": 0, "user_name": $USERNAME,"password": $PWD}' | ||
|
||
|
||
|
||
Read the session ID from the response | ||
HSrv/$SERIAL/tx/gc {"req_type":5,"req_sub_type":-1,"seq_id":0,"req_result":0,"uid":".....","sessiontoken":"......"} | ||
|
||
Then use that session ID for publishing messages | ||
|
||
#Turn light ON | ||
mosquitto_pub -h $IP -p $PORT -u "hsrv-user" -P "sf1nE9bjPc" -t 'HSrv/$SERIAL/rx/gc' -m '{"req_type": 1, "req_sub_type": 3, "obj_id": "DOM#LT#24.1", "act_type": 0, "act_params": [1], "seq_id": 8321, "agent_id": 10, "sessiontoken": "....."}'' |