lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
571 stars 284 forks source link

AC does not power off (getCurrentHeatingCoolingState: 0) #294

Closed felipesalomao closed 6 years ago

felipesalomao commented 6 years ago

Hi, i can change any temperature on my air conditioner.. 17º, 18º, 19º, etc..

But i cant turn it off..

See my code:

{
                    "name": "Ar Condicionado",
                    "type": "air-conditioner",

                                        "autoSwitch": "A/C Auto Switch",
                    "maxTemperature": 24,
                    "minTemperature": 17,
                                        "allowResend": "true",
                                        "pseudoDeviceTemperature": 23,
                    "defaultCoolTemperature": 20,
                    "defaultHeatTemperature": 20,

                    "data": {
                        "off": "2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000",
                        "temperature24": {
                            "data": "2600ca00908e11361212113611361212111311361113111211361212111311361134131311361212111212351236113611361136113612351136121211131112131111131113121111361212111311121212111311131136111212351236113611361136113612aa908d12361112123512361112121211361113121211361112121211361136121211361212111311361136113612351136123612351136111212121113111311121113121211361112121212121113111212121235111311361136113612351236113612000d050000000000000000000000000000"
                        },
                        "temperature23": {
                            "data": "2600ca00928e12361112123611361112121211361113121211361112121211361235121211361212121211361136113611361136123612351136111212121113111311121212121211361113113611121212111311131136111212351212113612351236113612a9908e12351113123512351113111311361112131111361113111311361136111311361211121211361235123215361136113612311536111311131112121211131113121111361212113611131113111212121235111311361113113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature22": {
                            "data": "2600ca008e8f11361212113611361113111311361113111211361212111311361136111311361113111212351236113611361136113611361136121211131112121211131113111212351236113611121212111311131136111212121113113611361136113613a9908e11361113113611361112121211361113121211361113111211361235121211361212111311361136113611361136123611361136111311121113111311121212111311361136113611131113111211131235111311131112113612351236113611000d050000000000000000000000000000)"
                        },
                        "temperature21": {
                            "data": "2600ca008f8f11361113113611361113111311361112121211361113111311361136111311341312121211361136123611361136113612351136111311131112121211131113111211361136121211131113111211131136111311131136113611361136113612aa8f8e12351212113611361212111311361113111212361112111311361136111311361113111212361136113611361136113612351235121211131113111212121113111212361136111212121113111311121235121211131136113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature20": {
                            "data": "2600ca008f8f11361113113611361112121211361212111311361113111211361236111211361212111311361136113611361235123611361136111311121113111311121212111311121236111211131113111212121136123512121136113612351236113612a9908e11361113113611361113111311361112121211361113111311361136111311361211121211361136123611351236113612351136111311131112111311131112121211131136111311121212111311131235113611121236113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature19": {
                            "pseudo-mode": "19 graus",
                            "data": "2600ca00908e12351212113611361212111311361113111212351212111311361136111311361212111212351236113611361136113611361235121211131112121211131113111212121136113611131113111212121136113612121113113611361136113612aa8f8e12361112123512351212111311361113121112341312121211361136111311361113111311361136113611361136113612351236111212121113111212121113111311121136123512121113111311121235123611121212113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature18": {
                            "data": "2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000"
                        },

                        "temperature17": {
                            "data": "2600ca008f8d13361113113611361113111311361112121211361113111311361136111311361112121211361136123611361136113611351236111311131112121211131113111211131114101211131113111212121136113611361236113611361136113612aa908d12351212113612361112111311361113121112361112111311361136111311361113111311361134133611361136113613351136111212121113111212121113121211121212111311121212111311131136113611361136113611361236113216000d050000000000000000000000000000"
                        }
                    }

                }

when i send command to power off, log show this: [2018-3-14 15:25:25] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0

do you know how solve it? before update to this latest version, it was working..

Thank you!

lprhodes commented 6 years ago

This was due to missing "pseudo-mode" values. I've made it so that they are automatically determined in update 3.1.3.

You can now remove "pseudo-mode": "19 graus"

There's also a few other issues with the config you supplied so I've incorporated some additional checks into 3.1.3. You will need to fix the errors that it shows.

felipesalomao commented 6 years ago

updated to the latest version and now i am getting error on software launch..

`[CONFIG ERROR] Boolean values should look like this: "allowResend": true not this "allowResend": "true"

then i changed all "allowResend": "true" to "allowResend": true

then after got new error:

[CONFIG ERROR] Numeric values should look like this: "data": 26004800000126941410141114351411131213121312121312371237131114351435143613361336131213361336133614111312133613361336131213121312123713361311151014000d05 not this "data": "26004800000126941410141114351411131213121312121312371237131114351435143613361336131213361336133614111312133613361336131213121312123713361311151014000d05"

then i removed all data " ", then i got error saying that file syntax is incorrect according with https://jsonlint.com/

`

lprhodes commented 6 years ago

This is fixed in v3.2.3

felipesalomao commented 6 years ago

Now it say:

[CONFIG ERROR] Numeric values should look like this: "on": 260050000001269414111312123713121212131213121311133713361312123713371336133613371212121313121237131212121312131213361336133713121237133613371237130005210001264a13000d050000000000000000 not this "on": "260050000001269414111312123713121212131213121311133713361312123713371336133613371212121313121237131212121312131213361336133713121237133613371237130005210001264a13000d050000000000000000"


Here conf..

{
                    "name": "tv quarto",
                    "type": "switch",
                                        "allowResend": "true",
                    "data": {

                        "on": 260050000001269414111312123713121212131213121311133713361312123713371336133613371212121313121237131212121312131213361336133713121237133613371237130005210001264a13000d050000000000000000,
                        "off": "260050000001269414111312123713121212131213121311133713361312123713371336133613371212121313121237131212121312131213361336133713121237133613371237130005210001264a13000d050000000000000000"
                    }
                },

Data dont have problem now.. Just on attribute.. I dont know if "off" also have..

lprhodes commented 6 years ago

Sorry @felipesalomao, I've added a more generic check in v3.2.4

felipesalomao commented 6 years ago

No problem, i need be grateful for your time.. Now all syntax error is solved.. Only error i get now is:

    throw new AssertionError(msg, {
      ^
AssertionError: [CONFIG ERROR] minTemperature (17) must be <= 10: expected 17 to be below 11
    at AirConAccessory.setDefaults (/usr/local/lib/node_modules/homebridge-broadlink-rm/accessories/aircon.js:95:12)
    at AirConAccessory.HomebridgeAccessory (/usr/local/lib/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/accessory.js:39:10)
    at BroadlinkRMAccessory (/usr/local/lib/node_modules/homebridge-broadlink-rm/accessories/accessory.js:17:5)

Here is my ac config:

{
                    "name": "Ar Condicionado",
                    "type": "air-conditioner",
                                        "autoSwitch": "A/C Auto Switch",
                    "maxTemperature": 24,
                    "minTemperature": 17,
                                        "allowResend": true,
                    "defaultCoolTemperature": 20,
                    "defaultHeatTemperature": 20,

                    "data": {
                        "off": "2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000",
                        "temperature24": {
                            "data": "2600ca00908e11361212113611361212111311361113111211361212111311361134131311361212111212351236113611361136113612351136121211131112131111131113121111361212111311121212111311131136111212351236113611361136113612aa908d12361112123512361112121211361113121211361112121211361136121211361212111311361136113612351136123612351136111212121113111311121113121211361112121212121113111212121235111311361136113612351236113612000d050000000000000000000000000000"
                        },
                        "temperature23": {
                            "data": "2600ca00928e12361112123611361112121211361113121211361112121211361235121211361212121211361136113611361136123612351136111212121113111311121212121211361113113611121212111311131136111212351212113612351236113612a9908e12351113123512351113111311361112131111361113111311361136111311361211121211361235123215361136113612311536111311131112121211131113121111361212113611131113111212121235111311361113113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature22": {
                            "data": "2600ca008e8f11361212113611361113111311361113111211361212111311361136111311361113111212351236113611361136113611361136121211131112121211131113111212351236113611121212111311131136111212121113113611361136113613a9908e11361113113611361112121211361113121211361113111211361235121211361212111311361136113611361136123611361136111311121113111311121212111311361136113611131113111211131235111311131112113612351236113611000d050000000000000000000000000000)"
                        },
                        "temperature21": {
                            "data": "2600ca008f8f11361113113611361113111311361112121211361113111311361136111311341312121211361136123611361136113612351136111311131112121211131113111211361136121211131113111211131136111311131136113611361136113612aa8f8e12351212113611361212111311361113111212361112111311361136111311361113111212361136113611361136113612351235121211131113111212121113111212361136111212121113111311121235121211131136113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature20": {
                            "data": "2600ca008f8f11361113113611361112121211361212111311361113111211361236111211361212111311361136113611361235123611361136111311121113111311121212111311121236111211131113111212121136123512121136113612351236113612a9908e11361113113611361113111311361112121211361113111311361136111311361211121211361136123611351236113612351136111311131112111311131112121211131136111311121212111311131235113611121236113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature19": {
                            "pseudo-mode": "19 graus",
                            "data": "2600ca00908e12351212113611361212111311361113111212351212111311361136111311361212111212351236113611361136113611361235121211131112121211131113111212121136113611131113111212121136113612121113113611361136113612aa8f8e12361112123512351212111311361113121112341312121211361136111311361113111311361136113611361136113612351236111212121113111212121113111311121136123512121113111311121235123611121212113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature18": {
                            "data": "2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000"
                        },

                        "temperature17": {
                            "data": "2600ca008f8d13361113113611361113111311361112121211361113111311361136111311361112121211361136123611361136113611351236111311131112121211131113111211131114101211131113111212121136113611361236113611361136113612aa908d12351212113612361112111311361113121112361112111311361136111311361113111311361134133611361136113613351136111212121113111212121113121211121212111311121212111311131136113611361136113611361236113216000d050000000000000000000000000000"
                        }
                    }

                }

If i change "minTemperature": 17, to "minTemperature": 10, it works.. but temperature set is bigger than i can control.. I dont know why it is forcing me put temperature <= 10.. Do you know?

lprhodes commented 6 years ago

HomeKit starts messing up with anything above 10 so I added the check in there.

felipesalomao commented 6 years ago

Understood.. its because before it was working between 17 to 24.. Just added pseudo temperature of 23..

felipesalomao commented 6 years ago

it continues not powering off.. see log:

[2018-3-14 23:53:50] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)
[2018-3-14 23:54:00] [Broadlink RM] Ar Condicionado addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2018-3-14 23:54:00] [Broadlink RM] Ar Condicionado onTemperature (28.1)
[2018-3-14 23:54:00] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too high, settings to 0: 28.1)
[2018-3-14 23:54:00] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)
[2018-3-14 23:54:10] [Broadlink RM] Ar Condicionado addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2018-3-14 23:54:10] [Broadlink RM] Ar Condicionado onTemperature (28.1)
[2018-3-14 23:54:10] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too high, settings to 0: 28.1)
[2018-3-14 23:54:10] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)
[2018-3-14 23:54:20] [Broadlink RM] Ar Condicionado addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2018-3-14 23:54:20] [Broadlink RM] Ar Condicionado onTemperature (28.1)
[2018-3-14 23:54:20] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too high, settings to 0: 28.1)
[2018-3-14 23:54:20] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)
[2018-3-14 23:54:28] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-14 23:54:30] [Broadlink RM] Ar Condicionado addTemperatureCallbackToQueue (requested temperature from device, waiting)
[2018-3-14 23:54:30] [Broadlink RM] Ar Condicionado onTemperature (28.1)
[2018-3-14 23:54:30] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too high, settings to 0: 28.1)
[2018-3-14 23:54:30] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)

here ac conf:

{
                    "name": "Ar Condicionado",
                    "type": "air-conditioner",
                                        "autoSwitch": "A/C Auto Switch",
                    "maxTemperature": 24,
                    "minTemperature": 10,
                                        "allowResend": true,
                    "defaultCoolTemperature": 20,
                    "defaultHeatTemperature": 20,

                    "data": {
                        "off": "2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000",
                        "temperature24": {
                            "data": "2600ca00908e11361212113611361212111311361113111211361212111311361134131311361212111212351236113611361136113612351136121211131112131111131113121111361212111311121212111311131136111212351236113611361136113612aa908d12361112123512361112121211361113121211361112121211361136121211361212111311361136113612351136123612351136111212121113111311121113121211361112121212121113111212121235111311361136113612351236113612000d050000000000000000000000000000"
                        },
                        "temperature23": {
                            "data": "2600ca00928e12361112123611361112121211361113121211361112121211361235121211361212121211361136113611361136123612351136111212121113111311121212121211361113113611121212111311131136111212351212113612351236113612a9908e12351113123512351113111311361112131111361113111311361136111311361211121211361235123215361136113612311536111311131112121211131113121111361212113611131113111212121235111311361113113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature22": {
                            "data": "2600ca008e8f11361212113611361113111311361113111211361212111311361136111311361113111212351236113611361136113611361136121211131112121211131113111212351236113611121212111311131136111212121113113611361136113613a9908e11361113113611361112121211361113121211361113111211361235121211361212111311361136113611361136123611361136111311121113111311121212111311361136113611131113111211131235111311131112113612351236113611000d050000000000000000000000000000)"
                        },
                        "temperature21": {
                            "data": "2600ca008f8f11361113113611361113111311361112121211361113111311361136111311341312121211361136123611361136113612351136111311131112121211131113111211361136121211131113111211131136111311131136113611361136113612aa8f8e12351212113611361212111311361113111212361112111311361136111311361113111212361136113611361136113612351235121211131113111212121113111212361136111212121113111311121235121211131136113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature20": {
                            "data": "2600ca008f8f11361113113611361112121211361212111311361113111211361236111211361212111311361136113611361235123611361136111311121113111311121212111311121236111211131113111212121136123512121136113612351236113612a9908e11361113113611361113111311361112121211361113111311361136111311361211121211361136123611351236113612351136111311131112111311131112121211131136111311121212111311131235113611121236113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature19": {

                            "data": "2600ca00908e12351212113611361212111311361113111212351212111311361136111311361212111212351236113611361136113611361235121211131112121211131113111212121136113611131113111212121136113612121113113611361136113612aa8f8e12361112123512351212111311361113121112341312121211361136111311361113111311361136113611361136113612351236111212121113111212121113111311121136123512121113111311121235123611121212113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature18": {
                            "data": "2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000"
                        },

                        "temperature17": {
                            "data": "2600ca008f8d13361113113611361113111311361112121211361113111311361136111311361112121211361136123611361136113611351236111311131112121211131113111211131114101211131113111212121136113611361236113611361136113612aa908d12351212113612361112111311361113121112361112111311361136111311361113111311361134133611361136113613351136111212121113111212121113121211121212111311121212111311131136113611361136113611361236113216000d050000000000000000000000000000"
                        }
                    }

                }
lprhodes commented 6 years ago

Can you post the full log of the air conditioner from starting homebridge please.

Does it work if you add "pseudoDeviceTemperature": 23 back in?

felipesalomao commented 6 years ago

added.. tried power off 3 times:

this is full log since begin:

root@raspberrypi:~# homebridge start
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of                            Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[2018-3-15 00:12:35] Loaded plugin: homebridge-broadlink-rm
[2018-3-15 00:12:35] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[2018-3-15 00:12:35] ---
[2018-3-15 00:12:36] Loaded plugin: homebridge-homeassistant
[2018-3-15 00:12:36] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2018-3-15 00:12:36] ---
[2018-3-15 00:12:36] Loaded plugin: homebridge-lgtv-2012
[2018-3-15 00:12:36] Registering accessory 'homebridge-lgtv-2012.lgtv-2012'
[2018-3-15 00:12:36] ---
[2018-3-15 00:12:36] Loaded plugin: homebridge-switcheroo
[2018-3-15 00:12:36] Registering accessory 'homebridge-switcheroo.Switcheroo'
[2018-3-15 00:12:36] ---
[2018-3-15 00:12:36] Loaded config.json with 2 accessories and 1 platforms.
[2018-3-15 00:12:36] ---
[2018-3-15 00:12:36] Loading 1 platforms...
[2018-3-15 00:12:36] [Broadlink RM] Initializing BroadlinkRM platform...
[2018-3-15 00:12:36] [Broadlink RM] code quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] o androide quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] androide quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] android quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] o android quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] tv quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] Aumentar Volume Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] Diminuir Volume Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] Cortina Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] Jogo Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] ultimas series Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] ultimos filmes Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] todas series Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] todos filmes Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] tudo quarto Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] The "switch-multi" type requires the config value for "data" to be an array of hex codes.
[2018-3-15 00:12:36] [Broadlink RM] Ar Condicionado Accessory Ready
[2018-3-15 00:12:36] [Broadlink RM] Ar Condicionado Linking autoSwitch "A/C Auto Switch"
[2018-3-15 00:12:36] [Broadlink RM] Ar Condicionado No accessory could be found with the name "A/C Auto Switch". Please update the "autoSwitchName" value or add a                            matching switch accessory.
[2018-3-15 00:12:36] [Broadlink RM] Initializing platform accessory 'Learn'...
[2018-3-15 00:12:36] [Broadlink RM] Initializing platform accessory 'Scan Frequency'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'code quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'o androide quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'androide quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'android quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'o android quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'tv quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'Aumentar Volume'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'Diminuir Volume'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'Cortina'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'Jogo'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'ultimas series'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'ultimos filmes'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'todas series'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'todos filmes'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'tudo quarto'...
[2018-3-15 00:12:37] [Broadlink RM] Initializing platform accessory 'Ar Condicionado'...
[2018-3-15 00:12:37] Loading 2 accessories...
[2018-3-15 00:12:37] [Kitchen Light] Initializing Switcheroo accessory...
[2018-3-15 00:12:37] [Kitchen Light] [Switch]: Kitchen Light
[2018-3-15 00:12:37] [TV3] Initializing lgtv-2012 accessory...
Setup Payload:
X-HM://0023ISYWZ7864
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-155 │
    └────────────┘

[2018-3-15 00:12:37] Homebridge is running on port 51820.
[2018-3-15 00:12:37] [Broadlink RM] code quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] o androide quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] androide quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] android quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] o android quarto getSwitchState: true
[2018-3-15 00:12:37] [Broadlink RM] tv quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] Aumentar Volume getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] Diminuir Volume getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] Cortina getCurrentPosition: 18
[2018-3-15 00:12:37] [Broadlink RM] Cortina getPositionState: 0
[2018-3-15 00:12:37] [Broadlink RM] Cortina getTargetPosition: 18
[2018-3-15 00:12:37] [Broadlink RM] Jogo getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] ultimas series getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] ultimos filmes getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] todos filmes getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] tudo quarto getSwitchState: false
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado getTargetTemperature: 19
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado getTargetHeatingCoolingState: 0
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
Discovered Broadlink RM device at 192.168.1.23 (34:ea:34:c7:8d:69)
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado monitorTemperature
[2018-3-15 00:12:37] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:12:38] [Broadlink RM] Ar Condicionado onTemperature (27.9)
[2018-3-15 00:12:38] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too high, settings to 0: 27.9)
[2018-3-15 00:12:38] [Broadlink RM] Ar Condicionado getCurrentTemperature (reported temperature too low, setting to 0: 0)
**************************************************************************************************************
** Welcome to version 3.2.4 of the Homebridge Broadlink RM Plugin!
** Find out what's in the latest release here: https://github.com/lprhodes/homebridge-broadlink-rm/releases
**
** Keep up to date with this plugin along with everything HomeKit and homebridge
** by signing up to our newsletter at http://workswith.io
**
** If you like this plugin then please leave a star on GitHub or better yet; help to support the project
** and show your gratitude by contributing via Paypal (https://paypal.me/lprhodes).
**
** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
**
**************************************************************************************************************
[2018-3-15 00:12:38] [Broadlink RM] [Warning] code quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updat                           ed "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] o androide quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the                            updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] androide quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the u                           pdated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] android quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the up                           dated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] o android quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the                            updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] Aumentar Volume: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the u                           pdated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] Diminuir Volume: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the u                           pdated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] Jogo: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the update                           d "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] ultimas series: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out                            the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] ultimos filmes: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out                            the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] todas series: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out th                           e updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] todos filmes: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out th                           e updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:38] [Broadlink RM] [Warning] tudo quarto: The "switch-multi" accessory is now deprecated and shall be removed in the future. Check out the update                           d "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 00:12:47] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:12:48] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:12:57] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:12:57] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:05] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:13:08] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:18] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:28] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:38] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:48] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:58] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:08] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:18] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:28] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:38] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:48] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:14:58] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:15:08] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:15:18] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:15:28] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)

this here was when i tried power off 3 times..

[2018-3-15 00:12:47] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:12:48] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:12:57] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:12:57] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 00:13:05] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:13:08] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
lprhodes commented 6 years ago

It looks like you're trying to turn it off when it's already set to off?

felipesalomao commented 6 years ago

Yes.. I said set temperature to 19º, then turn off ac.. then it worked.. But theoretically it could resend command since it have "allowResend": true,..

If i say: set temperature to 19º three times, it send hex coomand to set temperature repeated times (even same temperature).. but resend is just not working with off command..

lprhodes commented 6 years ago

Sure, got it.

Try v3.2.6

felipesalomao commented 6 years ago

updated..


[2018-3-15 00:38:54] [Broadlink RM] Ar Condicionado setTargetTemperature: 18
[2018-3-15 00:38:54] [Broadlink RM] Ar Condicionado Potential sendTemperature (18)
[2018-3-15 00:38:55] [Broadlink RM] Ar Condicionado sendTemperature (18, cool)
[2018-3-15 00:38:55] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0
[2018-3-15 00:38:55] [Broadlink RM] Ar Condicionado getTargetHeatingCoolingState: 2
[2018-3-15 00:38:55] [Broadlink RM] Ar Condicionado sendHex (192.168.1.23; 34:ea:34:c7:8d:69) 2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000
[2018-3-15 00:38:55] [Broadlink RM] Ar Condicionado setCurrentHeatingCoolingState: 2
[2018-3-15 00:39:03] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:39:03] [Broadlink RM] Ar Condicionado sendHex (192.168.1.23; 34:ea:34:c7:8d:69) 2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000
[2018-3-15 00:39:03] [Broadlink RM] Ar Condicionado setCurrentHeatingCoolingState: 0
[2018-3-15 00:39:13] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 00:39:20] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0

i ajusted to 18º, then turned off.. then tried turn off again 3 times, but failed again (got Ar Condicionado setTargetHeatingCoolingState: 0)

lprhodes commented 6 years ago

I'm no longer seeing the issue, sorry. Can you be explicit about what you're doing in terms of what you're doing in the Home app and what you're asking of Siri.

felipesalomao commented 6 years ago

I just say, power off ac on siri.. it power off (send command), then i say again, it does not power off (resend command).. no action, just show: got Ar Condicionado setTargetHeatingCoolingState: 0 and dont send hex code.. On home app i go to ac control, then click in mode, then Power off.. but as it is some kind of switch, i cant click different times.. only way simulate it is using siri because i can speak again and again power off command..

here home app.. http://www.youtube.com/watch?v=MI9LvoX_2dY

this is ac conf..

{
                    "name": "Ar Condicionado",
                    "type": "air-conditioner",
                                        "autoSwitch": "A/C Auto Switch",
                                        "pseudoDeviceTemperature": 23,
                    "maxTemperature": 24,
                    "minTemperature": 10,
                                        "allowResend": true,
                    "defaultCoolTemperature": 20,
                    "defaultHeatTemperature": 20,

                    "data": {
                        "off": "2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000",
                        "temperature24": {
                            "data": "2600ca00908e11361212113611361212111311361113111211361212111311361134131311361212111212351236113611361136113612351136121211131112131111131113121111361212111311121212111311131136111212351236113611361136113612aa908d12361112123512361112121211361113121211361112121211361136121211361212111311361136113612351136123612351136111212121113111311121113121211361112121212121113111212121235111311361136113612351236113612000d050000000000000000000000000000"
                        },
                        "temperature23": {
                            "data": "2600ca00928e12361112123611361112121211361113121211361112121211361235121211361212121211361136113611361136123612351136111212121113111311121212121211361113113611121212111311131136111212351212113612351236113612a9908e12351113123512351113111311361112131111361113111311361136111311361211121211361235123215361136113612311536111311131112121211131113121111361212113611131113111212121235111311361113113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature22": {
                            "data": "2600ca008e8f11361212113611361113111311361113111211361212111311361136111311361113111212351236113611361136113611361136121211131112121211131113111212351236113611121212111311131136111212121113113611361136113613a9908e11361113113611361112121211361113121211361113111211361235121211361212111311361136113611361136123611361136111311121113111311121212111311361136113611131113111211131235111311131112113612351236113611000d050000000000000000000000000000)"
                        },
                        "temperature21": {
                            "data": "2600ca008f8f11361113113611361113111311361112121211361113111311361136111311341312121211361136123611361136113612351136111311131112121211131113111211361136121211131113111211131136111311131136113611361136113612aa8f8e12351212113611361212111311361113111212361112111311361136111311361113111212361136113611361136113612351235121211131113111212121113111212361136111212121113111311121235121211131136113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature20": {
                            "data": "2600ca008f8f11361113113611361112121211361212111311361113111211361236111211361212111311361136113611361235123611361136111311121113111311121212111311121236111211131113111212121136123512121136113612351236113612a9908e11361113113611361113111311361112121211361113111311361136111311361211121211361136123611351236113612351136111311131112111311131112121211131136111311121212111311131235113611121236113611361136113612000d050000000000000000000000000000"
                        },
                        "temperature19": {

                            "data": "2600ca00908e12351212113611361212111311361113111212351212111311361136111311361212111212351236113611361136113611361235121211131112121211131113111212121136113611131113111212121136113612121113113611361136113612aa8f8e12361112123512351212111311361113121112341312121211361136111311361113111311361136113611361136113612351236111212121113111212121113111311121136123512121113111311121235123611121212113611361136123611000d050000000000000000000000000000"
                        },
                        "temperature18": {
                            "data": "2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000"
                        },

                        "temperature17": {
                            "data": "2600ca008f8d13361113113611361113111311361112121211361113111311361136111311361112121211361136123611361136113611351236111311131112121211131113111211131114101211131113111212121136113611361236113611361136113612aa908d12351212113612361112111311361113121112361112111311361136111311361113111311361134133611361136113613351136111212121113111212121113121211121212111311121212111311131136113611361136113611361236113216000d050000000000000000000000000000"
                        }
                    }

                }
lprhodes commented 6 years ago

Can you provide steps like this please:

  1. Start homebridge
  2. In the Home app select 18C.
  3. Say to Siri "Turn off Air Conditioner"

etc.

felipesalomao commented 6 years ago

Made it..

started homebridge.. on home app selected 18c then used siri to power off..

Here is log:

root@raspberrypi:~# homebridge start
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[2018-3-15 01:23:52] Loaded plugin: homebridge-broadlink-rm
[2018-3-15 01:23:52] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[2018-3-15 01:23:52] ---
[2018-3-15 01:23:53] Loaded plugin: homebridge-homeassistant
[2018-3-15 01:23:53] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2018-3-15 01:23:53] ---
[2018-3-15 01:23:53] Loaded plugin: homebridge-lgtv-2012
[2018-3-15 01:23:53] Registering accessory 'homebridge-lgtv-2012.lgtv-2012'
[2018-3-15 01:23:53] ---
[2018-3-15 01:23:53] Loaded plugin: homebridge-switcheroo
[2018-3-15 01:23:53] Registering accessory 'homebridge-switcheroo.Switcheroo'
[2018-3-15 01:23:53] ---
[2018-3-15 01:23:53] Loaded config.json with 2 accessories and 1 platforms.
[2018-3-15 01:23:53] ---
[2018-3-15 01:23:54] Loading 1 platforms...
[2018-3-15 01:23:54] [Broadlink RM] Initializing BroadlinkRM platform...
[2018-3-15 01:23:54] [Broadlink RM] code quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] o androide quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] androide quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] android quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] o android quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] tv quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] Aumentar Volume Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] Diminuir Volume Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] Cortina Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] Jogo Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] ultimas series Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] ultimos filmes Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] todas series Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] todos filmes Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] tudo quarto Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] The "switch-multi" type requires the config value for "data" to be an array of hex codes.
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado Accessory Ready
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado Linking autoSwitch "A/C Auto Switch"
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado No accessory could be found with the name "A/C Auto Switch". Please update the "autoSwitchName" value or add a matching switch accessory.
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Learn'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Scan Frequency'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'code quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'o androide quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'androide quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'android quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'o android quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'tv quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Aumentar Volume'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Diminuir Volume'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Cortina'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Jogo'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'ultimas series'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'ultimos filmes'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'todas series'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'todos filmes'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'tudo quarto'...
[2018-3-15 01:23:54] [Broadlink RM] Initializing platform accessory 'Ar Condicionado'...
[2018-3-15 01:23:54] Loading 2 accessories...
[2018-3-15 01:23:54] [Kitchen Light] Initializing Switcheroo accessory...
[2018-3-15 01:23:54] [Kitchen Light] [Switch]: Kitchen Light
[2018-3-15 01:23:54] [TV3] Initializing lgtv-2012 accessory...
Setup Payload:
X-HM://0023ISYWZ7864
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-155 │
    └────────────┘

[2018-3-15 01:23:54] Homebridge is running on port 51820.
[2018-3-15 01:23:54] [Broadlink RM] code quarto getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] o androide quarto getSwitchState: true
[2018-3-15 01:23:54] [Broadlink RM] androide quarto getSwitchState: true
[2018-3-15 01:23:54] [Broadlink RM] android quarto getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] o android quarto getSwitchState: true
[2018-3-15 01:23:54] [Broadlink RM] tv quarto getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] Aumentar Volume getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] Diminuir Volume getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] Cortina getCurrentPosition: 18
[2018-3-15 01:23:54] [Broadlink RM] Cortina getPositionState: 0
[2018-3-15 01:23:54] [Broadlink RM] Cortina getTargetPosition: 18
[2018-3-15 01:23:54] [Broadlink RM] Jogo getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] ultimas series getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] ultimos filmes getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] todos filmes getSwitchState: false
[2018-3-15 01:23:54] [Broadlink RM] tudo quarto getSwitchState: true
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado getTargetTemperature: 17
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado getTargetHeatingCoolingState: 0
[2018-3-15 01:23:54] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
Discovered Broadlink RM device at 192.168.1.23 (34:ea:34:c7:8d:69)
**************************************************************************************************************
** Welcome to version 3.2.6 of the Homebridge Broadlink RM Plugin!
** Find out what's in the latest release here: https://github.com/lprhodes/homebridge-broadlink-rm/releases
**
** Keep up to date with this plugin along with everything HomeKit and homebridge
** by signing up to our newsletter at http://workswith.io
**
** If you like this plugin then please leave a star on GitHub or better yet; help to support the project
** and show your gratitude by contributing via Paypal (https://paypal.me/lprhodes).
**
** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
**
**************************************************************************************************************
[2018-3-15 01:23:55] [Broadlink RM] [Warning] code quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] o androide quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] androide quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] android quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] o android quarto: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] Aumentar Volume: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] Diminuir Volume: The "switch-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] Jogo: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] ultimas series: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] ultimos filmes: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] todas series: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] todos filmes: The "switch-multi-repeat" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:55] [Broadlink RM] [Warning] tudo quarto: The "switch-multi" accessory is now deprecated and shall be removed in the future. Check out the updated "switch" documentation at http://github.com/lprhodes/homebridge-broadlink-rm
[2018-3-15 01:23:56] [Broadlink RM] Learn getSwitchState: undefined
[2018-3-15 01:23:56] [Broadlink RM] Diminuir Volume getSwitchState: false
[2018-3-15 01:23:56] [Broadlink RM] Scan Frequency getSwitchState: undefined
[2018-3-15 01:23:56] [Broadlink RM] Jogo getSwitchState: false
[2018-3-15 01:23:56] [Broadlink RM] Aumentar Volume getSwitchState: false
[2018-3-15 01:23:56] [Broadlink RM] Cortina getTargetPosition: 18
[2018-3-15 01:23:56] [Broadlink RM] Cortina getCurrentPosition: 18
[2018-3-15 01:23:56] [Broadlink RM] Ar Condicionado getCurrentTemperature (using pseudoDeviceTemperature 23 from config)
[2018-3-15 01:23:56] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0
[2018-3-15 01:23:56] [Broadlink RM] Ar Condicionado getTargetTemperature: 17
[2018-3-15 01:23:56] [Broadlink RM] Ar Condicionado getTargetHeatingCoolingState: 0
[2018-3-15 01:23:56] [TV3] TV [192.168.1.237]: On
[2018-3-15 01:23:57] [TV3] TV [192.168.1.237]: On
[2018-3-15 01:24:03] [Broadlink RM] Ar Condicionado setTargetTemperature: 18
[2018-3-15 01:24:03] [Broadlink RM] Ar Condicionado Potential sendTemperature (18)
[2018-3-15 01:24:04] [Broadlink RM] Ar Condicionado sendTemperature (18, cool)
[2018-3-15 01:24:04] [Broadlink RM] Ar Condicionado getCurrentHeatingCoolingState: 0
[2018-3-15 01:24:04] [Broadlink RM] Ar Condicionado getTargetHeatingCoolingState: 2
[2018-3-15 01:24:04] [Broadlink RM] Ar Condicionado sendHex (192.168.1.23; 34:ea:34:c7:8d:69) 2600ca00918e11361112123611361112121211361113111311361112121211361136121211361212111311361136113611361136123512351236111212121113111212121113111311121113113611131112121211131235113611351312113611361136123513a9908e11361113113611361113111211361212111311361113111212351236111212361211111311361136113612351236113611361136111311121212111311121212121211131112113612121113111311121235123512361112123512361136113611000d050000000000000000000000000000
[2018-3-15 01:24:04] [Broadlink RM] Ar Condicionado setCurrentHeatingCoolingState: 2
[2018-3-15 01:24:16] [Broadlink RM] Ar Condicionado setTargetHeatingCoolingState: 0
[2018-3-15 01:24:16] [Broadlink RM] Ar Condicionado sendHex (192.168.1.23; 34:ea:34:c7:8d:69) 2600ca008f8e12361211113612351212111311361310121212351311111311361136111311361212113611361137103612121137103611361213101311121113123511131113113513351235111311121113111312111212121211121532123612351136123512aa8f8e1136121311351136111312121136121112121136111411121135133511121335140f113612351236123511131235113613341212121111131212113613111112123512351236111311121113121211121213101311121235123513351136113611000d050000000000000000000000000000
[2018-3-15 01:24:16] [Broadlink RM] Ar Condicionado setCurrentHeatingCoolingState: 0

not tried speak again to turn off.. if i speak, propabilly it wont send hex code again..

felipesalomao commented 6 years ago

hey, i tried send command using siri to power off 3 times, and it worked.. commands was sent..

I think that was because i set 18c temperature using home app instead siri.. is that right? strange.. Do you know what is ?

felipesalomao commented 6 years ago

restarted homebridge and talked directly without nothing before to power off ac 3 times.. and it just worked.. Did you changed something ? i do not updated... Crazy

lprhodes commented 6 years ago

I'm glad it works 👍

felipesalomao commented 6 years ago

You are awesome.. Sorry for so many time waste..