Your right, i can read the history out, but i have no idea where i would actually put that information in home assistant. Any ideas where it could go?
Trying to understand their decompiled code was a pain and a half though haha, and the code to parse the histories is just horrid but it does seem to work.
For the moment, it’s exposed as an attribute on the alarm panel itself, but you cant see this via the UI yet, however it does show up if you look at the state under developer tools
I can get it to home assistant no problem, i just have no idea how you would even display that kind of data in home assistant. In fact with the latest version the history data is in home assistant it just isn’t visible from the GUI at the moment, only if you view the panel state in dev tools
It polls as annoyingly I couldn’t get it to push data.
Super excited and trying to get my Solution 2000 system integrated, however running into issues.
After adding the integration and configuring, I see the “Successfully authenticated” and config created modal in home assistant. After dismissing this the integration immediately shows an error:
ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home for solutions3000
File "/config/custom_components/solutions3000/__init__.py", line 30, in async_setup_entry
File "/config/custom_components/solutions3000/solution3000.py", line 564, in initialise
File "/config/custom_components/solutions3000/solution3000.py", line 401, in _authenticate
custom_components.solutions3000.solution3000.PanelException: Invalid App Passcode
The alink pin must be right otherwise it can’t authenticate, and the automation code is still set at the default and matches what Alink plus is telling me, so I’m not sure what else the “app passcode” is referring to. Any ideas?
Checked I’m logged out of RSC, Alink is not running, and I’m not logged on into the IP module web interface.
I restarted HA and saw this:
2022-03-30 13:16:30 INFO (MainThread) [homeassistant.setup] Setting up solutions3000
2022-03-30 13:16:30 INFO (MainThread) [homeassistant.setup] Setup of domain solutions3000 took 0.0 seconds
2022-03-30 13:16:58 ERROR (MainThread) [custom_components.solutions3000] Unexpected error fetching solutions3000_panel data: index out of range
File "/config/custom_components/solutions3000/solution3000.py", line 556, in update_status
File "/config/custom_components/solutions3000/solution3000.py", line 424, in _req_history
2022-03-30 13:16:58 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home' for solutions3000 integration not ready yet: index out of range; Retrying in background
2022-03-30 13:17:03 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home for solutions3000
File "/config/custom_components/solutions3000/__init__.py", line 30, in async_setup_entry
File "/config/custom_components/solutions3000/solution3000.py", line 568, in initialise
File "/config/custom_components/solutions3000/solution3000.py", line 401, in _authenticate
custom_components.solutions3000.solution3000.PanelException: Invalid App Passcode
Is there anything I need to enable in the IP module? There are a bunch of options like Legacy TCP Automation Enable (currently off), Port 77EE Configuration Enable (set to no) etc.
Try the new version that i’ve just released - turns out that the automation code isn’t needed and since that was the part you were failing with, maybe the update will fix that.
Just tried it. I can’t add the integration at all now. After entering in the details, it spins and then appears as follows (it blanks out the entries again on error). No modal confirmation and nothing appears in the logs either
By using the normal user code it authenticates but throws an exception.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/solutions3000/solution3000.py", line 561, in update_status
await self._req_history()
File "/config/custom_components/solutions3000/solution3000.py", line 429, in _req_history
year = 2000 + ((section[3] & 0xFC) >> 2)
IndexError: index out of range
I got it to work for now by editing the _req_history function and adding an immediate break on line 420 to bypass the function.
Something is off with the way the request history year is parsed (date format/locale issue?)
Is there a way to dump the raw contents of the data variable so you can see? Not familiar with how HA components work but if you give me the source changes, I can apply them and send the raw output received from the panel.
It seems to be pulling every single event so I didn’t paste it all. I have a LOT of events for the past 2 years and it’s still updating. Maybe there needs to be a config option to only fetch the latest X entries too?