-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Shitf595 dynamic device count #22543
Shitf595 dynamic device count #22543
Conversation
What if not all your relays are on the 595 ? |
Once I receive my 595 based relay board I will look at the code, haven’t seen it yet, and make it work like the mcp23xxx one with virtual relays. |
@arendst Which board have you ordered ? |
That's why I reference devices_present in the condition. Since to my knowledge GPIO-configured relays take precedence over drivers, that should be enough to check if the driver can add more relays (especially that if used together with PCF and MCP which have lower driver number and I assume will bump the devices_present counter before 595 init) |
What do you mean by that? Like a configurable driver, or being able to use only a part of the outputs? |
As said, I haven’t looked at the driver yet, but it should just add relays like extending normal gpuo relays. Come to think about it I may be misguided by the fact thaat the 595 driver only supports outputs. In that case forget my remarks. |
this board uses an ESP8266, is there a board with an ESP32 too? Thanks! |
@Noschvie I replaced it with an ESP32-C3-12F. But I did that because I need ESP32 with its 16 shutters support. If you want to only have a ton of relays, you're fine with ESP8266 |
@Noschvie There are the Dingtian boards There's a Tasmota driver for it Beware that if you want to flash Tasmota you need to tell them when ordering otherwise they ship with their own firmware and they blow the fuses to prevent reflashing. Discussions on these boards : #16797 |
yea nvm i'm blind as usual |
8, 16 or 32 relays |
wow... almost 40cm. |
I'll merge this now. |
Description:
Related issue (if applicable): fixes #
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass