MikeJMcGuire / hass-actronque

Actron Que/Neo Air Conditioner Add-On for Home Assistant
GNU General Public License v3.0
13 stars 5 forks source link

Additional data request #3

Closed DanielNagy closed 3 years ago

DanielNagy commented 3 years ago

Are you able to map the following additional data from the events api? I'd love to be able to utilise and graph the data in influx/grafana

The following data values from the "status-change-broadcast" message types

MasterInfo.LiveOutdoorTemp-oC - Outdoor Temperature sensor RemoteZoneInfo[x].ZonePosition - zone motor position LiveAircon.CompressorCapacity - compressor capacity

{
         "id":"",
         "type":"status-change-broadcast",
         "pairedUserId":"",
         "timestamp":"",
         "data":{
            "MasterInfo.LiveOutdoorTemp_oC":9.7,
            "RemoteZoneInfo[0].ZonePosition":20,
            "RemoteZoneInfo[1].ZonePosition":20,
            "RemoteZoneInfo[2].ZonePosition":20,
            "RemoteZoneInfo[3].ZonePosition":20,
            "RemoteZoneInfo[4].ZonePosition":20,
            "RemoteZoneInfo[5].ZonePosition":20,
            "RemoteZoneInfo[6].ZonePosition":20,
            "RemoteZoneInfo[7].ZonePosition":20,
            "LiveAircon.CompressorCapacity":20
}

09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Procesing 11 events 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Event Type: status-change-broadcast 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Incremental Update: RemoteZoneInfo[5].ZonePosition 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Incremental Update: RemoteZoneInfo[6].ZonePosition 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Event Type: status-change-broadcast 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Incremental Update: RemoteZoneInfo[5].ZonePosition 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Event Type: status-change-broadcast 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Incremental Update: LiveAircon.CompressorCapacity 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Event Type: loopback-received 09-08-2021 23:34:52.61 Que.GetAirConditionerEvents() [0x00000081] Event Type: status-change-broadcast 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: RemoteZoneInfo[5].ZonePosition 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Event Type: status-change-broadcast 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: RemoteZoneInfo[3].ZonePosition 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: RemoteZoneInfo[5].ZonePosition 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Event Type: status-change-broadcast 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: RemoteZoneInfo[3].ZonePosition 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: RemoteZoneInfo[5].ZonePosition 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Event Type: loopback-received 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Event Type: status-change-broadcast 09-08-2021 23:36:52.71 Que.GetAirConditionerEvents() [0x00000083] Incremental Update: MasterInfo.LiveOutdoorTemp_oC

MikeJMcGuire commented 3 years ago

Howdy - will do. What's zone motor position for out of interest - is it a percentage zone open? Is that not a binary open/closed?

What are the units for the compressor capacity, or do you think that's a percentage?

Thanks

DanielNagy commented 3 years ago

Howdy,

Correct, the zoning on the QUE is not a binary open / shut. It can open at any commanded position. The data log value shows 0 to 20, which when compared to the Master controller dashboard, just needed to be multiplied by 5 to get the true % 0 to 100%. Obviously in steps of 5%. image

In terms of the Compressor capacity, I've determined this value maps to the "Compresser Demand" value on the dashboard of the Master controller. As the weather here in Melbourne has been great the last 24 hours, its only once gone above 20%. image

Have a look at the pull request #5 i've submitted. Basically captired both this issue request, as well as the other one.

DanielNagy commented 3 years ago

Just checked your update - Position needs to be multiplied by 5

_airConditionerZones[iIndex + 1].ZonePosition = dblTemp * 5; // Actron has value 0 - 20. Multiply by 5 to get 0-100% range

MikeJMcGuire commented 3 years ago

Thanks - ok, if the controller is showing the zone position as a percentage, I'll do the multiplication before sending it to HA and adjust the units.