Jump to content

Home Assistant PyISY 4 Alpha Testing


shbatm

Recommended Posts

If anyone is interested, I have an alpha version for test a re-written pyisy / Home Assistant integration.

It can be added to Home Assistant using HACS and adding a Custom Repository: https://github.com/shbatm/hacs-isy994

While this includes the features posted about in the other thread, this includes a significant re-write of the underlying project to make it faster and more code conformant.

For the most part, functionality is the same as what will be in Home Assistant 2023.2.0, but the engine running it has not been as thoroughly tested as the existing version.

This will eventually be what I use to test pulling in full Node Server and Z-Wave sensor details and controls.

Planned timing: this version will be in test until early-April, then I will work on merging it back into Home Assistant

DISCLAIMER: If you run into any errors in the code, please add them as issues on the custom repo linked above. I am not going to support helping anyone install this version--(to be blunt: if you can't figure out how to install it, then it probably isn't for you to be testing).

  • Like 1
Link to comment
40 minutes ago, shbatm said:

If anyone is interested, I have an alpha version for test a re-written pyisy / Home Assistant integration.

It can be added to Home Assistant using HACS and adding a Custom Repository: https://github.com/shbatm/hacs-isy994

While this includes the features posted about in the other thread, this includes a significant re-write of the underlying project to make it faster and more code conformant.

For the most part, functionality is the same as what will be in Home Assistant 2023.2.0, but the engine running it has not been as thoroughly tested as the existing version.

This will eventually be what I use to test pulling in full Node Server and Z-Wave sensor details and controls.

Planned timing: this version will be in test until early-April, then I will work on merging it back into Home Assistant

DISCLAIMER: If you run into any errors in the code, please add them as issues on the custom repo linked above. I am not going to support helping anyone install this version--(to be blunt: if you can't figure out how to install it, then it probably isn't for you to be testing).

What exactly do I add to ssh ? I believe that Hacs has been installed. 

image.png.fb7ca25c8acb3562b48f6e7739259476.png

image.png

Link to comment

The warning about being removed from HACS is fine for now... I need to submit an update to them since the repo is active again.

Thanks for the logs, I will take a closer look at what's failing tomorrow.

You can try turning off network resources and variables (click the configure button in your screenshot above) and reload. This is a new feature so you may just get a different error.

  • Thanks 1
Link to comment

Excellent news !  The integration works. Thanks.

I have problems with the status not changing of devices  and a few devices that don't seem to work in HA, but it could be that I selected the wrong node. Tomorrow will be fine-tuning, and I'll you informed. 

 

image.png.658b783365d1c4d508c487cb49b9fd9b.png

 

Edited by asbril
Link to comment

@shbatm I am happy that the Integration largely works. As mentioned above, there is an issue that the status (on-off) does not change when I use HA to turn on or off a light or other entity. In other words,  the actual device turns on or off as I want but that does not show in HA.

When I restart HA (Settings-System) and it comes back, then the status change is properly reflected.

Link to comment
19 minutes ago, shbatm said:

Can you please try turning something on/off and post the log--want to see what's not being picked up.

Also just pushed an update which should fix the issue you had yesterday--I'm thinking it was because there were no Network Resources defined.

(1) I am not sure where to find the log. There used to be an error log in the Integration but no longer.

In LogBook, when I select the Entity that I changed, there is nothing.

(2) What is the procedure for the update ? Is it just Reload ?

BTW when I do Reload all entitities disappear (except 1, I think the controller or similar). It all comes back after a Settings-System-Restart.

I am going out for about 2 hours, but will check here when I come back.

Link to comment

Upgrade for the custom component will show up under HACS (use the button on your sidebar and it should show you what has an upgrade). You'll need to restart Home Assistant to apply.

The full log file is in your configuration directory as `home-assistant.log` or you can type "c" to open the command window and find "Navigate > Logs" there's a "Download full log" button at the bottom of the page.

I can replicate the reload error. I'll work on that fix for the next update, for now you'll have to restart HA to reload.

Link to comment

@MrBill - The warning is expected for now. I reactivated the old beta repository and it hasn't been removed from the removed list yet in HACS.

The changing of entity names and duplicate entities is not expected though. I did not see that issue. You should only see new entities for the ones that changed "types" (but the old sensors will still be there). If you try again let me know if it's all of the entities or just a certain group. Also--assuming you are using the same Polisy/eisy/ISY here and the UUID didn't change?

 

@asbril I pushed another new update. Please try again @ 4.0.2 in HACS (PyISY-Beta 4.0.0.dev3)

Link to comment

image.png.e14f67b01d9b35cbd44f22a7ff67f4e1.png

Anything with this or variation of this message can be ignored. It will show up in several spots because the repo was marked as removed 2 years ago when we finished the last beta. I've notified HACS to get it corrected.

I've also re-tested: from 2023.1.5, normal ISY994 version -> Upgrade to HACS version 4.0.2 and no issues with the install or changing names on the entities. I'm not sure what happened for @MrBill

If you deleted the integration from HACS, you will need to restart HA again, and probably add the custom repository back to the list to try and re-install.

Every time you add/upgrade/install a custom component in HACS, it requires a full restart of Home Assistant and THEN you can go to Settings > Devices > Integrations in the main Home Assistant menu to install.

All HACS does is manage the files in `/config/custom_components/` - you still have to add the integration to Home Assistant like normal.

Edited by shbatm
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...