- Improved MQTT messaging (similar to Tasmota):
- Changed config options similar to Tasmota MQTT config
- Added last will topic and message: <full_topic>/LWT
- Added config for "Power ON state"
- For switches: 0=off; >0=on
- For dimmer: value is the dim level.
- Added more settings for wifi LED
- Relay = turn on or off according to Relay status
- MQTT topic = control the LED with MQTT messaged:
- topic: <full_topic>/led
MQTT messaging examples:
config:
topic="hfeasy_BE69AA";
full_topic="plug/%prefix%/%topic%/"
poweron_state=1;
wifi_led=mqtt_topic
$ mosquitto_sub -v -t "plug/#"
(plug into ac...)
plug/tele/hfeasy_BE69AA/LWT Online
plug/stat/hfeasy_BE69AA/power ON
(button push...)
plug/stat/hfeasy_BE69AA/power OFF
(led control...)
plug/cmnd/hfeasy_BE69AA/led ON
plug/cmnd/hfeasy_BE69AA/led OFF
(relay control...)
plug/cmnd/hfeasy_BE69AA/power ON
plug/stat/hfeasy_BE69AA/power ON
plug/cmnd/hfeasy_BE69AA/power OFF
plug/stat/hfeasy_BE69AA/power OFF