A Thermometer simulated device to test DomoticASW
Docker Hub - fracarluccii/domoticasw-thermometer
To run the thermometer device using Docker, you can use the following commands:
docker run fracarluccii/domoticasw-thermometerThe following configurations can be passed to the container as environment variables
| Variable name | Default value | Explanation |
|---|---|---|
| ID | thermometer-01 | thermometer ID |
| NAME | Thermometer | thermometer name |
| DEVICE_PORT | 8090 | Port used by the thermometer device |
| SERVER_ADDRESS | / | Address:port of the server |
| DISCOVERY_ADDRESS | 255.255.255.255 | Address for discovery broadcasts |
| DISCOVERY_PORT | 30000 | Port for discovery broadcasts |
At first send <<device-address>>/register request to the device to register it in the server.
- actualTemperature: The current temperature reading of the thermometer.
- requiredTemperature: The desired temperature to be set on the thermometer.
<<device-address>>/execute/set-temperature: Set the desired temperature on the thermometer.
Body example for set-temperature:
{
"input": 25.5
}- temperatureChanged: Triggered when the actual temperature changes.