alcar21 / WemosEM

Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)
113 stars 23 forks source link

Relay shield #15

Open avm162 opened 3 years ago

avm162 commented 3 years ago

I first congratulate you on the work. It works very well to monitor consumption. It would lack a little more precision. I wanted to know if it is possible to integrate at least one output to be able to put a relay shield. If it could be controlled by mqtt and even depending on some consumption rule it would be fantastic. Thanks anyway if it can't be done. Greetings. Sorry for the English, I used Google translator

plutec commented 3 years ago

Hi @avm162 . I think than in the hardware device you have enough GPIO to use, but the functionality of the relay is not really related with the purpose of the project. Maybe you can manage that with any other tool (check ESPHome). If your requirement is a bit more complex, you need to jump to HomeAssistant to create automations.

avm162 commented 3 years ago

Hi. It was to control a relay depending on the consumption, even through HA, but without having to use another esp. thanks anyway.

El dom., 1 nov. 2020 3:04, Antonio Sánchez notifications@github.com escribió:

Hi @avm162 https://github.com/avm162 . I think than in the hardware device you have enough GPIO to use, but the functionality of the relay is not really related with the purpose of the project. Maybe you can manage that with any other tool (check ESPHome). If your requirement is a bit more complex, you need to jump to HomeAssistant to create automations.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alcar21/WemosEM/issues/15#issuecomment-720014959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE74E4UZQHXWVBW55UY5W7DSNS6Z5ANCNFSM4TD5QFKA .

plutec commented 3 years ago

Yes, I understand what you say, but is not the purpose of the firmware. Just waiting to @alcar21 to confirm if wants to include that feature.

alcar21 commented 3 years ago

I understand good. No problem 👍 The problem with precision is because the ESP8266 has an ADC that doesn't allow more precision to be measured.

I am preparing another firmware for PZEM 004T, it is much better.

it's possible to use a relay shield but it's better that you use another system like a Tasmota, Espurna, or EspHome to control this relay shield. Another option is to use one output to connect a contactor.

Now, I have no time. Due to the pandemic, it is difficult for me to spend time on this firmware.