This is probably literally no use to anyone else, but it's here anyway.
I switched everything to using Docker since I now run it on Docker, yay.
Copy .env.dist
to .env
, and configure it. Descriptions of the environment variables are below.
- The worker sits there, grabbing sensor statuses from a Yale smart alarm system
- Sensor statuses are then sent to Home Assistant webhook
LOG_LEVEL
how verbose the logging is - defaults todebug
, but recommend toinfo
(1 log per interval) ornotice
(only logs when things go wrong)YALE_*
are the Yale smart alarm credentialsHA_URL
is the Home Assistant URLHA_TOKEN
you must generate from your HA install (go to your own user profile, clickCreate Token
inLong-Lived Access Tokens
section at the bottom)INTERVAL
how often to poll Yale smart alarm and update HA (in seconds)GATEWAY_IP
the gateway for the WAN port checker that supports dual-WAN configurationWAN_GATEWAYS
IP to label maps of the known WAN gateways, JSON object{"192.168.x.x":"WAN 1","192.168.y.y":"WAN 2"}
- can just be{}
to not labelTRACE_HOPS
WAN traceroute number of hopsPELLET_PRODUCT_URL
URL for the product for pellet price checkingPELLET_SELECTOR
xpath selector for the price itselfPELLET_REQUEST_FREQUENCY_SECS
how often to check for pellet prices
To run it, make run-worker
.
- Displays a list of internet up/down times for a specific named entity
binary_sensor.internet_connectivity_8_8_8_8
DSN
is the Postgres DSN, which varies depending on security and DB configuration
To run it, make run-web
.
- Run
make push DOCKER_REGISTRY=url-for-your-docker-registry
to push thelatest
tags - Run the Docker images on the Docker daemon as appropriate, with the environment variables required for each image