Skip to content
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

Need to write Variables from Domoticz to Modbus Register #25

Open
spnk0 opened this issue May 19, 2020 · 2 comments
Open

Need to write Variables from Domoticz to Modbus Register #25

spnk0 opened this issue May 19, 2020 · 2 comments

Comments

@spnk0
Copy link

spnk0 commented May 19, 2020

It would be very nice to set the Payload On/Off for Modbus TCP from Devices or Variables from within Domoticz, so one can publish sensor readings and all other values to ModbusTCP.

Regards,

Johannes

@alexkiddde
Copy link

I would appreciate this too a lot. Just sending to different payload states does not fit many requirements.

@Vincent835
Copy link

Hi,

There may be what you were looking for here:
https://www.domoticz.com/forum/viewtopic.php?p=256121#p256121

Re: Python plugin: Modbus RTU / ASCII / TCP/IP
Post by eSbek » Saturday 12 September 2020 12:13

Hey developers of the plugin,
Some time ago I modded v1.0.9 for my house ventilation system to use different values of the fan speeds whenever I need (not using fixed payload value). So I decided to read a dedicated domoticz user variable inside the python script and write the value by Modbus to my ventilation system (eg. hi humidity detected in the bathroom -> speed goes on higher values).
Please find the mod if you want to develop same approach in your latest plugins:
https://pastebin.com/5zwiepyu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants