Yes, I am using minimalmodbus at the Raspi and SimpleModbusSlave at the Arduino.
The plugin actually only need to use the function calls instrument.write_register() instead of setting the GPIO pins.
For reading input values like the moisture sensor, it would need to use the function call instrument.read_register().
To be honest, I am not sure where to start. My python knowledge is more at beginners level. There are a lot of function calls in the OpenSprincler code at which the GPIO is referred.
My goal would be to use the minimalmodbus python functions instead of GPIO pins to enable/disable the valves.
In addition I also would like to add moisture sensors via minimalmodbus, but I guess up to now only rain sensors are supported so it would need a second plugin I guess, right?
The plugin actually only need to use the function calls instrument.write_register() instead of setting the GPIO pins.
For reading input values like the moisture sensor, it would need to use the function call instrument.read_register().
To be honest, I am not sure where to start. My python knowledge is more at beginners level. There are a lot of function calls in the OpenSprincler code at which the GPIO is referred.
My goal would be to use the minimalmodbus python functions instead of GPIO pins to enable/disable the valves.
In addition I also would like to add moisture sensors via minimalmodbus, but I guess up to now only rain sensors are supported so it would need a second plugin I guess, right?