Can you expand on what the issues are? Happy to try and help fix and build in to 1.0.9!
Sent from my iPhone using Tapatalk
jeremyjjr wrote:Okay, so I think we can safely say this is an iterative process
I did some digging around the On/Off state property of the MQTT device. If the 'Show On/Off State' checkbox is not ticked in the Device config dialog, then any attempt to access the onOffState property of the device will fail. I've updated the code to 1.0.8 (yes, again!) to check that the device supports the property before trying to update it - this should remove the errors you are seeing when the plugin loads for the first time.
As for the error you posted in the log - looks like this is being generated by an action or trigger script rather than the plugin itself? If I'm correct, then paste the code and we can take a look.
J.
if len(message) > 5:
message = "0.0"
jeremyjjr wrote:... hope you have success with everything and please share how you use the plugin!
# AUTOLOG MODIFICATION START
# perform variable / device substitution
textToSpeakvalidation = self.substitute(brokerStatusMessage, validateOnly=True)
if textToSpeakvalidation[0] == True:
brokerStatusMessage = self.substitute(brokerStatusMessage, validateOnly=False)
else:
self.debugLog("Broker Status Message ['%s'] has an error with dev/var substitution: [%s]" % (brokerStatusMessage, textToSpeakvalidation[1]))
return False
# AUTOLOG MODIFICATION END
jeremyjjr wrote:Hi - thanks for your kind comments.
Indigo uses the Python 2.6 stack. You have to ensure you install the python libraries under v2.6 and not the OS default 2.7.
You should be able to execute v2.6 by typing 'python2.6' on the cmd line.
Let me know how you get on.
Jeremy.
jeremyjjr wrote:Hi Yassi, sounds like a pickle! 2.7 ships by default with Mac OSX 10.7+ so it shouldn't have been installed by homebrew.
That said, I'd carefully search for info on removing the brew version of 2.7 to ensure it doesn't impact the base OS version.
I'm not sure you can reinstall 2.6, but worth checking for information on how to reset to default. This may impact other apps that have installed other libraries ...
For installation of Python libraries I tend to use PIP as a way to manage the trickier bits!
Good luck!
jeremyjjr wrote:Hmm. The error traces back to the sub process.py lib. Looks like something is corrupt somewhere.
If you have the spare hardware, definitely worth giving a clean install a shot. If not spin up a VM using parallels or equivalent?
Sorry I can't help more but it's not an error in the code I've written and I wouldn't want to give any 'advice' that may cause more harm than good!!
Best of luck!
jeremyjjr wrote:Yassi,
I may be stating the obvious here, but any reason you're still running 10.6? I'd encourage you to upgrade to latest version of OS as supported by Indigo 6.1 and see how that goes ...
J.
Users browsing this forum: No registered users and 4 guests