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

[Beta] v3.4.0-beta Testing #62

Closed mitch7391 closed 2 years ago

mitch7391 commented 2 years ago

3.4.0-beta.2 (2022-05-28)

Special thanks to the amazing uswong and ztalbot2000 for adding these new features!

Notable Changes

Other Changes

Bug Fixes

mitch7391 commented 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"
             } 
          ]
      }
mitch7391 commented 2 years ago

@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.

kaim2000 commented 2 years ago

@mitch7391 @uswong that's unreal! Thank you so much, I will test and revert.

mitch7391 commented 2 years ago

Hey @kaim2000 and @CharlotteWlkr86 just seeing how you went with this one?