kw123 / Hue-Lights-Indigo-plugin

Philips Hue control from Indigo
MIT License
7 stars 11 forks source link

2022.11.33 - Sensor Parsing Errors #19

Closed virtzilla closed 2 years ago

virtzilla commented 2 years ago

Loaded up 2022.11.33. Logs filling up with errors around parsing sensor data, much like the initial two included below (they seem to fire every second or two).

path To files:          =================
   Hue Lights                      detailed logging        /Library/Application Support/Perceptive Automation/Indigo 2022.1/Logs/com.nathansheldon.indigoplugin.HueLights/plugin.log
   Hue Lights                      testing logging levels, for info only: 
   Hue Lights                      logger  enabled for     INFO           ==> TEST ONLY 
   Hue Lights Warning              logger  enabled for     WARNING        ==> TEST ONLY 
   Hue Lights Error                logger  enabled for     ERROR          ==> TEST ONLY 
   Hue Lights Error                logger  enabled for     CRITICAL       ==> TEST ONLY 
   Started plugin "Hue Lights 2022.11.33"
   Hue Lights                      debug areas:[]
   Hue Lights                      bridge lights groups scenes users resources rules schedules sensors hostIds / user names ------------------- ip Numbers ---- BridgeIds-------
   Hue Lights                      #0         47     52     69   200        15   180        12      72 eKZfuqKfR1VZ0bQBq27UT8BVXhC4OHmBK18f3QOw 10.1.1.83       001788FFFEA8EB67
   Hue Lights                      #1          2      1      9    64         9    74        14      15 KtZynLv1ZU4gwBknjmWjj01zNkd5odsP608vP6tk 10.1.1.84       001788FFFEA252CB
   Hue Lights                      ... initialized
   Hue Lights                      Hue Lights  "Yard - Hue Motion Sensor - Luminance" received: sensor update to 766 lux
   Hue Lights Error                
Traceback (most recent call last):
  File "plugin.py", line 7336, in parseOneHueSensorData
    if logChanges: self.indiLOG.log(20, "Hue Lights  \"{}\" received:{}  {}".format(device.name), shortcut['buttontexts'][lastButtonPressed],  shortcut['textSuffix'][eventType+1])
IndexError: Replacement index 1 out of range for positional args tuple
   Hue Lights Error                
Traceback (most recent call last):
  File "plugin.py", line 7336, in parseOneHueSensorData
    if logChanges: self.indiLOG.log(20, "Hue Lights  \"{}\" received:{}  {}".format(device.name), shortcut['buttontexts'][lastButtonPressed],  shortcut['textSuffix'][eventType+1])
IndexError: Replacement index 1 out of range for positional args tuple
   Hue Lights                      Hue Lights  "Name Redacted Room- Hue Motion
kw123 commented 2 years ago

for the time being switch off all logging in config. I shall post a version today that fixes it . it is one misplaced “)” in a format statement for a device type&event type I don’t have installed.

Karl

ps the next version can:

those are all option available on a bridge that you can do to / with devices on the bridge.

On Jul 19, 2022, at 04:39, virtzilla @.***> wrote:

Loaded up 2022.11.33. Logs filling up with errors around parsing sensor data, much like the initial two included below (they seem to fire every second or two).

path To files: ================= Hue Lights detailed logging /Library/Application Support/Perceptive Automation/Indigo 2022.1/Logs/com.nathansheldon.indigoplugin.HueLights/plugin.log Hue Lights testing logging levels, for info only: Hue Lights logger enabled for INFO ==> TEST ONLY Hue Lights Warning logger enabled for WARNING ==> TEST ONLY Hue Lights Error logger enabled for ERROR ==> TEST ONLY Hue Lights Error logger enabled for CRITICAL ==> TEST ONLY Started plugin "Hue Lights 2022.11.33" Hue Lights debug areas:[] Hue Lights bridge lights groups scenes users resources rules schedules sensors hostIds / user names ------------------- ip Numbers ---- BridgeIds------- Hue Lights #0 47 52 69 200 15 180 12 72 eKZfuqKfR1VZ0bQBq27UT8BVXhC4OHmBK18f3QOw 10.1.1.83 001788FFFEA8EB67 Hue Lights #1 2 1 9 64 9 74 14 15 KtZynLv1ZU4gwBknjmWjj01zNkd5odsP608vP6tk 10.1.1.84 001788FFFEA252CB Hue Lights ... initialized Hue Lights Hue Lights "Yard - Hue Motion Sensor - Luminance" received: sensor update to 766 lux Hue Lights Error Traceback (most recent call last): File "plugin.py", line 7336, in parseOneHueSensorData if logChanges: self.indiLOG.log(20, "Hue Lights \"{}\" received:{} {}".format(device.name), shortcut['buttontexts'][lastButtonPressed], shortcut['textSuffix'][eventType+1]) IndexError: Replacement index 1 out of range for positional args tuple Hue Lights Error Traceback (most recent call last): File "plugin.py", line 7336, in parseOneHueSensorData if logChanges: self.indiLOG.log(20, "Hue Lights \"{}\" received:{} {}".format(device.name), shortcut['buttontexts'][lastButtonPressed], shortcut['textSuffix'][eventType+1]) IndexError: Replacement index 1 out of range for positional args tuple Hue Lights Hue Lights "Name Redacted Room- Hue Motion

