marcelzoller / loxberry-plugin-magichome

A Plugin for Loxberry to Magic Home WiFi LED Controller.
2 stars 2 forks source link

Error by parameter parsing #1

Closed onhala closed 1 year ago

onhala commented 1 year ago

Error by parsing of data from Loxone. Looks like something changed in parsing of udp data.

If i type the value as string directly in virtual digital output command it works. If i use analog output with value the plugin interprets the value as Inf.

image

INFO: --------------- START --------------- INFO: RECIVED DATE: 10.0.20.110:RGBInf:on 11.03.2023 15:46:51 MagicHome IP: 10.0.20.110 MagicHome Parm 1: RGBInf MagicHome Parm 2: on MagicHome Parm 3: Befehl RGB RGB Code: Inf LoxRGB: Inf,RGB, RGB: Inf,0,0 Befehl --on python magichome.py 10.0.20.110 -c Inf,0,0 --on INFO: Usage: usage: magichome.py [-sS10cwpCiltThe] [addr1 [addr2 [addr3] ...]. INFO: INFO: magichome.py: error: bad color specification INFO: ---------------- END ----------------

MagicHome IP: 10.0.20.110 MagicHome Parm 1: WInf MagicHome Parm 2: on MagicHome Parm 3: Befehl W WW: Inf Befehl --on python magichome.py 10.0.20.110 -w Inf --on INFO: Usage: usage: magichome.py [-sS10cwpCiltThe] [addr1 [addr2 [addr3] ...]. INFO: INFO: magichome.py: error: option -w: invalid integer value: 'Inf' INFO: ---------------- END ---------------- INFO: --------------- START --------------- INFO: RECIVED DATE: 10.0.20.110:WInf:on 11.03.2023 15:46:51

onhala commented 1 year ago

The error was in parameters in Loxone. Solution is in pull request #2