Page 2 of 7

Re: Plugin for Haiku Fan with SenseME

PostPosted: Sun May 13, 2018 7:43 am
by norcoscia
Does anyone know if the SenseME plug-in supports Haiku Lights (the light w/o a fan) - Link to them below.

BTW, I have been using this plug in for many months and it works great - it also lets me use the fans other sensors within Indigo. It is a great plug-in and the fans are fantastic.

I'm think about adding two of the standalone lights but I did not see mention of them anywhere in the plug-in documentation. Thanks for any help in advance

https://www.haikuhome.com/haiku-light-p ... odel-white

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Sep 10, 2018 8:21 pm
by fishmg01
[quote="bap"]HI all,

I've just released version 0.6 of the SenseME plugin,. This is a pretty major update to the plugin......


Bruce,
I am thinking of purchasing a Haiku fan, and since its been some time since you released version 0.6 of your plugin, I'm wondering whether you know if its still compatible with the most recent Haiku fans and WIFI modules - specifically , with what they are calling their: Haiku WiFi Module for Haiku L Ceiling Fan.

Thanks!

Re: Plugin for Haiku Fan with SenseME

PostPosted: Sat Oct 06, 2018 4:38 pm
by gt3mike
Hi Bruce,

I've been using plugin 0.6.1 for several months now with no issues. Today I installed version 0.7.0 and I immediately got this error in the Indigo log:

Code: Select all
   SenseME Fan Error               Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 515, in runConcurrentThread
  File "plugin.py", line 434, in processFanMessage
KeyError: 'key fanTempUnits not found in dict'

   SenseME Fan Error               plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


The error appeared one more time 10 seconds later, and then I didn't see it again. But when I attempted to update my device configuration for my one Haiku fan, I got this error and the config wouldn't save:

Code: Select all
   SenseME Fan Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 553, in validateDeviceConfigUi
ValueError: invalid literal for int() with base 10: ''


I rolled back to plugin 0.6.1 and it is working fine again. Is there anything you'd like me to test or check?

Thanks,
Mike

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Oct 08, 2018 10:22 pm
by Ramias
Same.

Though saw this when trying to add a new Indigo Device for a fan.
Code: Select all
   SenseME Fan Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 544, in validateDeviceConfigUi
KeyError: (1488353430,)


If I set it to Celsius, it shows this error:
Code: Select all
   SenseME Fan Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 547, in validateDeviceConfigUi
ValueError: could not convert string to float:


For what it is worth I did not have Sleep Mode or Smarter Cooling turned on. But turning those on gave the same result.

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Nov 26, 2018 8:41 am
by gt3mike
I just updated to Indigo 7.2 so I thought I'd try SenseME again. Now I can't add my fan at all. (Prior to the Indigo upgrade I removed the SenseME plugin from Indigo. So this is a new install.)

Now the error I get when I try to save my new fan config is:

SenseME Fan Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 544, in validateDeviceConfigUi
KeyError: (258863032,)


Also I am getting an error in the config popup directing me to a red label, but no labels are red. (See attachment.)

Screen Shot 2018-11-26 at 7.36.36 AM.png
Screen Shot 2018-11-26 at 7.36.36 AM.png (100.31 KiB) Viewed 6417 times

Please advise. Using SenseME plugin 0.7.0.

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Nov 26, 2018 9:00 am
by norcoscia
I could never get the latest version of the Haiku Fan plug-in to work - I also had to roll back to 0.6.1 - I would try that. Just disable the latest version, then move it to the trash and load 0.6.1, Indigo will ask you if you want to roll back to a previous version, click yes and I'm fairly sure you will be working...

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Feb 04, 2019 6:12 am
by pantalones
Where did you get 7.0? When I download "latest" from his site, it's 0.61.

Re: Plugin for Haiku Fan with SenseME

PostPosted: Mon Feb 04, 2019 7:45 am
by norcoscia
From the plug in store

http://www.indigodomo.com/pluginstore/79/

Let me know if it got fixed - But I doubt it since no comments.....

Re: Plugin for Haiku Fan with SenseME

