UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in

Posted on
Fri Apr 16, 2021 1:28 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in

Hello, I was getting exactly the same error as autolog from this thread - so i updated to 0.4.3, but i still get this error,

MQTT Shims Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 115, in runConcurrentThread
File "plugin.py", line 139, in processMessages
File "plugin.py", line 656, in update
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 35: ordinal not in range(128)

MQTT Shims Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Any ideas?

I also get this in my log every time MQTT updates (every min), is there a way to stop this as well?

16 Apr 2021 at 20:26:03
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
Trigger MQTT Inverter
MQTT Shims Error Error in plugin execution runConcurrentThread:


Thanks in advance,
Martin

Posted on
Fri Apr 16, 2021 1:38 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

mwoodage wrote:
Hello, I was getting exactly the same error as autolog from this thread - so i updated to 0.4.3, but i still get this error,

Code: Select all
  MQTT Shims Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 115, in runConcurrentThread
  File "plugin.py", line 139, in processMessages
  File "plugin.py", line 656, in update
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 35: ordinal not in range(128)

   MQTT Shims Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Any ideas?

Try https://github.com/FlyingDiver/Indigo-S ... /tag/0.5.0

mwoodage wrote:
I also get this in my log every time MQTT updates (every min), is there a way to stop this as well?

16 Apr 2021 at 20:26:03
Trigger MQTT Inverter
Trigger MQTT Inverter
MQTT Shims Error Error in plugin execution runConcurrentThread:


Thanks in advance,
Martin


Turn it off.
Attachments
Screen Shot 2021-04-16 at 3.32.38 PM.png
Screen Shot 2021-04-16 at 3.32.38 PM.png (382.42 KiB) Viewed 3112 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:00 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Wow, a software update and fix in under an 30mins - amazing, thank you.

All fixed :D

Posted on
Fri Apr 16, 2021 2:01 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

0.5.0 has been available for a while, I just haven't pushed it to the store.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:03 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Ah ok, still amazing service though - thank you :D :D

Posted on
Fri Apr 16, 2021 2:14 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Oh, hang on - the reason i'm not getting any errors is because the plug-in won't start -i've tried a reboot and restart of the plugin but nothings happening.
Attachments
Grab.png
Grab.png (90.53 KiB) Viewed 3102 times

Posted on
Fri Apr 16, 2021 2:15 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

Need logs....

Oops. Nevermind.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:19 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

This comes up if i restart the plugin,

16 Apr 2021 at 21:18:09
Reloading plugin "MQTT Shims 0.5.0"
Starting plugin "MQTT Shims 0.5.0" (pid 1547)
MQTT Shims Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
IndentationError: ('unexpected indent', ('plugin.py', 500, 3, '\t\t\telif device.pluginProps["shimSensorSubtype"] == "Voltage":\n'))

Stopping plugin "MQTT Shims 0.5.0" (pid 1547)
Stopped plugin "MQTT Shims 0.5.0"

Posted on
Fri Apr 16, 2021 2:21 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:25 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Ok, it's running again, but getting the following error now,

Upgrading plugin MQTT Shims to newer version 0.5.1 (previous version moved to trash)
Loading plugin "MQTT Shims 0.5.1"
Starting plugin "MQTT Shims 0.5.1" (pid 1572)
Started plugin "MQTT Shims 0.5.1"
MQTT Shims Starting MQTT Shims
v0.5.1 of plugin MQTT Shims is already installed and enabled

16 Apr 2021 at 21:23:59
Z-Wave received "Outside Lights - Luminance" sensor update to 0 lux
MQTT Shims Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 115, in runConcurrentThread
File "plugin.py", line 139, in processMessages
File "plugin.py", line 451, in update
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 35: ordinal not in range(128)

MQTT Shims Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
MQTT Shims Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 115, in runConcurrentThread
File "plugin.py", line 139, in processMessages
File "plugin.py", line 451, in update
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 35: ordinal not in range(128)

MQTT Shims Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Fri Apr 16, 2021 2:27 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

Turn on debug logging. Turn it on in the Connector plugin too, so I can see what's actually going to the Shims.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:35 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Code: Select all
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/value -> 620
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: Raw payload = 620
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: update adjustmentFunction: ''
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: Updating state to 620.0
   MQTT Shims Debug                MQTT - PV Input Current for Battery: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/value -> 620
   MQTT Shims Debug                MQTT - PV Input Current for Battery: update uid mismatch: pv_input_current_for_battery != QPIGS
   MQTT Shims Debug                MQTT - PV Input Power: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/value -> 620
   MQTT Shims Debug                MQTT - PV Input Power: update uid mismatch: pv_input_power != QPIGS
   MQTT Shims Debug                MQTT - PV Input Voltage: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/value -> 620
   MQTT Shims Debug                MQTT - PV Input Voltage: update uid mismatch: pv_input_voltage != QPIGS
   MQTT Shims Debug                MQTT - Battery Capacity: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Battery Capacity: update uid mismatch: battery_capacity != QPIGS
   MQTT Shims Debug                MQTT - Battery Charging Current: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Battery Charging Current: update uid mismatch: battery_charging_current != status
   MQTT Shims Debug                MQTT - Battery Discharge Current: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Battery Discharge Current: update uid mismatch: battery_discharge_current != QPIGS
   MQTT Shims Debug                MQTT - Battery Voltage: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Battery Voltage: update uid mismatch: battery_voltage_from_scc != QPIGS
   MQTT Shims Debug                MQTT - Bus Voltage: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Bus Voltage: update uid mismatch: bus_voltage != status
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: processMessages: '##inverter##' QPIGS/status/inverter_heat_sink_temperature/unit -> °C
   MQTT Shims Debug                MQTT - Inverter Heat Sink Temperature: Raw payload = °C
   MQTT Shims Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 115, in runConcurrentThread
  File "plugin.py", line 139, in processMessages
  File "plugin.py", line 451, in update
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 35: ordinal not in range(128)

   MQTT Shims Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Fri Apr 16, 2021 2:44 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

I really didn't need that wall of text. Just the last few lines before the error would have been plenty.

Hmm. I really don't understand why that line is throwing an error. It should be able to handle the unicode character in the payload.

Until I figure that out, you should change your trigger so it's not firing on the "units" topic. Show me your trigger for this device and I can help with that.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Apr 16, 2021 2:54 pm
mwoodage offline
User avatar
Posts: 174
Joined: Dec 19, 2014
Location: Devon UK

Re: Error message from MQTT Shims following CC2531 reflash

Ah ok, sorry - didn't know how much information you needed, so just provided all of it......

Trigger details below,
Attachments
Screenshot 2021-04-16 at 21.54.18.png
Screenshot 2021-04-16 at 21.54.18.png (505.64 KiB) Viewed 3026 times

Posted on
Fri Apr 16, 2021 2:58 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error message from MQTT Shims following CC2531 reflash

Ok, your trigger is matching on both of these topics:
Code: Select all
QPIGS/status/inverter_heat_sink_temperature/value
QPIGS/status/inverter_heat_sink_temperature/unit


And the second one is invalid. So as it stands, it's going to throw an error message even if it doesn't crash. You need to change it to:
Attachments
Screen Shot 2021-04-16 at 4.56.44 PM.png
Screen Shot 2021-04-16 at 4.56.44 PM.png (134.56 KiB) Viewed 3011 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest