GithubHelp home page GithubHelp logo

isyhelper's People

Contributors

jimboca avatar kavenr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

isyhelper's Issues

Add notification system

Adding notifications for pushover, pushbullet, ... are very tedious using the ISY network module so I would like a simple notification system.

Something simple like:

notify:
variable: SomeVariable
values:
1 "This variable is one"
2 "This variable is two"
* "This variable is <>"

First plan to use pushover since that's what I currently use and it works best in Takser, but will look at other methods, and will consider others if anyone else has inpute.

Edits to Readme

Just a very nitpicky thing but it led to me thinking something was wrong. In the RUN ON STARTUP / Running as a service section, you have:

Is sytemctl installed? * Run: sudo which systmctl * If it returns nothing, you need to install the newer version, which is currently Jessie

It should read:
Is systemctl installed? Run:
sudo which systemctl
If it returns nothing, you need to install the newer version, which is currently Jessie.

The first systemctl is missing an "s"... no big deal. The second systemctl is missing an "e" which results in the command returning nothing. Once I figured out that it needed to have that extra "e" in there, it returned the proper result.

While you're at it, maybe add the sudo pip install setuptools --upgrade noted in the UDI thread we were on today.

Thanks again!
-Todd (Toddimus from UDI forums)

Unable to start ISYHelper

When I try to manually start ISYHelper with only a very basic configuration on a fresh install, it crashes:

./isyhelper.py
ISYHelper: Version 1.14 Started: 2016-11-04 20:59:07.911936
isyhelper: host: 1.2.3.146:8081
This host IP is 1.2.3.146
isyhelper: Writing to log: isyhelper.log level=info
Initializing new helper: PyHarmony
Scheduling helper: MyHarmony
Starting PyISY: host=1.2.3.148 PORT=80
Traceback (most recent call last):
File "./isyhelper.py", line 72, in
isy = PyISY.ISY(config['isy']['host'], config['isy']['port'], config['isy']['user'], config['isy']['password'], False, "1.1", logger)
File "../PyISY/PyISY/ISY.py", line 84, in init
self.nodes = Nodes(self, xml=self.conn.getNodes())
File "../PyISY/PyISY/Nodes/init.py", line 52, in init
self.parse(xml)
File "../PyISY/PyISY/Nodes/init.py", line 202, in parse
Group(self, nid, nname, members, controllers), ntype)
File "../PyISY/PyISY/Nodes/group.py", line 40, in init
for m in self.members]
File "../PyISY/PyISY/Nodes/init.py", line 283, in getitem
raise KeyError('Unrecognized Key: [' + val + ']')
KeyError: u'Unrecognized Key: [00:21:b9:00:de:ad]'
Exception AttributeError: "'Group' object has no attribute '_membersHandlers'" in <bound method Group.del of <PyISY.Nodes.group.Group object at 0x128ad30>> ignored

My ISY is running 5.0.6.

Issue starting ISYHelper with firmware 5.0.11c

ISYHelper throws ValueError upon startup when connecting to isy994i firmware 5.0.11c.

Traceback (most recent call last):
  File "./isyhelper.py", line 72, in <module>
    isy = PyISY.ISY(config['isy']['host'], config['isy']['port'], config['isy']['user'], config['isy']['password'], False, "1.1", logger)
  File "../PyISY/PyISY/ISY.py", line 84, in __init__
    self.nodes = Nodes(self, xml=self.conn.getNodes())
  File "../PyISY/PyISY/Nodes/__init__.py", line 52, in __init__
    self.parse(xml)
  File "../PyISY/PyISY/Nodes/__init__.py", line 183, in parse
    aux_props) = parse_xml_properties(feature)
  File "../PyISY/PyISY/Nodes/node.py", line 70, in parse_xml_properties
    val = int(val.replace(' ', '0'))
ValueError: invalid literal for int() with base 10: ''

pyharmony AssertionError

