Closed mitch7391 closed 2 years ago
Hey @kaim2000 thanks to the tireless work of @uswong we now have added the ability to add your second aircon tablet to Homekit. Think of you second tablet and it's aircon/aircons as a whole new device being added alongside the rest. It will require a second queue added (B
) and a second IP address added (${IP2}
); please take note of those in the below config example. The example only shows adding the new extra queue, IP address, and the Thermostat and Fan; if you have zones and temp sensors also, you will need to follow that example to add them. If by any means you get stuck with your config, feel free to email me and I can help get you sorted. Hope you can get a chance to test this out for us and confirm that it is all working well. So far from our test environment it has been working well.
{
"platform": "Cmd4",
"name": "Cmd4",
"debug": false,
"outputConstants": false,
"statusMsg": true,
"timeout": 60000,
"stateChangeResponseTime": 0,
"constants": [
{
"key": "${IP}",
"value": "192.168.0.31"
},
{
"key": "${IP2}",
"value": "192.168.0.173"
}
],
"queueTypes": [
{
"queue": "A",
"queueType": "WoRm2"
},
{
"queue": "B",
"queueType": "WoRm2"
}
],
"accessories": [
{
"type": "Thermostat",
"displayName": "Aircon2",
"currentHeatingCoolingState": "OFF",
"targetHeatingCoolingState": "OFF",
"currentTemperature": 24,
"targetTemperature": 24,
"temperatureDisplayUnits": "CELSIUS",
"name": "Aircon2",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Daikin e-zone",
"queue": "B",
"polling": [
{
"characteristic": "currentHeatingCoolingState"
},
{
"characteristic": "targetHeatingCoolingState"
},
{
"characteristic": "currentTemperature"
},
{
"characteristic": "targetTemperature"
}
],
"state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP2} ac1",
"linkedTypes": [
{
"type": "Fan",
"displayName": "Fan Speed2",
"on": "TRUE",
"rotationSpeed": 100,
"name": "Fan Speed2",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Daikin e-zone",
"queue": "B",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "rotationSpeed"
}
],
"state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP2} fanSpeed ac1"
}
]
},
{
"type": "Fan",
"displayName": "Fan2",
"on": "FALSE",
"brightness": 50,
"name": "Fan2",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Daikin e-zone",
"queue": "B",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP2} ac1"
}
]
}
@CharlotteWlkr86 we would also like to invite you to install the beta version as well as it should contain a fix relating to issue #58 and would love to hear if this is any better for you. You require no config changes to your system, just to install and see how it operates. Please let me know if you need any guidance on installing the beta.
@mitch7391 @uswong that's unreal! Thank you so much, I will test and revert.
Hey @kaim2000 and @CharlotteWlkr86 just seeing how you went with this one?
3.4.0-beta.2 (2022-05-28)
Special thanks to the amazing uswong and ztalbot2000 for adding these new features!
Notable Changes
Auto
mode is now used to setdry
mode in Advantage Air control unit. This enable users to set thedry
mode from Homekit.myAirData.txt
cache file immediately after everySet
command usingjq
so that the cache file always reflects the latest state of the system in real time.Other Changes
AdvAir.sh
.AirconServer
for better and more realistic unit testing.Bug Fixes
AdvAir.sh
fails to write to"/tmp"
which is denied in some Linux distros; as per issue #58.countDownToOn
timer is set and if the aircon is turned on manually instead, thecountDownToOn
remains on. It should be turned off because the aircon is now on.AirconServer
.