Closed TMarzullo closed 2 years ago
@TMarzullo thanks for posting and including all the telemetry etc! Looking at things for some reason the flag that your lights are version 2 didn't come through. I've made a change to the Replit to test before I push an update to the integration. Can you re-run and post your telemetry file again? MSP config is optional this time. Thanks!
Tim,
Thank you so much for taking a look. I really appreciate it. I reran the telemetry as requested. See below:
[{'systemId': 'REDACTED', 'statusVersion': '5', 'airTemp': '80', 'status': '1', 'state': '1', 'configUpdatedTime': '0001-01-01T00:00:00-06:00', 'datetime': '2022-06-15T08:17:36.0584', 'Relays': [], 'BOWS': [{'systemId': '1', 'flow': '255', 'waterTemp': '84', 'Name': 'Pool', 'Supports-Spillover': 'no', 'Filter': {'systemId': '2', 'valvePosition': '1', 'filterSpeed': '60', 'filterState': '1', 'lastSpeed': '18', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '18', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '600', 'Priming-Enabled': 'yes', 'Alarms': []}, 'VirtualHeater': {'systemId': '0', 'Current-Set-Point': '0', 'enable': 'no'}, 'CSAD': {'systemId': '0', 'ph': '', 'orp': '', 'status': '0', 'mode': '0', 'Alarms': []}, 'Group': {'systemId': '17', 'groupState': '0'}, 'Lights': [{'systemId': '5', 'lightState': '0', 'currentShow': '12', 'speed': '3', 'brightness': '4'}], 'Relays': [], 'Pumps': [], 'Heaters': []}], 'BackyardName': 'REDACTED', 'Msp-Vsp-Speed-Format': 'RPM', 'Msp-Time-Format': '12 Hour Format', 'Units': 'Standard', 'Msp-Chlor-Display': 'Salt', 'Msp-Language': 'English', 'Unit-of-Measurement': 'Standard', 'Alarms': [], 'Unit-of-Temperature': 'UNITS_FAHRENHEIT'}]
Thanks @TMarzullo - are there any errors in your log on at startup related to Omnilogic?
Actually I think I may have found the issue and have included it in this morning's release. Please do an update @TMarzullo from HACS and if the lights show up properly now please close this issue. If not, I'll need to do more digging.
Hi Tim, Sorry for the delayed response. I pulled the new version and installed it and a new light entity did indeed show up (yay!). Note: My pool has two lights that are configured as a single light so that they are synchronized which is why there is only one entity (I am assuming)
There still seems to be an issue with actually controlling them. If I turn them on, I see the entry in the Logbook that says:
"Pool Light turned on triggered by service light.turn_on"
But within a minute the state changes to off with an entry in the logbook of:
"Pool Light turned off"
I configured a custom light card for the new entity, but it too is unable to change anything. I does seem to be able to read some state values. -for example if I manually turn them on, it will be reflected accurately in the entity as will the Effect that is currently enabled. However it doesn't appear to be reading the brightness state.
What additional data can I collect from my setup that could assist you? I have no problem letting my setup be a testing ground for anything you need.
Additional Notes: I would imagine that your custom integration is limited to functionality that Hayward exposes to me through my control panel/app. If this is correct, then we shouldn't expect color wheel functionality because solid, fixed colors are only available as predefined values and can not be configured beyond brightness (Hayward seems to have a really underwhelming driver). So I would imagine that the effects via the drop down, the brightness, the on/off state and speed are probably the only options for control. This is really more of an FYI but I thought it might be useful information. At the very least I wanted to tell you how grateful I am for everything you have already done.
Because Hayward uses a bizarre brightness scale (0-4) and speed (0-8) those values get exposed as attributes on the light. So you should be able to see the brightness and speed values in the detail / advanced view of the entity. You'll need to figure out the best way for those to be shown / controlled in the UI.
To set brightness/speed you have to use the custom service omnilogic.set_v2_lights
which is defined on the main page of the repo. I don't have V2 lights so I'm not able to do much testing on them.
When you turn them on and they flip off, do you see any errors in your logs? I'm sure we're just missing something that's unique to the V2 light system, just not sure what it is!
And yes - we are totally limited by what the API/light system can do, so no color wheels are coming :)
Pool Hardware companies are all bizarre I am coming to realize :)
I will double check on the brightness and speed values with the custom service but in the meantime I took a look at the Home Assistant Core logs after trying to turn on the lights. While I didn't see any entries that specifically said Hayward, Omni, or Pool...there is a Python error that is within a minute of the attempt.
`Logger: pynetgear.router Source: /usr/local/lib/python3.9/site-packages/pynetgear/router.py:405 First occurred: 1:54:59 PM (31 occurrences) Last logged: 2:35:07 PM
login using all known port-ssl combinations failed.`
Could that be the issue?
That should not be related. Ok let me have a look tomorrow, may have something for you to try.
Should be fixed in latest release.
I don't know if I should put this here first, or try to post in the community, so let me know if I should start there because I don't know if this is an issue for anyone else, but my Pool Lights do not show up at all. I guess I need to know if the lights will show up automatically after installation or if there is some additional step I am missing. I have also done the required reboot multiple times as I troubleshoot (getting my instance of HA up to the current release and such). I was previously utilizing the Hayward OmniLogic integration, but from what I have read in in the community discussions that shouldn't be a problem as this just overides the built in integration.
I am running: Home Assistant Core 2022.6.5 Home Assistant Supervisor 2022.05.3 Home Assistant OS 8.2
And I just installed the updated custom integration from HACS to 1.0.13 but it doesn't seem to fix my issue. I have tried deleting the reinstalling the built in integration but everything I have tried only gets me the entities for the Air Temp, Water Temp, and Filter Pump, the Filter Pump Alarm and the Filter Pump Speed. I have attached my telemetry data and response data from the Replit testing harness. I am hoping I am just missing some step and I can beg your forgiveness for wasting your time. Any help is appreciated.
Telemetry:
[{ 'systemId': 'REDACTED', 'statusVersion': '5', 'airTemp': '81', 'status': '1', 'state': '1', 'configUpdatedTime': '0001-01-01T00:00:00', 'datetime': '2022-06-14T16:34:07.2894091', 'Relays': [], 'BOWS': [{ 'systemId': '1', 'flow': '255', 'waterTemp': '87', 'Name': 'Pool', 'Supports-Spillover': 'no', 'Filter': { 'systemId': '2', 'valvePosition': '1', 'filterSpeed': '60', 'filterState': '1', 'lastSpeed': '18', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '18', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '600', 'Priming-Enabled': 'yes', 'Alarms': [] }, 'VirtualHeater': { 'systemId': '0', 'Current-Set-Point': '0', 'enable': 'no' }, 'CSAD': { 'systemId': '0', 'ph': '', 'orp': '', 'status': '0', 'mode': '0', 'Alarms': [] }, 'Group': { 'systemId': '17', 'groupState': '0' }, 'Lights': [{ 'systemId': '5', 'lightState': '0', 'currentShow': '12', 'speed': '3', 'brightness': '4' } ], 'Relays': [], 'Pumps': [], 'Heaters': [] } ], 'BackyardName': 'REDACTED', 'Msp-Vsp-Speed-Format': 'RPM', 'Msp-Time-Format': '12 Hour Format', 'Units': 'Standard', 'Msp-Chlor-Display': 'Salt', 'Msp-Language': 'English', 'Unit-of-Measurement': 'Standard', 'Alarms': [], 'Unit-of-Temperature': 'UNITS_FAHRENHEIT' } ]
Response Data: `
`