PostPosted: Thu Jun 27, 2019 6:48 am
by jenkins007
v.0.7.0 does not work ( invalid key error as reported previously). The previous release does though. The plugin version in the store should be reverted to the working version.

Love the working version! Nice to have: toggle on/off on all the items, but especially the fan and light! Thanks!

Re: Plugin for Haiku Fan with SenseME

PostPosted: Thu Jun 27, 2019 9:49 am
by jay (support)
FYI, you can get the previous version from the store - just click on the Releases tab, expand the v0.6.1 line, and click on the Download this release link.

Re: Plugin for Haiku Fan with SenseME

PostPosted: Sat Jul 06, 2019 11:27 am
by gt3mike
jenkins007 wrote:
v.0.7.0 does not work ( invalid key error as reported previously). The previous release does though. The plugin version in the store should be reverted to the working version.

Love the working version! Nice to have: toggle on/off on all the items, but especially the fan and light! Thanks!


Agree. Finally got around to rolling back to 0.6.1 and all is well again.

Re: Plugin for Haiku Fan with SenseME

PostPosted: Sun Jan 26, 2020 8:42 am
by vtmikel
If you feel like hacking his plugin, this worked for me:

1) Set up your fan using the old version of the plugin. Ensure it is working and shows a MAC address in the device dialog. I could not get a new fan created using V.7
2) Upgrade to the latest version of the plugin. Ignore the errors.
3) Open plugin.py and add these two lines:

Code: Select all
        fan['coolingIdealTemp'] = "70"
        fan['sleepIdealTemp'] = "70"


Place it after this line, around line 544:

Code: Select all
        fan = self.allfans[dev.id]


4) Restart the plugin, ignore errors
5) Open each fan you have, and save the dialog.
6) Restart again, errors should be gone

If not, stick with the old version :)

Re: Plugin for Haiku Fan with SenseME

PostPosted: Wed Feb 05, 2020 9:59 pm
by mpleeds
I just purchased a Haiku fan, installed plugin, works great.

I would like to use Keypadlinc (2487S) buttons to increment/decrement fan speed (buttons 3.5) and increment/decrement light brightness (buttons 4,6) through a Python script.

I did find a Python library for SenseMe, but my guess is that it would need to be integrated into Indigo to be useful:

https://pypi.org/project/SenseMe/

Example:

from senseme import discover
# discover devices, returns list of SenseMe devices
devices = discover()
fan = devices[0]
repr(fan)

fan = SenseMe(name="Office Fan")

# Increase light level by 1 level
fan.inc_brightness(1)

Any suggestions as to how to go about this?

Re: Plugin for Haiku Fan with SenseME

PostPosted: Thu Feb 06, 2020 9:06 pm
by vtmikel
The plugin for the Haiku should be all you need. Try creating a Action Group for both increasing and decreasing the fan speed. Try this python script for both actions, just adjust for your fan ID and the speed_change (make this -1 for the decrease). I tested it quickly on mine. Hope it helps.

Code: Select all
fan_id = 109543436
speed_change = 1

senseMeID = "com.pennypacker.indigoplugin.senseme"
senseMePlugin = indigo.server.getPlugin(senseMeID)
fan_name = indigo.devices[fan_id].name

try:
   current_fan_speed = int(indigo.devices[fan_id].states["speed"])
except:
   indigo.server.log("could not read the current fan speed")
   return

new_fan_speed = current_fan_speed + speed_change

if new_fan_speed > 7:
   indigo.server.log("could not change the fan speed beyond level 7")
   return
elif new_fan_speed < 0:
   indigo.server.log("could not change the fan speed below level 0")
   return

output_str = ""

if new_fan_speed > current_fan_speed:
   output_str = "increasing "
else:
   output_str = "decreasiong "

indigo.server.log(output_str + "'" + fan_name + "' speed from " + str(current_fan_speed) + " to " + str(new_fan_speed))
senseMePlugin.executeAction("fanSpeed", deviceId=fan_id, props={'speed':str(new_fan_speed)})

Re: Plugin for Haiku Fan with SenseME

PostPosted: Sun Feb 09, 2020 7:23 pm
by mpleeds
Works perfectly, Thank you vimikel.