-
Notifications
You must be signed in to change notification settings - Fork 2
MQTT command and state
Peter Kretz edited this page May 12, 2022
·
1 revision
The PoolControl is able to receive MQTT Commands and to sen dits state via MQTT. The topics could be configured in appsettings.json (e.g): "BaseTopic": { "Command": "PoolControl/cmd/", "State": "PoolControl/state/" },****
- In this example, all temperatures will be send as a state like "PoolControl/state/Temperatures/Key/Temperature" with the temperature as the payload with a point as decimal sign, where Key is the configured key of the regarding temperature.
- All Switches send their states as topic "PoolControl/state/Switches/Key/On" with a payload of 1 for on and 0 for off.
- You can switch the switch via command topic "PoolControl/cmd/Switches/Key/On" with a payload of 1 for on and 0 for off. Ph and Redox Values will be send as "PoolControl/state/Ph or Redox/Value.
- With the same principals other Properties will send their states or you could control them with command topics.
- For example if you want to change the interval for measuring es temperature, you send "PoolControl/cmd/Temperatures//IntervalInsec" with a paylod of the period seconds you want the temperature to be measured.