Sterbox PLC

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
houk
Posts: 17
Joined: Thursday 07 April 2016 16:53
Target OS: Linux
Domoticz version: 2023.2
Contact:

Sterbox PLC

Post by houk »

Hello.

I'm new in Domoticz, using it about 2 weeks and love it. My previous system, vera lite run very slow because of memory limit.
I'm have 8 hardware devices called Sterbox PLC (http://sterbox.eu/index.php/sterbox) and i'm create a hardvare plugin to using Sterbox in Domoticz based on device ETH8020 because Sterbox using HTTP protocol for reading status and set outputs.

Difference between this devices is that Sterbox can have many configurations. It could be 4 outputs and 4 inputs or 12 output/12 inputs or 24 outputs only. Any port from 0 to 23 can have different status input or output.
Sterbox have also 3 analog inputs that could have different devices attached (temp, hum, volt, lux)

I'm have an idea to use from ETH8020 variables username and password because for Sterbox is useless and use it to store configuration for example
username = "o,o,o,o,i,i,i,i" to set first 4 as outputs and next 4 as inputs
password = t,h,v to set analog inputs classes to temp, humidity, voltage

And I need help with 3 things:
Validate the code because im fresh in domoticz, maybe some things may be done better.
Change the variable name for this device, username and password on hardware tab in DZ to Input/Output (o,o,o,o,i,i,i,i) and Analog Devices (t,v,h)
Include this hardware plugin in git repository.

cpp file in attachment and also example of sterbox status page

EDIT: Created pull request on github for now with settings stored in Username and password field.
Tested with Sterbox firmware 2.1.2 ad 2.1.3
Attachments
sterbox.zip
(3.63 KiB) Downloaded 106 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest