Plugin startup errors

Posted on
Fri Nov 04, 2022 12:45 pm
MartinG offline
Posts: 116
Joined: Aug 19, 2016

Plugin startup errors

I'm seeing errors with the plugin. Not sure what changed to cause this. The iOS app seems to be working fine. I've tried reloading the plugin, reinstalling the latest version, restarting Indigo. Same behaviour :-(

Code: Select all
   Stopping plugin "Heatmiser-Neo 2022.0.0" (pid 63363)
   Heatmiser-Neo                   Stopping Heatmiser Neo plugin
   Stopped plugin "Heatmiser-Neo 2022.0.0"
   Starting plugin "Heatmiser-Neo 2022.0.0" (pid 63461)
   Started plugin "Heatmiser-Neo 2022.0.0"
   Heatmiser-Neo                   Starting Heatmiser Neo plugin
   Heatmiser-Neo                   Neo comms logging is on
   Heatmiser-Neo Error             Error in plugin execution startup:

  File "plugin.py", line 65, in startup
  File "plugin.py", line 146, in createDevices
  File "plugin.py", line 269, in getNeoData
type: 'ConnectionRefusedError' object is not subscriptable

   Heatmiser-Neo                   Starting Heatmiser Neo monitoring thread
   Heatmiser-Neo Error             Error in plugin execution runConcurrentThread:

  File "plugin.py", line 88, in runConcurrentThread
  File "plugin.py", line 186, in updateReadings
  File "plugin.py", line 269, in getNeoData
type: 'ConnectionRefusedError' object is not subscriptable

   Heatmiser-Neo Error             plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Heatmiser-Neo                   Starting Heatmiser Neo monitoring thread
   Heatmiser-Neo Error             Error in plugin execution runConcurrentThread:

  File "plugin.py", line 88, in runConcurrentThread
  File "plugin.py", line 186, in updateReadings
  File "plugin.py", line 269, in getNeoData
type: 'ConnectionRefusedError' object is not subscriptable

Posted on
Fri Nov 04, 2022 2:24 pm
racarter offline
User avatar
Posts: 477
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin startup errors

'Connection Refused' often means the IP address is wrong. Could the Heatmiser hub address have changed? If not, in Config, check the box 'Copy Neo comms to Indigo Event Log' and PM me with the results; I'll have a look.

Posted on
Fri Nov 11, 2022 4:33 am
MartinG offline
Posts: 116
Joined: Aug 19, 2016

Re: Plugin startup errors

Here's the solution, for anyone else who faces the problem.

Early in 2022, Heatmiser updated their API and provided support for the 'legacy mode'. That legacy API turns off after 48h if not used, and can be re-enabled using a switch in their app (on iOS: Settings->API-> Legacy API switch). I had disabled the plugin previously for some reason (I forget why) and the 48h timer then expired.

I then found that the Neomiser plugin wasn't able to connect even after re-enabling the API. And also that the API reverts to a disabled state within minutes. However, enabling the legacy API, and immediately opening a telnet connection on to the hub on port 4242 was enough to re-open the connection properly, reset the 48h timer and thereafter the plugin connects just fine.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest