Plugin for Haiku Fan with SenseME

Posted on
Sun May 13, 2018 7:43 am
norcoscia online
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Plugin for Haiku Fan with SenseME

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

_______
Norm

Posted on
Mon Sep 10, 2018 8:21 pm
fishmg01 offline
Posts: 32
Joined: Sep 16, 2013

Re: Plugin for Haiku Fan with SenseME

[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!

Posted on
Sat Oct 06, 2018 4:38 pm
gt3mike offline
Posts: 225
Joined: Dec 31, 2017
Location: Colorado

Re: Plugin for Haiku Fan with SenseME

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

Posted on
Mon Oct 08, 2018 10:22 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Re: Plugin for Haiku Fan with SenseME

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.

Posted on
Mon Nov 26, 2018 8:41 am
gt3mike offline
Posts: 225
Joined: Dec 31, 2017
Location: Colorado

Re: Plugin for Haiku Fan with SenseME

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 6423 times

Please advise. Using SenseME plugin 0.7.0.

Posted on
Mon Nov 26, 2018 9:00 am
norcoscia online
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Plugin for Haiku Fan with SenseME

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...

_______
Norm

Posted on
Mon Feb 04, 2019 6:12 am
pantalones offline
Posts: 87
Joined: Mar 29, 2012

Re: Plugin for Haiku Fan with SenseME

Where did you get 7.0? When I download "latest" from his site, it's 0.61.

Posted on
Mon Feb 04, 2019 7:45 am
norcoscia online
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Plugin for Haiku Fan with SenseME

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.....
Attachments
2019-02-04_05-43-00.jpeg
2019-02-04_05-43-00.jpeg (215.76 KiB) Viewed 6362 times

_______
Norm

Posted on
Thu Jun 27, 2019 6:48 am
jenkins007 offline
Posts: 113
Joined: Nov 08, 2006
Location: Seguin, TX

Re: Plugin for Haiku Fan with SenseME

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!

Thanks,
Matthew

Posted on
Thu Jun 27, 2019 9:49 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Plugin for Haiku Fan with SenseME

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Jul 06, 2019 11:27 am
gt3mike offline
Posts: 225
Joined: Dec 31, 2017
Location: Colorado

Re: Plugin for Haiku Fan with SenseME

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.

Posted on
Sun Jan 26, 2020 8:42 am
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: Plugin for Haiku Fan with SenseME

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 :)

Posted on
Wed Feb 05, 2020 9:59 pm
mpleeds offline
Posts: 57
Joined: Jul 02, 2012

Re: Plugin for Haiku Fan with SenseME

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?

Posted on
Thu Feb 06, 2020 9:06 pm
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: Plugin for Haiku Fan with SenseME

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)})

Posted on
Sun Feb 09, 2020 7:23 pm
mpleeds offline
Posts: 57
Joined: Jul 02, 2012

Re: Plugin for Haiku Fan with SenseME

Works perfectly, Thank you vimikel.

Who is online

Users browsing this forum: No registered users and 6 guests