Upon startup I'm getting this error and had to disable pyharmony.

Starting helper: KitchenHarmony
Traceback (most recent call last):
File "./isyhelper.py", line 80, in
helpers.start(isy)
File "/home/pi/isyhelper/ISYHelper/ISYHelper/Helpers/init.py", line 79, in start
helper.start()
File "/home/pi/isyhelper/ISYHelper/ISYHelper/Helpers/PyHarmony.py", line 41, in start
self.harmony_config = self.client.get_config()
File "../pyharmony/pyharmony/client.py", line 44, in get_config
assert action_cmd.attrib['errorcode'] == '200'
AssertionError

pyharmony hangs when there are issues with the hub

My hub was having issues with my wireless network, and pyharmony started up but never said anything else and hung:
2016-03-01 17:56:31,339:IH:INFO: Starting helper: FamilyRoomHarmony
2016-03-01 17:56:31,340:IH:INFO: PyHarmony:FamilyRoomHarmony: Initializing Client

Add Enphase Envoy solar information

While we're at it, here's another feature request...

Can you integrate the Envoy API into ISY Helper?

https://developer.enphase.com/docs

Having information from the solar array status and production values in ISY variables would be awesome. In particular, I might use it for a light level sensor to trigger a change in "on level" or "adjust scene" on the ISY. If it's dreary and fogging in the morning, I might want to keep the motion sense lights on later into the morning or earlier in the evening. Also might somehow use solar production information to integrate with HVAC programming.

I realize this might be hard to implement and test if you don't have a solar array with Enphase microinverters. I could give you access to my system information, if you are interested.

Add "Heartbeat" state variable triggered by Harmony interactions

Sounds like this may not be possible but, here's what I'm thinking...

Use a state variable in the ISY to register a "heartbeat" change (-1 or 1) when a button is pressed or when a new activity is entered on the Harmony. The idea would be that when the user interacts with the Harmony remote, it would trigger a change in the heartbeat state variable. Even knowing if the user changed the volume level would be great. This is a "one way" communication from ISY Helper to the ISY state variable, unlike the two way settings used for the current Harmony activity variable.

The use case for this would be like an occupancy sensor. This way you can know if someone is using the entertainment system and you could use this information in the ISY programming environment.

An example use I would implement in my system would be to have an automatic sleep timer that would turn the entertainment system off after X minutes of no user interactions. Sure, there's a sleep timer in the Harmony remote itself, but you have to remember to set it and it might run out while you are still awake. My version would automatically reset the timer on each interaction with the remote. It could be coupled with motion sensor(s) in the room as well.

Another example would be to use this occupancy information in my "Homeness" algorithm. That's a whole other story but essentially, I'm trying to calculate an average occupancy value using motion sensors, door sensors, Insteon button presses, etc. Adding Harmony commands would be a great addition to the algorithm.

If it's possible, this would be a great addition to ISY Helper.
Thanks again Jimbo!

ISY Helper crash?

Jimbo,

I noticed that ISY Helper seems to ignore changes in the activity ID state variable in the morning, after the overnight Query All of the ISY is run. It responds to the MyHarmony/show/info query, but doesn't show the updated activity ID state variable. After restarting ISY Helper (by rebooting the RPi), it works fine.

I was working with Ryan Kraus to get to the bottom of a possibly related issue in Polyglot/Hue node server. Looks like Polyglot is having issues with the communications buffer being too full after the query. Could it be something in PyISY, which is looks to be common between Polyglot and ISY Helper?
If you haven't already, have a look at these two threads when you have time.

http://forum.universal-devices.com/topic/18152-issue-with-query-all-and-polyglot-hue-node-server/
and
http://forum.universal-devices.com/topic/18116-polyglot-hue-node-server-observations/

For reference, NodeLink and ISY Logger seem to make it through the night unscathed. Nodelink does show some errors in the log but it keeps running (or maybe restarts itself?). ISY Logger didn't even show errors in the log.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.