-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Relay's #1375
Comments
No, it always stores the state in filesystem and sets it on boot. Make sure the pin is output and not used by board profile. |
For relay boards you have active low and active high relays. |
Ups, it's stored when changing via web, it's not stored on changes via api/mqtt. Has to be fixed. |
|
yes, perfect. Just upper case the strings |
Ok, i have integrated the function in my test(dev2) build. Should i make a PR or do you like to test first? |
Hey :) What about input support? As I plan to design my own hardware I would like to use more GPIOs of esp32 for few inputs/outputs role. About outputs, it also be nice to see some basic cronjobs syntax support, eg for stuff like enabling hot water circulation pump every day starting from 6am till 10pm for five minutes every two hours, for those who don't plan to use HA for it. Regards. |
There is already a scheduler in the firmware and several types of inputs
are also available in the Sensors section.
…On Fri, 3 Nov 2023, 19:04 hetii, ***@***.***> wrote:
Hey :)
What about input support?
As I plan to design my own hardware I would like to use more GPIOs of
esp32 for few inputs/outputs role.
About outputs, it also be nice to see some basic cronjobs syntax support,
eg for stuff like enabling hot water circulation pump every day starting
from 6am till 10pm for five minutes every two hours, for those ho don't
plan to use HA for it.
Regards.
—
Reply to this email directly, view it on GitHub
<#1375 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSGZAWU4KCDU5FKJI65Z4LYCUWY7AVCNFSM6AAAAAA6YKBVKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSHEYDCNRYG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@MichaelDvP I'm sure it's great, just PR and push into dev2. Do you think we should rename analogsensors at some point? |
This would be very nice to have! As by now seem that "virtually" turning on the inputs isn't working (#1388) i'll use a relay for turning on the smart grid i4 input. |
|
Whops, forgot the 3.3v thing, and also there aren't a lot of 3.3v relais, in any case would be nice to have this feature, there are out a lot of ready made relays modules with integrated driver... |
@masterx1981 You can already switch physical relays with EMS-ESP. If you want to make use of a relay currently the best way to do it is to use a ready made board with optocoupler inputs and an external power supply for the relay board. (Preferably with higher quality relays like Omron or Panasonic.) For some safety guidelines for everyone check here: https://bbqkees-electronics.nl/wiki/gateway/using-gateway-gpio.html Furthermore I do not support switching relays from a BBQKees Gateway. But if you do it anyway, use an external power supply for the relays. When connected via the service jack the power to run the Gateway flows back through components of the EMS circuit. Those are designed to carry the load of the Gateway itself (with a bit of head room of course) but NOT additional power hungry relays. |
3.6.5 support this and I've updated the documentaton. |
@proddy i habe been playing around wither the feature yesterday. It works great so far. If I set it to Active-Low the relay does not switch at all. |
This could be how the offset is handled in the code. I'll see if I can reproduce it. Can you tell me
I also noticed some fixes needed in the web UI, so I'll do those too! |
Thanks, the issue occurred on 3.6.5 as well as latest 3.7.0. Im using a Lolin S3 and pins 47/48. (it is a 2 way relay module). I could reproduce it, however, on other pins too. |
There is a bug in setting the pin in analogsensor.cpp, line 213 |
yeah, I saw that. Its on the fix list for my next PR (ft_dashboard branch) |
and line 759 with the |
fixed in ft_dashboard branch, probably 3.7.0-dev.44 |
@proddy thanks for the fast fix. The relays now also switch when set to "Active low". Unfortunately, they now behave the same as "Active high". |
Ups, Active low is stored as factor -1 in web (not 0 as i thought), so the switch should be: |
Fixed in 3.7.0-dev.45 |
Thanks, its working now! 🚀 |
New feature to handle Relay's attached to GPIOs.
@MichaelDvP I am missing anything?
The text was updated successfully, but these errors were encountered: