Yep the new changes require 0.96.0b1 or later. And actually, for some reason the thermostats aren’t displaying properly in my Hass.io instance at 0.96.0b1, but are working in my development (venv) at 0.97.0b0–there may have been some frontend updates elsewhere that haven’t been included in the Hass.io container yet. I’m just going to wait a few days until the containers update.
Oh boy. I messed up on this one.
I also didn’t pay enough attention to the part about .96 and although I thought I had made a snapshot before updating (I use hassio) I was wrong because as it turns out I don’t have one.
So I tried to go back to the official component and just remove the isy994 folder from custom components, but now anything that used to start with switch or lock show up with sensor in front of them.
I’m assuming that there is still a version of PyISY on my machine that isn’t right.
Is there an easy way to fix this?
If not I’ll just have to wait for .96 to come along. I can still do what I need to in the ISY webpage. Even if it isn’t as pretty.
Home Assistant should have re-installed the correct PyISY when you removed the custom component folder. What version gets spit out when you run this command from your Hass.io machine?
docker exec -it homeassistant tail -n 4 /usr/local/lib/python3.7/site-packages/PyISY/__init__.py | head -1
# Leave out the "docker exec -it homeassistant" if you're using the Hassio SSH add-on
If you get anything above 1.1.2, you still have the PyISY_beta package installed somehow.
RE: Waiting for 0.96: You should only have to wait if you’re using the climate/thermostat components. I also found the bug I was hunting in my note above, so anything newer than 0.96.0b0 should work.
I don’t have python 3.7. I have 3.6 and there is no folder named site packages in it.
I should have mentioned that I’m using the generic linux install to get hassio running.
I don’t think I’m going to worry about it too much. .96 should be out this week I think.
I can make it through until then.
Thanks, shbatm. Probably best to let code settle a bit.
I did install 0.96.0b1, but the ISY component crashed out. Snip of log:
deleted
However, it also crashed out of ISY even using your old code, so this might not be your code causing this. I also have ELK M1 component installed.
If you’re using the generic linux install (and docker) then you should be able to root around and find the package inside the container:
docker exec -it homeassistant bash
find / -name PyISY
# Should return a folder like /usr/local/lib/python3.6/site-packages/PyISY
tail -n 4 <path_from_above>/__init__.py | head -1
If not, something is definitely missing from your install.
0.96.0b2 is out in beta now. You can just switch to the beta channel now from within Hass.io > System… Under “Hass.io supervisor” choose “Join Beta Channel”. Then check for updates on the Add-on Tab.
That looks like a recorder/sql problem. Not a ISY issue.
FWIW: I have the component stable now on 0.96.0b2 and 0.97.0.dev0 after squashing a few bugs this afternoon. I did have to wipe my .storage/core.entity_register
file after one of the upgrades, but I think that was an unrelated issue.
I tried a couple more times on 96.0b1 (I am not being b2 beta yet for some reason) but cannot get ISY component to load. I think I will wait until next weekend and try again, perhaps with later beta if available then. But thanks, @shbatm for your ongoing development. I am using the heck out of your ISY Variable addition.
I found a bug in PyISY_beta – wasn’t showing up with my ISY but when I tried to load your node file through the fake ISY it choked. Try the latest version.
NOTICE TO ALL ISY USERS USING THIS CODE – USE THE isy994-climate
BRANCH FROM NOW ON.
All changes have been merged into one branch (including Z-Wave Updates, Variables, and Climate).
I will stop pushing updates to the other branches. All changes have been combined for the PR to Home Assistant (you can follow along/comment here: https://github.com/home-assistant/home-assistant/pull/20970)
Last thing: at some point during these updates I added the ability for the “aux properties” that are reported by the ISY to be picked up and stored from the event stream. That’s a overly verbose way of saying you should start to see things like Ramp Rate and On Level for Insteon Devices, as well as the expected additional details for sensors.
Is this changed from the subversion link in the first post of this thread?
Yes. I updated the link above, but this is the new path:
svn export https://github.com/shbatm/home-assistant/branches/isy994-climate/homeassistant/components/isy994 /your/hass/config/custom_components/isy994/
Sorry for any confusion, it just got too complicated juggling the multiple branches and this was the one already in the open PR.
Tried again loading the latest builds from isy944-climate, but still ISY component fails to load. Running 0.96.0 build. But at least I am getting an error message in log now, which I was not before. It appears I have a bad config setup for ISY.
2019-07-18 14:53:12 ERROR (MainThread) [homeassistant.config] Invalid config for [isy994]: [on] is an invalid option for [isy994]. Check: isy994->isy994->isy_variables->binary_sensors->0->on. (See /config/configuration.yaml, line 141). Please check the docs at https://home-assistant.io/components/isy994/
2019-07-18 14:53:12 ERROR (MainThread) [homeassistant.setup] Setup failed for isy994: Invalid config.
I will comment out all my binary_sensors info and see if that helps. Odd that it worked just fine in the past.
Sorry – had to rename the variable config parameters to conform to HASS standards, I forgot to let you know. Please use payload_on:
and payload_off:
instead of on
and off
now. I’ll update the other posts.
I will update that now. But I am also seeing hundreds of errors like this in my log:
deleted...
Any ideas?
That looks like there is something corrupted in your database. Are you using the default recorder
settings or do you use MariaDB or MySQL? If you’re using the default, you might just have to delete your home-assistant_v2.db
file as it looks like it might be corrupted.
That did it. Just deleted database file and it gave me a very clean start! Now just starting to play with things to see what has changed. I see you corrected the 1/10 issue with setpoint temperatures. Thanks!!!
This current build is really looking great! yes, I am seeing ramp rates and on levels for all my dimmers. My pool thermostat is now working perfectly without me having to do 10x corrections. I am still playing around with things, but so far you have a great build here!
I am noticing this being repeated in the log file quite often though.
2019-07-18 16:18:18 INFO (Thread-2) [custom_components.isy994] ISY Loaded/Updated Programs
2019-07-18 16:18:18 INFO (Thread-2) [custom_components.isy994] ISY Request: http://192.168.1.145:80/rest/programs?subfolders=true
2019-07-18 16:18:20 INFO (Thread-2) [custom_components.isy994] ISY Loaded/Updated Programs
2019-07-18 16:18:20 INFO (Thread-2) [custom_components.isy994] ISY Request: http://192.168.1.145:80/rest/programs?subfolders=true
2019-07-18 16:18:22 INFO (Thread-2) [custom_components.isy994] ISY Loaded/Updated Programs
2019-07-18 16:18:22 INFO (Thread-2) [custom_components.isy994] ISY Request: http://192.168.1.145:80/rest/programs?subfolders=true
2019-07-18 16:18:23 INFO (Thread-2) [custom_components.isy994] ISY Loaded/Updated Programs
2019-07-18 16:18:23 INFO (Thread-2) [custom_components.isy994] ISY Request: http://192.168.1.145:80/rest/programs?subfolders=true
2019-07-18 16:18:26 INFO (Thread-2) [custom_components.isy994] ISY Loaded/Updated Programs
2019-07-18 16:18:26 INFO (Thread-2) [custom_components.isy994] ISY Request: http://192.168.1.145:80/rest/programs?subfolders=true
One Insteon device that I still am not getting any data from is the wireless door sensor model TriggerLinc 2421. I will turn on debug log and see what data is coming in on it.
Also, on the z-wave front, 3 devices are sending some data, but not other.
- smoke alarm: sends battery status, but does not show when alarm is triggered.
- motion sensor: does not appear to show any data
- Home Energy Monitor: shows battery level, but no power usage.
the HEM I have already provided log data for above, but will try to get some log data on the others as well.
I ended up having to revert back to prior snapshot as the constant hitting of the ISY was causing slowdowns for my home automation. I think that there is new code that allows you to create virtual binary sensors based on program status (true or false) and that this might be causing these constant queries of the ISY.