Script homiep1
Main CLI application.
Reads configuration from environment variables and starts the P1-to-Homie bridge. Does not support any CLI parameters.
For configuring the log, use LuaLogging environment variable prefix "HOMIE_LOG_"
, see
"logLevel" in the example below.
Usage:
# configure parameters as environment variables export P1_SOCAT_INPUT="/dev/ttyUSB0,b115200" # default: "/dev/ttyUSB0,b115200" export HOMIE_MQTT_URI="mqtt://synology" # format: "mqtt(s)://user:pass@hostname:port" export HOMIE_DOMAIN="homie" # default: "homie" export HOMIE_DEVICE_ID="smartmeter" # default: "smartmeter" export HOMIE_DEVICE_NAME="P1 bridge" # default: "P1-smartmeter reader" export HOMIE_LOG_LOGLEVEL="info" # default: "INFO" # start the application homiep1