shbatm Posted January 22, 2023 Share Posted January 22, 2023 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). 1 Link to comment
MrBill Posted January 22, 2023 Share Posted January 22, 2023 Added and HA restarted..... happy testing! Link to comment
asbril Posted January 22, 2023 Share Posted January 22, 2023 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. Link to comment
shbatm Posted January 22, 2023 Author Share Posted January 22, 2023 1 hour ago, asbril said: I believe that Hacs has been installed. Once installed on the command line, install it in Home Assistant as an integration. 1 Link to comment
asbril Posted January 22, 2023 Share Posted January 22, 2023 I think that I need some more guidance : Link to comment
shbatm Posted January 22, 2023 Author Share Posted January 22, 2023 (edited) https://hacs.xyz/docs/faq/custom_repositories/ Edited January 22, 2023 by shbatm Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 (edited) home-assistant_2023-01-23T00-35-31.049Z.log It seems to see the eisy information as I see a lot of ZY devices as well as other info, but I also noticed some error messages that I don't understand. Edited January 23, 2023 by asbril Link to comment
shbatm Posted January 23, 2023 Author Share Posted January 23, 2023 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. 1 Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 After I turned off network resources and variables, or just network resources only I get the following. Just 1 entity and no error showing. Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 (edited) 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. Edited January 23, 2023 by asbril Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 @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
shbatm Posted January 23, 2023 Author Share Posted January 23, 2023 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. Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 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
shbatm Posted January 23, 2023 Author Share Posted January 23, 2023 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
asbril Posted January 23, 2023 Share Posted January 23, 2023 After upgrade in Hacs nothing works anymore. I attached the log. I did a Settings-System- Restart twice but still not working. home-assistant_2023-01-23T19-23-23.021Z.log Link to comment
MrBill Posted January 23, 2023 Share Posted January 23, 2023 This just happened for me, I restarted HA for another reason and.... Link to comment
MrBill Posted January 23, 2023 Share Posted January 23, 2023 39 minutes ago, MrBill said: This just happened for me, I restarted HA for another reason and.... this also hosed my entity names and added extensions to prevent duplicates breaking lot of things..... restoring from backup..... Link to comment
shbatm Posted January 23, 2023 Author Share Posted January 23, 2023 @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
asbril Posted January 23, 2023 Share Posted January 23, 2023 (edited) 39 minutes ago, shbatm said: @asbril I pushed another new update. Please try again @ 4.0.2 in HACS (PyISY-Beta 4.0.0.dev3) deleted Edited January 23, 2023 by asbril Link to comment
asbril Posted January 23, 2023 Share Posted January 23, 2023 There no longer is a Universal Devices integration in HA and I may have deleted it while trying to fix it. However when I try to add the integration again, I get this : In HACS I get this, but nothing else : Link to comment
shbatm Posted January 24, 2023 Author Share Posted January 24, 2023 (edited) 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 January 24, 2023 by shbatm Link to comment
Recommended Posts