mitch7391 / homebridge-cmd4-AdvantageAir

Catered shell script to integrate air conditioner control units by Advantage Air into HomeKit using the plug-in homebridge-cmd4.
MIT License
38 stars 5 forks source link

'No Response' after a few minutes in homekit #92

Closed viperdsg closed 5 months ago

viperdsg commented 5 months ago

Describe Your Problem: Followed all install steps without an issue. Air con successfully appears in homekit. All seems fine for a few minutes, but then all tiles in homekit (fan speed, fan mode, etc etc) turn to "no response". If I restart homebridge it works again only to revert to 'no response' again after a few minutes. No errors appear in the homebridge terminal log.

[Link to Logs:]()

Paste of Logs:

Cmd4 Config:


{
    "platform": "Cmd4",
    "name": "Cmd4",
    "debug": false,
    "outputConstants": false,
    "statusMsg": true,
    "timeout": 60000,
    "stateChangeResponseTime": 0,
    "constants": [
        {
            "key": "${AAIP}",
            "value": "192.168.1.22:2025"
        }
    ],
    "queueTypes": [
        {
            "queue": "AAA",
            "queueType": "WoRm2"
        }
    ],
    "accessories": [
        {
            "type": "Thermostat",
            "displayName": "Aircon",
            "currentHeatingCoolingState": "OFF",
            "targetHeatingCoolingState": "OFF",
            "currentTemperature": 24,
            "targetTemperature": 24,
            "temperatureDisplayUnits": "CELSIUS",
            "name": "Aircon",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentHeatingCoolingState"
                },
                {
                    "characteristic": "targetHeatingCoolingState"
                },
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "targetTemperature"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "${AAIP}",
            "linkedTypes": [
                {
                    "type": "Fan",
                    "displayName": "Aircon FanSpeed",
                    "on": "TRUE",
                    "rotationSpeed": 100,
                    "name": "Aircon FanSpeed",
                    "manufacturer": "Advantage Air Australia",
                    "model": "MyAir5",
                    "serialNumber": "REMOVED",
                    "queue": "AAA",
                    "polling": [
                        {
                            "characteristic": "on"
                        },
                        {
                            "characteristic": "rotationSpeed"
                        }
                    ],
                    "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
                    "state_cmd_suffix": "${AAIP} fanSpeed"
                }
            ]
        },
        {
            "type": "Switch",
            "displayName": "Aircon Fan",
            "on": "FALSE",
            "name": "Aircon Fan",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "${AAIP}",
            "linkedTypes": [
                {
                    "type": "Fan",
                    "displayName": "Aircon FanSpeed",
                    "on": "TRUE",
                    "rotationSpeed": 100,
                    "name": "Aircon FanSpeed",
                    "manufacturer": "Advantage Air Australia",
                    "model": "MyAir5",
                    "serialNumber": "REMOVED",
                    "queue": "AAA",
                    "polling": [
                        {
                            "characteristic": "on"
                        },
                        {
                            "characteristic": "rotationSpeed"
                        }
                    ],
                    "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
                    "state_cmd_suffix": "${AAIP} fanSpeed"
                }
            ]
        },
        {
            "type": "Lightbulb",
            "displayName": "Aircon Timer",
            "on": "FALSE",
            "brightness": 0,
            "name": "Aircon Timer",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                },
                {
                    "characteristic": "brightness"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "timer ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "Master Zone",
            "on": "FALSE",
            "name": "Master Zone",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": true,
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z01 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "Bed 2 Zone",
            "on": "FALSE",
            "name": "Bed 2 Zone",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": true,
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z02 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "Bed 3 Zone",
            "on": "FALSE",
            "name": "Bed 3 Zone",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": true,
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z03 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "Bed 4 Zone",
            "on": "FALSE",
            "name": "Bed 4 Zone",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": true,
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z04 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "Lounge Zone",
            "on": "FALSE",
            "name": "Lounge Zone",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": true,
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z05 ${AAIP}"
        },
        {
            "type": "TemperatureSensor",
            "subType": "TempSensor1",
            "displayName": "Master Temperature",
            "currentTemperature": 25,
            "statusLowBattery": "BATTERY_LEVEL_LOW",
            "name": "Master Temperature",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "statusLowBattery"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z01 ${AAIP}"
        },
        {
            "type": "TemperatureSensor",
            "subType": "TempSensor2",
            "displayName": "Bed 2 Temperature",
            "currentTemperature": 25,
            "statusLowBattery": "BATTERY_LEVEL_LOW",
            "name": "Bed 2 Temperature",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "statusLowBattery"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z02 ${AAIP}"
        },
        {
            "type": "TemperatureSensor",
            "subType": "TempSensor3",
            "displayName": "Bed 3 Temperature",
            "currentTemperature": 25,
            "statusLowBattery": "BATTERY_LEVEL_LOW",
            "name": "Bed 3 Temperature",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "statusLowBattery"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z03 ${AAIP}"
        },
        {
            "type": "TemperatureSensor",
            "subType": "TempSensor4",
            "displayName": "Bed 4 Temperature",
            "currentTemperature": 25,
            "statusLowBattery": "BATTERY_LEVEL_LOW",
            "name": "Bed 4 Temperature",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "statusLowBattery"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z04 ${AAIP}"
        },
        {
            "type": "TemperatureSensor",
            "subType": "TempSensor5",
            "displayName": "Lounge Temperature",
            "currentTemperature": 25,
            "statusLowBattery": "BATTERY_LEVEL_LOW",
            "name": "Lounge Temperature",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "currentTemperature"
                },
                {
                    "characteristic": "statusLowBattery"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "z05 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "myZone Master",
            "on": "FALSE",
            "name": "myZone Master",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "myZone=1 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "myZone Bed 2",
            "on": "FALSE",
            "name": "myZone Bed 2",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "myZone=2 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "myZone Bed 3",
            "on": "FALSE",
            "name": "myZone Bed 3",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "myZone=3 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "myZone Bed 4",
            "on": "FALSE",
            "name": "myZone Bed 4",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "myZone=4 ${AAIP}"
        },
        {
            "type": "Switch",
            "displayName": "myZone Lounge",
            "on": "FALSE",
            "name": "myZone Lounge",
            "manufacturer": "Advantage Air Australia",
            "model": "MyAir5",
            "serialNumber": "REMOVED",
            "queue": "AAA",
            "polling": [
                {
                    "characteristic": "on"
                }
            ],
            "state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
            "state_cmd_suffix": "myZone=5 ${AAIP}"
        }
    ]
}

Screenshots:

IMG_3395

Advantage Air System:

Homebridge Environment:

mitch7391 commented 5 months ago

Hi @viperdsg, can you please tell me if Config Creator came up with any error after it was run? If there was none, can you please run the Config Check that is located in there same area (but scroll dow further). Can you please let me know if that throws on errors? And lastly can you confirm you have the IP address correct?

mitch7391 commented 5 months ago

I do find it very strange you would have no response on the accessories in HomeKit but it not displaying errors on the Homebridge logs…

viperdsg commented 5 months ago

Appreciate the fast response.

User error - i didn't set up the static IP correctly in my router. I've now corrected that problem and re-run the config files. Seems to all be working - fingers crossed. What an avoidable mistake!

mitch7391 commented 5 months ago

I am always happy when it is an easy fix @viperdsg!

What an avoidable mistake!

I was only just thinking the other day that maybe I should put this as a note in the instructions…