Sign inSign up

ventus218/domoticasw-boolean-sensor

By ventus218

•Updated about 1 year ago

A boolean sensor simulated device for testing DomoticASW

Image
0

1.5K

ventus218/domoticasw-boolean-sensor repository overview

⁠A boolean sensor simulated device for testing DomoticASW

This sensor is highly customizable and aims to be able to emulate any sensor which can detect a condition or its absence

⁠Run with docker

docker run -e LAN_HOSTNAME=localhost -e SERVER_DISCOVERY_PORT=30000 ventus218/domoticasw-boolean-sensor

The following configurations can be passed to the container as environment variables. Variables marked with * are mandatory.

For example docker run -e LAN_HOSTNAME=localhost -e TARGET_CONDITION="Rain" ventus218/domoticasw-boolean-sensor

Variable nameDefault valueExplanationAdmissible values
IDboolean-sensorDevice idAny string unique in the system
NAME<TARGET_CONDITION> sensorSensor nameAny string
TARGET_CONDITIONPresenceName/Kind of the condition to detectAny string
CONDITION_PROBABILITY25Probability of the condition to happenInteger >= 0 and <= 100
CONDITION_TEST_PERIOD_MS5000Amount of time between two subsequent measures (ms)Integer > 0
DISCOVERY_BROADCAST_ADDR255.255.255.255Broadcast address to which send discovery announcesAny valid broadcast address (ex: 192.168.1.255)
*LAN_HOSTNAMELAN hostname that will resolve to the device ipAny valid hostname (ex: sensor1234)
*SERVER_DISCOVERY_PORTPort on which the server expects discovery announcesAny valid port
SERVER_ADDRESSShould be set if boolean sensor is already registered<host>:<port>
PORT8080Port on which the device will listenAny valid port

Tag summary

Content type

Image

Digest

sha256:70a19a1f4…

Size

53.9 MB

Last updated

about 1 year ago

docker pull ventus218/domoticasw-boolean-sensor