Code: Select all
supervisorctl stop supla-virtual-deviceWystartuj supla-virtual-device poleceniem
Code: Select all
supervisorctl stop supla-virtual-deviceCode: Select all
supervisorctl stop supla-virtual-deviceCode: Select all
supervisorctl stop supla-virtual-deviceale skąd się tam wziął i jak to zmienić?[GLOBAL]
device_name=SUPLA VIRTUAL DEVICE
[SERVER]
host=svrX.supla.org
protocol_version=10
[LOCATION]
ID=
PASSWORD=
[MQTT]
host=mqtt.host
port=1883
username=
password=
client_name=supla-virtual-device
[CHANNEL_0]
function=TEMPERATURE_AND_HUMIDITY
file=/home/pi/supla-filesensors/var/livingroom_temperature.txt
[CHANNEL_1]
function=TEMPERATURE
file=/home/pi/supla-filesensors/var/raspberry_sdcard_free.txt
min_interval_sec=300
# example of getting payload switch 0/1 value
[CHANNEL_2]
function=POWERSWITCH
state_topic=relays/switch/0/state
command_topic=relays/switch/0/command
command_template=$value$
payload_on=1
payload_off=1
# example of getting payload dot separated temp and humidity value
# example 25.4 78
[CHANNEL_3]
function=TEMPERATURE_AND_HUMIDITY
state_topic=sensors/temphum/0/state
# example of parsing json payload { "on": true }
[CHANNEL_4]
function=LIGHTSWITCH
state_topic=relays/lightbulb/1/state
command_topic=relays/lightbulb/1/command
payload_value=/on
payload_on=true
payload_off=false
[CHANNEL_5]
function=WINDSENSOR
state_topic=sensors/wind/0/state
# this is a comment
Code: Select all
[GLOBAL]
device_name=SUPLA VIRTUAL DEVICE
[SERVER]
host=svrxx.supla.org
protocol_version=10
[LOCATION]
ID=xxx
PASSWORD=xxxx
[CHANNEL_0]
function=GATEWAYSENSOR
file=/home/pi/supla-mailbox/sensor_0.txt
[CHANNEL_1]
function=TEMPERATURE_AND_HUMIDITY
file=/home/pi/supla-mi-th/sensor_th1.txt
#file_write_check_sec=180