[BTicino/OpenWebNet] Adding AUX commands: design

New topic for the expansion of the AUX commands on the Openwebnet 2.x protocol @massi .

I implemented, in part, the beta 8.

@massi I need the source files of your library 0.9.16 because I stopped (case SCS_AUX) here:

if (deviceType != null) {
            switch (deviceType) {
                case ZIGBEE_ON_OFF_SWITCH: {
                    thingTypeUID = OpenWebNetBindingConstants.THING_TYPE_ON_OFF_SWITCH;
                    thingLabel = OpenWebNetBindingConstants.THING_LABEL_ON_OFF_SWITCH;
                    break;
                }
                case ZIGBEE_DIMMER_SWITCH: {
                    thingTypeUID = OpenWebNetBindingConstants.THING_TYPE_DIMMER;
                    thingLabel = OpenWebNetBindingConstants.THING_LABEL_DIMMER;
                    break;
                }
                case SCS_ON_OFF_SWITCH: {
                    thingTypeUID = OpenWebNetBindingConstants.THING_TYPE_BUS_ON_OFF_SWITCH;
                    thingLabel = OpenWebNetBindingConstants.THING_LABEL_BUS_ON_OFF_SWITCH;
                    break;
                }
                case SCS_AUX: {
                 thingTypeUID = OpenWebNetBindingConstants.THING_TYPE_BUS_AUX;
                 thingLabel = OpenWebNetBindingConstants.THING_LABEL_BUS_AUX;
                 break;
                }
                case SCS_DIMMER_SWITCH: {

Hi Michele,
Very good news you want to contribute to the project !!
I am away from home these days + very busy , I am allocating all OH2 time I have (few hours) to the CEN implementation.
I will get back to you via PM about the lib and possible collaboration on the project.

Are you a Java developer?

Bye
M

@massi,
I’m writing a document to share with you, after I send it to you

write in Italian?

Hello,
while @massi is working on CEN and CEN +, I’m trying to understand the AUX commands.
There is no official documentation, except on page 8 of the WHO = 5

*9*[WHAT 0-10]*[WHERE 1-9]##

Auxiliary WHAT values:
     * OFF -> 0
     * ON -> 1
     * TOGGLE -> 2
     * STOP -> 3
     * UP -> 4
     * DOWN -> 5
     * ENABLED -> 6
     * DISABLED -> 7
     * RESET_GEN -> 8
     * RESET_BI -> 9
     * RESET_TRI -> 10

What do they need [WHAT] from 2 to 10?

Waiting for the implementation of the AUX commands (WHO = 9) in the new bindind 2.0 of boulders, I provisionally implemended version 1.0 with the Aux management, only WHAT = 0 and WHAT = 1 (OFF and ON).
Other WHAT I do not know what they need.
who = 9
what=0
where = number aux

Switch  	All_aux4 	"XXXXXXXX" 	(C_Allarme, G_Sensore)  [ "Lighting" ] 		        {bticino="if=webserver;who=9;what=0;where=4"}

To install:

  • uninstall the official version
  • download the attached file and rename the extension .pdf to .jar
  • copy to the openhab2-addons folder

org.openhab.binding.bticino-aux.pdf (55.1 KB)