Skip to content

Make isy amaze balls #3082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Sep 11, 2016
Merged

Make isy amaze balls #3082

merged 41 commits into from
Sep 11, 2016

Conversation

Teagan42
Copy link
Contributor

@Teagan42 Teagan42 commented Aug 31, 2016

Description:
The ISY994 platform is woefully incomplete. Update the platform to automatically discover covers, binary sensors, sensors, switches, lights, locks, etc. The PyISY library was updated to return the unit of measurement for devices, this allows sensors to display their value with unites or as a state.

Unit tests incoming - if I have time.

Related issue (if applicable): fixes #3037

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#893

Example entry for configuration.yaml (if applicable):

isy994:
    host: 192.168.1.129
    username: admin
    password: admin
    tls: 1.2
    hidden_string: hidden
    sensor_string: sensor

Checklist:

If user exposed functionality or configuration variables are added/changed:

If code communicates with devices, web services, or a:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.


HIDDEN_STRING = DEFAULT_HIDDEN_STRING

COMPONENTS = ['lock', 'binary_sensor', 'cover', 'fan', 'sensor', 'light',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PLATFORMS or SUPPORTED_PLATFORMS ?

@Teagan42
Copy link
Contributor Author

Teagan42 commented Sep 7, 2016

Gonna write unit tests tomorrow.

@fabaff fabaff mentioned this pull request Sep 7, 2016
@hoopty
Copy link
Contributor

hoopty commented Sep 10, 2016

Any chance this can get into 0.28?

@kellerza
Copy link
Member

This looks good, but @Teagan42 seems to want to add unit tests. ISY is part of .coveragerc, so not critical - but this is a massive change to ISY, so probably better

@Teagan42
Copy link
Contributor Author

@kellerza - with my new job, I haven't had time to do everything I wanted.
Go ahead and merge it when you feel good. I'll do tests when I get a chance
(hah!)

On Sat, Sep 10, 2016 at 1:50 PM, Johann Kellerman notifications@github.com
wrote:

This looks good, but @Teagan42 https://github.com/Teagan42 seems to
want to add unit tests. ISY is part of .coveragerc, so not critical - but
this is a massive change to ISY, so probably better


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3082 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC2fZeaiiLrWeDvUkVEAlRUPzJp6FLbMks5qownvgaJpZM4JyBH8
.

@kellerza
Copy link
Member

@Teagan42 good luck with the new job!

0.28 is out, so there are 2 weeks to test in dev branch 🔥

@sytone @hoopty feedback would be great. If you don't run dev do you mind copying the isy files to .homeassistant/custom_components and testing it? (download the raw component from here and for all the platforms)

@kellerza kellerza merged commit 05a3b61 into home-assistant:dev Sep 11, 2016
@hoopty
Copy link
Contributor

hoopty commented Sep 12, 2016

I have tested on dev branch and its working as expected - no issues found so far. Thanks @Teagan42 and best of luck on the new gig.

@hoopty
Copy link
Contributor

hoopty commented Sep 15, 2016

Well, I have found something in the dev branch that isn't working like it does in 0.28.2

I have two lamp modules (not dimmers) that show up here:

16-09-15 01:21:41 homeassistant.components.isy994: ISY Updated Node: ZW002_1
16-09-15 01:21:41 homeassistant.components.isy994: ISY Updated Node: ZW003_1
16-09-15 01:21:41 homeassistant.loader: Loaded switch.isy994 from homeassistant.components.switch.isy994

But the corresponding switch entities are not appearing. Will turn up more logging on the isy component and report back.

@hoopty
Copy link
Contributor

hoopty commented Sep 15, 2016

Not much, but here's the logging I got. I have a z-wave mimolite device (seen below as ZW005_*) that does have the with entities show up in HA. The ones not working are ZW002 & ZW003, which are the following device: Leviton VRPD3-1LW Vizia RF Series 300-watt Scene Capable Plug-In Lamp Dimming Module. They are working in the latest release.

16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="7" sid="uuid:81"><control>ST</control><action uom="51" prec="0">0</action><node>ZW002_1</node><eventInfo></eventInfo></Event
16-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW002_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="8" sid="uuid:81"><control>ST</control><action uom="51" prec="0">0</action><node>ZW003_1</node><eventInfo></eventInfo></Event
16-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW003_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="9" sid="uuid:81"><control>ERR</control><action>0</action><node>ZW004_1</node><eventInfo></eventInfo></Event>
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="10" sid="uuid:81"><control>ST</control><action uom="78" prec="0">0</action><node>ZW004_1</node><eventInfo></eventInfo></Even
16-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW004_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="11" sid="uuid:81"><control>ST</control><action uom="78" prec="0">100</action><node>ZW004_104</node><eventInfo></eventInfo></
16-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW004_104
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:
<?xml version="1.0"?><Event seqnum="12" sid="uuid:81"><control>GPV</control><action uom="56" prec="2">285000</action><node>ZW004_118</node><eventInfo></eventInf

@Teagan42
Copy link
Contributor Author

I found a few other issues - I'll be making a PR here shortly

On Thu, Sep 15, 2016 at 12:44 AM, Bryce Edwards notifications@github.com
wrote:

Not much, but here's the logging I got. I have a z-wave mimolite device
(seen below as ZW005_*) that does have the with entities show up in HA. The
ones not working are ZW002 & ZW003, which are the following device: Leviton
VRPD3-1LW Vizia RF Series 300-watt Scene Capable Plug-In Lamp Dimming
Module. They are working in the latest release.

16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

ST0ZW002_116-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW002_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

ST0ZW003_116-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW003_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

ERR0ZW004_1

16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

ST0ZW004_116-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW004_1
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

ST100ZW004_10416-09-15 01:29:54 homeassistant.components.isy994: ISY Updated Node: ZW004_104
16-09-15 01:29:54 homeassistant.components.isy994: ISY Update Received:

GPV285000ZW004_118—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3082 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC2fZYO-NPtvLLTXMd4wNdDscQV_UWu_ks5qqOlKgaJpZM4JyBH8
.

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isy994 issue with z-wave locks
4 participants