— Reply to this email directly, view it on GitHub https://github.com/kw123/Hue-Lights-Indigo-plugin/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEH2SNFLA2GIILXQLGA37H3VUYIOJANCNFSM536L2RTA. You are receiving this because you are subscribed to this thread.

virtzilla commented 2 years ago

Installed 2022.11.34 and no more red in the logs.

There is a bit of strangeness observed when the plugin fired up:

   Hue Lights                      Hue Lights  "Dining Room - Switch" received:button2  release
   Hue Lights                      Hue Lights  "Entry - Switch" received:button3  release
   Hue Lights                      Hue Lights  "Front Yard - Outside Light Switch" received:button1  release
   Hue Lights                      Hue Lights  "Kitchen - Hue Dimmer Remote" received: Hue/off  press with short release

Those remotes haven't been touched for at least 24 hours (some days or longer), so it seems odd that they are appearing unless they got stuck in a queue (which also would seem odd). Point of concern, or as expected?

In terms of "stet on/off," you wrote above - could you elaborate on what that is?

kw123 commented 2 years ago

v2022.12.36 @ 2022-07-20

should fix that

On Jul 20, 2022, at 00:45, virtzilla @.***> wrote:

Installed 2022.11.34 and no more red in the logs.

There is a bit of strangeness observed when the plugin fired up:

Hue Lights Hue Lights "Dining Room - Switch" received:button2 release Hue Lights Hue Lights "Entry - Switch" received:button3 release Hue Lights Hue Lights "Front Yard - Outside Light Switch" received:button1 release Hue Lights Hue Lights "Kitchen - Hue Dimmer Remote" received: Hue/off press with short release Those remotes haven't been touched for at least 24 hours (some days or longer), so it seems odd that they are appearing unless they got stuck in a queue (which also would seem odd). Point of concern, or as expected?

In terms of "stet on/off," you wrote above - could you elaborate on what that is?

— Reply to this email directly, view it on GitHub https://github.com/kw123/Hue-Lights-Indigo-plugin/issues/19#issuecomment-1189622807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEH2SNH677PNZANWHGIUBEDVU4VZDANCNFSM536L2RTA. You are receiving this because you commented.

virtzilla commented 2 years ago

It did.

kw123 commented 1 year ago

are the messages just once or ongoing?

Re set on-off There is now a menu option to disable / enable switches / sensors on the bridge. So if you are home you could disable a motion sensor and then actions on the bridge get disabled. Eg light on if motion detected.

Karl

On 20.07.2022, at 00:45, virtzilla @.***> wrote:

 Installed 2022.11.34 and no more red in the logs.

There is a bit of strangeness observed when the plugin fired up:

Hue Lights Hue Lights "Dining Room - Switch" received:button2 release Hue Lights Hue Lights "Entry - Switch" received:button3 release Hue Lights Hue Lights "Front Yard - Outside Light Switch" received:button1 release Hue Lights Hue Lights "Kitchen - Hue Dimmer Remote" received: Hue/off press with short release Those remotes haven't been touched for at least 24 hours (some days or longer), so it seems odd that they are appearing unless they got stuck in a queue (which also would seem odd). Point of concern, or as expected?

In terms of "stet on/off," you wrote above - could you elaborate on what that is?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.