jayell
Published © MIT

Alert for dryer cycle complete

Monitor the power consumption of a dryer using a Tasmota S31 to determine when it completes a cycle and an alert can be generated.

IntermediateFull instructions provided2 hours18
Alert for dryer cycle complete

Story

Read more

Code

Home Assistant MQTT power monitor

YAML
This code goes into the Home assistant configuration file and creates a "platform" to monitor the MQTT power codes sent by Tasmota. Note that my device here is "tasmota9"
- platform: mqtt
  name: clothes_dryer
  state_topic: tele/tasmota9/MARGINS
  payload_on: '{"PowerLow":"OFF","PowerHigh":"ON"}'
  payload_off: '{"PowerLow":"ON","PowerHigh":"OFF"}'

Home Assistant automation for the new MQTT platform object

YAML
I have this in my "automations.yaml" file in home assistant and it triggers an announcement and Pushover when triggered
- id: dryer_finished
  alias: dryer finished
  trigger:
    platform: state
    entity_id: binary_sensor.clothes_dryer
    from: 'on'
    to: 'off'
  action:
    service: script.announcement
    data:
      message: >
        Dryer has finished

Tasmota console set-up

C Header File
These commands configure Tasmota to send MQTT messages when power exceeds these thresholds.
Note that the MQTT server must also be set up in the Tasmota device. This only works with Tasmota devices that include power monitoring, like Sonoff S31, not Sonoff S31 Lite.
PowerHigh 100
PowerLow 30

Credits

jayell
3 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.