-
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
Add virtual Buttons & Switches in Digtian driver #18223
Add virtual Buttons & Switches in Digtian driver #18223
Conversation
I can confirm this works ok |
I want to thank @barbudor for this pull request. I'm using it to control a heat pump and gas boiler by a berry script: |
@jeroenst I assume you did this with the dingtian boards that weren't preprogrammed? |
@stefdewilde I had to request a dingtian board which is unlocked and only contained test software which I erased before flashing Tasmota. The original board/software is locked, which also makes me suspicious if any backdoors are programmed in the original code. |
@barbudor I've compiled it with #define DINGTIAN_USE_AS_SWITCH and I've set "SetOption114 1". That didn't detached switches from their relays. Is this the expected behavior? |
I'm unsure about the effect of @arendst Any reason why |
Just tested SO114 with PCF8574 virtual switches and it works as expected:
For SO114 to work switchmode should be set between 0 and 7 and SO19 should be 0 |
Description:
Related issue (if applicable): Followup on previous PR and the discussion with @jeroenst
Take advantage of recent support for virtual Buttons and Switches to implement that on the inputs of the DINGTIAN Relay board
3 new optional defines are supported:
tasmota.get_switches()
). It also works with Switches although inversion can be handled bySwitchMode
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass