Home ventilation (automation) #11530
TrDA-hab
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Home ventilation (automation).
How I use this project in my city apartment:
1. RobotDyn AC Light Dimmer.
2. Sonoff D1 Dimmer.
Video of the driver's work:
More about using PZEM-004:
How to use it:
Run commands in the console for ESP-01S (remove comments first):
Rule1
ON Tele-ENERGY#Current>0.5 DO publish cmnd/Motor-1/Power1 0 ENDON
// if motor#2 is ON, then turn OFF motor#1ON Tele-ENERGY#Current<0.5 DO Backlog publish cmnd/Motor-1/Power1 1; publish cmnd/Motor-1/Dimmer 25 ENDON
// if motor # 2 is OFF, then turn on motor#1 and set motor#1 dimming to 25%Rule1 1
// Enable Rule1Rule 5
// Now the MQTT message will be sent once and only once as long as the condition (!!!) is met. It is ideal for turning on / off the on / off of the exhaust fan depending on external conditions.https://tasmota.github.io/docs/Rules/#usage-of-one-shot-once
Run commands in the console for Sonoff D1 (remove comments first):
Rule1
ON system#boot DO Backlog Power1 0; delay 10; Power1 1; Dimmer 25 ENDON
//turn on motor#2 and set motor#2 dimming to 25%Rule1 1
// Enable Rule1Rule2
ON Dimmer#State>80 DO Dimmer 25 ENDON
//turn on motor#2 and set motor#2 dimming to 25% (note(!) - see below.)Rule2 1
// Enable Rule2Note:
UPD#1:
If you’re having “ghost switching” events:
Best regards,
TrDA
Beta Was this translation helpful? Give feedback.
All reactions