home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.

Home Page:https://www.home-assistant.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OmniLogic is not populating all entities from the cloud

ceilingduster opened this issue · comments

The problem

The OmniLogic integration is not creating entities for my relay (waterfall valve actuator), my light/switch (on my waterfall), or my heater.

The entities it does create are:

sensor.xxx_xxxxxxxx_pool_chlorinator_salt_level
sensor.xxx_xxxxxxxx_pool_chlorinator_setting
sensor.xxx_xxxxxxxx_pool_filter_pump_speed
sensor.xxx_xxxxxxxx_pool_water_temperature
switch.xxx_xxxxxxxx_pool_filter_pump

I wish to be able to turn my heater off/on, control the set temperature (and see the current temperature), control my waterfall and turn the light off/on. Additionally, while the chlorinator salt level is reported (which is the average), I'd like to see a sensor for the instant salt level as well as a sensor for the reported air temperature.

What version of Home Assistant Core has the issue?

2022.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

omnilogic

Link to integration documentation on our website

https://www.home-assistant.io/integrations/omnilogic/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Within the OmniLogicEntity class, entity_data contains the following:

{'systemId': '66685', 'statusVersion': '7', 'airTemp': '88', 'status': '1', 'state': '1', 'configUpdatedTime': '2022-05-23T13:07:53.685Z', 'datetime': '2022-05-23T10:27:08.8689999', 'Relays': [], 'BOWS': [{'systemId': '1', 'flow': '1', 'waterTemp': '73', 'Name': 'Pool', 'Supports-Spillover': 'no', 'Filter': {'systemId': '2', 'valvePosition': '1', 'filterSpeed': '74', 'filterState': '1', 'lastSpeed': '74', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '30', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '900', 'Priming-Enabled': 'yes', 'Alarms': []}, 'VirtualHeater': {'systemId': '3', 'Current-Set-Point': '73', 'enable': 'yes'}, 'Heater': {'systemId': '4', 'heaterState': '0', 'enable': 'yes', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': {'VirtualHeater': {'System-Id': '4', 'Name': 'Gas', 'Type': 'PET_HEATER', 'Heater-Type': 'HTR_GAS', 'Enabled': 'yes', 'Priority': 'HTR_PRIORITY_2', 'Run-For-Priority': 'HTR_MAINTAINS_PRIORITY_FOR_AS_LONG_AS_VALID', 'Shared-Equipment-System-ID': '-1', 'Current-Set-Point': '73', 'Max-Water-Temp': '104', 'Min-Settable-Water-Temp': '65', 'Max-Settable-Water-Temp': '99', 'enable': 'yes', 'systemId': '3'}}, 'Name': 'Gas', 'Alarms': []}, 'Chlorinator': {'systemId': '5', 'operatingMode': '1', 'Timed-Percent': '25', 'scMode': '0', 'chlrError': '0', 'chlrAlert': '2', 'avgSaltLevel': '2204', 'instantSaltLevel': '2203', 'status': '66', 'Name': 'Chlorinator', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': [{'System-Id': '6', 'Name': 'Chlorinator1', 'Type': 'PET_CHLORINATOR', 'Chlorinator-Type': 'CHLOR_TYPE_MAIN_PANEL', 'Enabled': 'yes'}], 'Alarms': []}, 'CSAD': {'systemId': '0', 'ph': '', 'orp': '', 'status': '0', 'mode': '0', 'Alarms': [{'BowID': '0', 'EquipmentID': '0', 'Resource_Msg_Id': '147', 'Severity': '2', 'Parameter1': '1', 'Parameter2': None, 'Valid': '0', 'Clearable': '1', 'Message': '1 upgrade(s) available.', 'Comment': None}]}, 'Group': {'systemId': '40', 'groupState': '0'}, 'Lights': [{'systemId': '30', 'lightState': '0', 'currentShow': '1', 'Name': 'Pool', 'Type': 'COLOR_LOGIC_UCL', 'V2': 'no', 'Alarms': []}], 'Relays': [{'systemId': '20', 'relayState': '0', 'Name': 'Waterfall', 'Type': 'RLY_VALVE_ACTUATOR', 'Function': 'RLY_WATERFALL', 'Alarms': []}, {'systemId': '32', 'relayState': '0', 'Name': 'Wtrfall Lght', 'Type': 'RLY_HIGH_VOLTAGE_RELAY', 'Function': 'RLY_POOL_LIGHT', 'Alarms': []}], 'Pumps': [], 'Heaters': [{'systemId': '4', 'heaterState': '0', 'enable': 'yes', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': {'VirtualHeater': {'System-Id': '4', 'Name': 'Gas', 'Type': 'PET_HEATER', 'Heater-Type': 'HTR_GAS', 'Enabled': 'yes', 'Priority': 'HTR_PRIORITY_2', 'Run-For-Priority': 'HTR_MAINTAINS_PRIORITY_FOR_AS_LONG_AS_VALID', 'Shared-Equipment-System-ID': '-1', 'Current-Set-Point': '73', 'Max-Water-Temp': '104', 'Min-Settable-Water-Temp': '65', 'Max-Settable-Water-Temp': '99', 'enable': 'yes', 'systemId': '3'}}, 'Name': 'Gas', 'Alarms': []}]}], 'BackyardName': 'xxxxxxxxxx', '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': [{'BowID': '0', 'EquipmentID': '0', 'Resource_Msg_Id': '147', 'Severity': '2', 'Parameter1': '1', 'Parameter2': None, 'Valid': '0', 'Clearable': '1', 'Message': '1 upgrade(s) available.', 'Comment': None}, {'BowID': '6', 'EquipmentID': '6', 'Resource_Msg_Id': '75', 'Severity': '0', 'Parameter1': 'Chlorinator1', 'Parameter2': None, 'Valid': '0', 'Clearable': '0', 'Message': 'CHLOR Too Low Salt Chlorinator1', 'Comment': 'Chlorination paused - low salt'}], 'Unit-of-Temperature': 'UNITS_FAHRENHEIT'}
{'systemId': '1', 'flow': '1', 'waterTemp': '73', 'Name': 'Pool', 'Supports-Spillover': 'no', 'Filter': {'systemId': '2', 'valvePosition': '1', 'filterSpeed': '74', 'filterState': '1', 'lastSpeed': '74', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '30', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '900', 'Priming-Enabled': 'yes', 'Alarms': []}, 'VirtualHeater': {'systemId': '3', 'Current-Set-Point': '73', 'enable': 'yes'}, 'Heater': {'systemId': '4', 'heaterState': '0', 'enable': 'yes', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': {'VirtualHeater': {'System-Id': '4', 'Name': 'Gas', 'Type': 'PET_HEATER', 'Heater-Type': 'HTR_GAS', 'Enabled': 'yes', 'Priority': 'HTR_PRIORITY_2', 'Run-For-Priority': 'HTR_MAINTAINS_PRIORITY_FOR_AS_LONG_AS_VALID', 'Shared-Equipment-System-ID': '-1', 'Current-Set-Point': '73', 'Max-Water-Temp': '104', 'Min-Settable-Water-Temp': '65', 'Max-Settable-Water-Temp': '99', 'enable': 'yes', 'systemId': '3'}}, 'Name': 'Gas', 'Alarms': []}, 'Chlorinator': {'systemId': '5', 'operatingMode': '1', 'Timed-Percent': '25', 'scMode': '0', 'chlrError': '0', 'chlrAlert': '2', 'avgSaltLevel': '2204', 'instantSaltLevel': '2203', 'status': '66', 'Name': 'Chlorinator', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': [{'System-Id': '6', 'Name': 'Chlorinator1', 'Type': 'PET_CHLORINATOR', 'Chlorinator-Type': 'CHLOR_TYPE_MAIN_PANEL', 'Enabled': 'yes'}], 'Alarms': []}, 'CSAD': {'systemId': '0', 'ph': '', 'orp': '', 'status': '0', 'mode': '0', 'Alarms': [{'BowID': '0', 'EquipmentID': '0', 'Resource_Msg_Id': '147', 'Severity': '2', 'Parameter1': '1', 'Parameter2': None, 'Valid': '0', 'Clearable': '1', 'Message': '1 upgrade(s) available.', 'Comment': None}]}, 'Group': {'systemId': '40', 'groupState': '0'}, 'Lights': [{'systemId': '30', 'lightState': '0', 'currentShow': '1', 'Name': 'Pool', 'Type': 'COLOR_LOGIC_UCL', 'V2': 'no', 'Alarms': []}], 'Relays': [{'systemId': '20', 'relayState': '0', 'Name': 'Waterfall', 'Type': 'RLY_VALVE_ACTUATOR', 'Function': 'RLY_WATERFALL', 'Alarms': []}, {'systemId': '32', 'relayState': '0', 'Name': 'Wtrfall Lght', 'Type': 'RLY_HIGH_VOLTAGE_RELAY', 'Function': 'RLY_POOL_LIGHT', 'Alarms': []}], 'Pumps': [], 'Heaters': [{'systemId': '4', 'heaterState': '0', 'enable': 'yes', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': {'VirtualHeater': {'System-Id': '4', 'Name': 'Gas', 'Type': 'PET_HEATER', 'Heater-Type': 'HTR_GAS', 'Enabled': 'yes', 'Priority': 'HTR_PRIORITY_2', 'Run-For-Priority': 'HTR_MAINTAINS_PRIORITY_FOR_AS_LONG_AS_VALID', 'Shared-Equipment-System-ID': '-1', 'Current-Set-Point': '73', 'Max-Water-Temp': '104', 'Min-Settable-Water-Temp': '65', 'Max-Settable-Water-Temp': '99', 'enable': 'yes', 'systemId': '3'}}, 'Name': 'Gas', 'Alarms': []}]}
{'systemId': '2', 'valvePosition': '1', 'filterSpeed': '74', 'filterState': '1', 'lastSpeed': '74', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '30', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '900', 'Priming-Enabled': 'yes', 'Alarms': []}
{'systemId': '5', 'operatingMode': '1', 'Timed-Percent': '25', 'scMode': '0', 'chlrError': '0', 'chlrAlert': '2', 'avgSaltLevel': '2204', 'instantSaltLevel': '2203', 'status': '66', 'Name': 'Chlorinator', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': [{'System-Id': '6', 'Name': 'Chlorinator1', 'Type': 'PET_CHLORINATOR', 'Chlorinator-Type': 'CHLOR_TYPE_MAIN_PANEL', 'Enabled': 'yes'}], 'Alarms': []}
{'systemId': '5', 'operatingMode': '1', 'Timed-Percent': '25', 'scMode': '0', 'chlrError': '0', 'chlrAlert': '2', 'avgSaltLevel': '2204', 'instantSaltLevel': '2203', 'status': '66', 'Name': 'Chlorinator', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Operation': [{'System-Id': '6', 'Name': 'Chlorinator1', 'Type': 'PET_CHLORINATOR', 'Chlorinator-Type': 'CHLOR_TYPE_MAIN_PANEL', 'Enabled': 'yes'}], 'Alarms': []}
{'systemId': '2', 'valvePosition': '1', 'filterSpeed': '74', 'filterState': '1', 'lastSpeed': '74', 'Name': 'Filter Pump', 'Shared-Type': 'BOW_NO_EQUIPMENT_SHARED', 'Filter-Type': 'FMT_VARIABLE_SPEED_PUMP', 'Max-Pump-Speed': '100', 'Min-Pump-Speed': '30', 'Max-Pump-RPM': '3450', 'Min-Pump-RPM': '900', 'Priming-Enabled': 'yes', 'Alarms': []}


### Additional information

_No response_

Hey there @Oliver84, @djtimca, @gentoosu, mind taking a look at this issue as it has been labeled with an integration (omnilogic) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

So far only sensors have been implemented in the Home Assistant core. None of the other entities should be populated yet.

Should this be labeled as an enhancement request?

@ceilingduster could be. There is a PR for the next platform which has been open for review for over a year now.

While this is a great start, it's not really at MVP yet since we don't have control of all key components. As mentioned above, getting to basic functionality has to include control of the heater and the lights, and ideally the lights would represent as their real capabilities (color, white, RGB, dimmable, etc). There's some potential awesome automations that could be made once there's extended control of the system available. For now I'm using Alexa because it has a much more complete set of controls.

Similar project at SmartThings may help add some ideas: https://community.smartthings.com/t/release-hayward-omnilogic-pool-equipment-integration/230510/11

Whether the integration comes from core, or HACS, I don't see it making a big difference to me. The majority of my integrations, addons, and themes come from HACS.

Thanks for all the work on this. I’d certainly have no problem with a more functional version being on HACS.

For those with knowledge of the API, is there any control of schedules that have been set up via the Hayward app? At least turning the schedules on and off? I know I can schedule via HA, but it would also be nice to control what’s set up in the app.

@sddgit no control of the schedules as I remember it. I moved all schedules into HA.

@djtimca Thank you for the quick reply. I also just opened a new issue concerning a script error I’m getting, and some other queries. #72637. I hope you (or someone) has the time to take a look. Appreciate the help.

I'd love to see support for my lights and heater. Let us know if there's anything that can be done to help move this forward.

@philfreo @MHillyer the features requested are all available in the HACS version.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.