/////////////// //eHouse Ethernet, RS-485, RS-422 ubyte type; //type must be 1 for ERM ubyte size; //size of frame ubyte AddrH; //ADDRESS ubyte AddrL; //192.168.AddrH.AddrL ubyte code; // 's' for status ubyte DimmerR; ubyte DimmerG; ubyte DimmerB; //adc measurements short ADC1; short ADC2; short ADC3; short ADC4; short ADC5; short ADC6; short ADC7; short ADC8; short ADC9; short ADC10; short ADC11; short ADC12; short ADC13; short ADC14; short ADC15; short ADC16; //adc high level for regulation short ADCH1; short ADCH2; short ADCH3; short ADCH4; short ADCH5; short ADCH6; short ADCH7; short ADCH8; short ADCH9; short ADCH10; short ADCH11; short ADCH12; short ADCH13; short ADCH14; short ADCH15; short ADCH16; //adc low level for regulation short ADCL1; short ADCL2; short ADCL3; short ADCL4; short ADCL5; short ADCL6; short ADCL7; short ADCL8; short ADCL9; short ADCL10; short ADCL11; short ADCL12; short ADCL13; short ADCL14; short ADCL15; short ADCL16; //ADC units suffix utf8 unit1; utf8 unit2; utf8 unit3; utf8 unit4; utf8 unit5; utf8 unit6; utf8 unit7; utf8 unit8; utf8 unit9; utf8 unit10; utf8 unit11; utf8 unit12; utf8 unit13; utf8 unit14; utf8 unit15; utf8 unit16; //Binary Outputs DOut bit out1; bit out2; bit out3; bit out4; bit out5; bit out6; bit out7; bit out8; bit out9; bit out10; bit out11; bit out12; bit out13; bit out14; bit out15; bit out16; bit out17; bit out18; bit out19; bit out20; bit out21; bit out22; bit out23; bit out24; bit out25; bit out26; bit out27; bit out28; bit out29; bit out30; bit out31; bit out32; bit out33; bit out34; bit out35; bit out36; bit out37; bit out38; bit out39; bit out40; //binary inputs states DIn bit input1; bit input2; bit input3; bit input4; bit input5; bit input6; bit input7; bit input8; bit input9; bit input10; bit input11; bit input12; bit input13; bit input14; bit input15; bit input16; bit input17; bit input18; bit input19; bit input20; bit input21; bit input22; bit input23; bit input24; byte CURRENT_PROGRAM; // Program Nr. byte CURRENT_ZONE; // Security Zone Nr. byte CURRENT_ADC_PROGRAM; // ADC program byte CURRENT_PROFILE; // Program Nr. { "Controller Type":{{type}}, "Address":"({{addrh}} , {{addrl}})", "Light Scene Nr.": {{current_program}}, "ADC Program Nr.": {{current_adc_program}}, "Dimmer R":"{{dimmerr}} [%]", "Dimmer G":"{{dimmerg}} [%]", "Dimmer B":"{{dimmerb}} [%]", "ADC 1":"{{#math}}{{adc1}}/10{{/math}} [{{unit1}}], Regulation Range: ({{#math}}{{adcl1}}/10{{/math}}; {{#math}}{{adch1}}/10{{/math}})", "ADC 2":"{{#math}}{{adc2}}/10{{/math}} [{{unit2}}], Regulation Range: ({{#math}}{{adcl2}}/10{{/math}}; {{#math}}{{adch2}}/10{{/math}})", "ADC 3":"{{#math}}{{adc3}}/10{{/math}} [{{unit3}}], Regulation Range: ({{#math}}{{adcl3}}/10{{/math}}; {{#math}}{{adch3}}/10{{/math}})", "ADC 4":"{{#math}}{{adc4}}/10{{/math}} [{{unit4}}], Regulation Range: ({{#math}}{{adcl4}}/10{{/math}}; {{#math}}{{adch4}}/10{{/math}})", "ADC 5":"{{#math}}{{adc5}}/10{{/math}} [{{unit5}}], Regulation Range: ({{#math}}{{adcl5}}/10{{/math}}; {{#math}}{{adch5}}/10{{/math}})", "ADC 6":"{{#math}}{{adc6}}/10{{/math}} [{{unit6}}], Regulation Range: ({{#math}}{{adcl6}}/10{{/math}}; {{#math}}{{adch6}}/10{{/math}})", "ADC 7":"{{#math}}{{adc7}}/10{{/math}} [{{unit7}}], Regulation Range: ({{#math}}{{adcl7}}/10{{/math}}; {{#math}}{{adch7}}/10{{/math}})", "ADC 8":"{{#math}}{{adc8}}/10{{/math}} [{{unit8}}], Regulation Range: ({{#math}}{{adcl8}}/10{{/math}}; {{#math}}{{adch8}}/10{{/math}})", "ADC 9":"{{#math}}{{adc9}}/10{{/math}} [{{unit9}}], Regulation Range: ({{#math}}{{adcl9}}/10{{/math}}; {{#math}}{{adch9}}/10{{/math}})", "ADC 10":"{{#math}}{{adc10}}/10{{/math}} [{{unit10}}], Regulation Range: ({{#math}}{{adcl10}}/10{{/math}}; {{#math}}{{adch10}}/10{{/math}})", "ADC 11":"{{#math}}{{adc11}}/10{{/math}} [{{unit11}}], Regulation Range: ({{#math}}{{adcl11}}/10{{/math}}; {{#math}}{{adch11}}/10{{/math}})", "ADC 12":"{{#math}}{{adc12}}/10{{/math}} [{{unit12}}], Regulation Range: ({{#math}}{{adcl12}}/10{{/math}}; {{#math}}{{adch12}}/10{{/math}})", "ADC 13":"{{#math}}{{adc13}}/10{{/math}} [{{unit13}}], Regulation Range: ({{#math}}{{adcl13}}/10{{/math}}; {{#math}}{{adch13}}/10{{/math}})", "ADC 14":"{{#math}}{{adc14}}/10{{/math}} [{{unit14}}], Regulation Range: ({{#math}}{{adcl14}}/10{{/math}}; {{#math}}{{adch14}}/10{{/math}})", "ADC 15":"{{#math}}{{adc15}}/10{{/math}} [{{unit15}}], Regulation Range: ({{#math}}{{adcl15}}/10{{/math}}; {{#math}}{{adch15}}/10{{/math}})", "ADC 16":"{{#math}}{{adc16}}/10{{/math}} [{{unit16}}], Regulation Range: ({{#math}}{{adcl16}}/10{{/math}}; {{#math}}{{adch16}}/10{{/math}})", "DOUT 1": {{out1}}, "DOUT 2": {{out2}}, "DOUT 3": {{out3}}, "DOUT 4": {{out4}}, "DOUT 5": {{out5}}, "DOUT 6": {{out6}}, "DOUT 7": {{out7}}, "DOUT 8": {{out8}}, "DOUT 9": {{out9}}, "DOUT 10": {{out10}}, "DOUT 11": {{out11}}, "DOUT 12": {{out12}}, "DOUT 13": {{out13}}, "DOUT 14": {{out14}}, "DOUT 15": {{out15}}, "DOUT 16": {{out16}}, "DOUT 17": {{out17}}, "DOUT 18": {{out18}}, "DOUT 19": {{out19}}, "DOUT 20": {{out20}}, "DOUT 21": {{out21}}, "DOUT 22": {{out22}}, "DOUT 23": {{out23}}, "DOUT 24": {{out24}}, "DOUT 25": {{out25}}, "DOUT 26": {{out26}}, "DOUT 27": {{out27}}, "DOUT 28": {{out28}}, "DOUT 29": {{out29}}, "DOUT 30": {{out30}}, "DOUT 31": {{out31}}, "DOUT 32": {{out32}}, "VDOUT 33": {{out33}}, "VDOUT 34": {{out34}}, "VDOUT 35": {{out35}}, "VDOUT 36": {{out36}}, "VDOUT 37": {{out37}}, "VDOUT 38": {{out38}}, "VDOUT 39": {{out39}}, "VDOUT 40": {{out40}}, "DIN 1": {{input1}}, "DIN 2": {{input2}}, "DIN 3": {{input3}}, "DIN 4": {{input4}}, "DIN 5": {{input5}}, "DIN 6": {{input6}}, "DIN 7": {{input7}}, "DIN 8": {{input8}}, "DIN 9": {{input9}}, "DIN 10": {{input10}}, "DIN 11": {{input11}}, "DIN 12": {{input12}}, "DIN 13": {{input13}}, "DIN 14": {{input14}}, "DIN 15": {{input15}}, "DIN 16": {{input16}}, "DIN 17": {{input17}}, "DIN 18": {{input18}}, "DIN 19": {{input19}}, "DIN 20": {{input20}}, "DIN 21": {{input21}}, "DIN 22": {{input22}}, "DIN 23": {{input23}}, "DIN 24": {{input24}} }