https://github.com/jms55/nestalarm
Monitor an EnvisaLink alarm module running Honeywell firmware, and set a Nest device to Home/Away depending on whether the alarm is Disarmed/Away.
https://github.com/jms55/nestalarm
Last synced: 2 months ago
JSON representation
Monitor an EnvisaLink alarm module running Honeywell firmware, and set a Nest device to Home/Away depending on whether the alarm is Disarmed/Away.
- Host: GitHub
- URL: https://github.com/jms55/nestalarm
- Owner: JMS55
- License: mit
- Created: 2021-12-29T20:32:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T06:05:27.000Z (over 2 years ago)
- Last Synced: 2025-01-20T21:18:58.271Z (4 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Nestalarm
### Monitor an EnvisaLink alarm module running Honeywell firmware, and set a Nest device to Home/Away depending on whether the alarm is Disarmed/Away.## Setup
* Install the `requests` library according to `requirements.txt`
* Setup a `config.py` file
* Generate the Nest API protobuf python bindings
### Example Config
```python
ALARM_IP = "168.178.46.43"
ALARM_PORT = 4025
ALARM_PASSWORD = "user"NEST_ENDPOINT = "https://grpc-web.production.nest.com/nestlabs.gateway.v1.ResourceApi/SendCommand"
NEST_USER_ID = "2760334"
NEST_STRUCTURE_ID = "015FB2C46740F660"
NEST_ACCESS_TOKEN = "g.0.eyJraWQiOiIyMzhiNTU..."
NEST_USER_AGENT = "Mozilla/5.0..."
```
Your Nest userid and access_token can be obtained by logging into the Nest webapp and then visting https://home.nest.com/session. You will have to manually change the config when the token becomes invalidated.Your Nest structure id can be obtained by running the program with an invalid structure id.
### Generating Nest Protobuf Python Bindings
Copy the nest-protobuf folder from this git repo https://github.com/derek-miller/nest-protobuf, and then run `generate-nestapi.sh`.## References
* https://github.com/emilburzo/nest-rest
* https://github.com/derek-miller/nest-protobuf
* http://forum.eyez-on.com/FORUM/viewtopic.php?t=301