kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
300 stars 95 forks source link

Automatization dont turn off the aircon #69

Closed masterfordev closed 3 years ago

masterfordev commented 3 years ago

Sorry for open other issue but i have a new one hehe

I have a automatization created where this should turn off the aircon at 10pm, but this dont turn off the aircon, just change the temperature to max allowed (30 c), and in the home app show the aircon as off. I have the coolOnly activated, any idea why this happend?

PD: @kiwi-cam thanks for the work with the humidity sensor.

masterfordev commented 3 years ago

@Faisalthe01 you tried this?

Faisalthe01 commented 3 years ago

@Faisalthe01 you tried this?

Try to create the automation from Controller for Home app or Eve app and see

kiwi-cam commented 3 years ago

I haven't had this issue myself. Could you enable debugging and send your logs from when this happens?

masterfordev commented 3 years ago

Sorry, but how i can enable the debugging? đŸ˜… The option on homebridge UI ?

kiwi-cam commented 3 years ago

Easiest way is via your config.json:

                {
                        "platform": "BroadlinkRM",
                        "name": "Broadlink RM",
                        "debug": true,
                        "accessories": [{
                          ...
masterfordev commented 3 years ago

Easiest way is via your config.json:


                {

                        "platform": "BroadlinkRM",

                        "name": "Broadlink RM",

                        "debug": true,

                        "accessories": [{

                          ...

Ok thanks. Will enable it.

masterfordev commented 3 years ago

@kiwi-cam This is the logs of what happened.

[2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetHeatingCoolingState: 2 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetTemperature: 26 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina setTargetHeatingCoolingState: 0 [2020-9-27 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet sent: 5aa5aa555aa5aa550000000000000000000000000000000000000000000000003f6a0000bc626a00060024dfa734b13d01000000e4db00004b378aaffec21436eace6d3f012b6349518dacaf5d47ef771475d388745d971a3daa26d5e927bfd69d2e37d40643eb0f9b10d2bf6137c2db67393c4516c4e63ffef18594dde5264a08f15b17a7eb6e936d0a2a5340238ad9dcf5706a229bdd6b739ef384e483d9e0d7e857871a30eedee541633ef38c51212570df6232281537ebe102f70586bb58fe5fe01eed7403c1f32d911717e236b6d4f59f850207ade10d74ccff9767a44d6e38c1172794bd9457254d23896c80c615f95841744e35a82cf0cc44361630295ba4d6ed3719941bbada0c4beff3442f97f2c97151bac7e581ea0ed131df4b7cb8cdc6931a5c44ebbee5dde31b35b43fa213d58eda6c000ea6e82489c374ceaf3c9fa8f8e32d7e1c25bb2cf7f1b14cdd5b6bc60c144270d7921cfaf200c414293e9c9225f867a58d68acaaba95b8c9c00208ede9d9797062 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina sendHex (192.168.100.201; aa:bb:cc:dd:ee:ff) 2600240100012692173516121611161216111612161117111611171116111711161216111636173416121611171116111711161216111612161116121611161216351612163517111612163516121600028e161216351612161116121611161216111711161117111611171116111711161216111612161116121611161216111612161116121611171116351735161216351600051e00012892163616111612161117111611171116121611161216111612161116121635163616111711161216111612161116121611161216111612161116121635173516121611163616111600028e1711161216111636163517111633191116361633191116351735161216111612161116361611173516121611163616111636163517111612163516121635161216000d050000 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina setTargetTemperature: 26 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina No off HEX code found for 26 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina Update to default temperature (30) [2020-9-27 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet sent: 5aa5aa555aa5aa55000000000000000000000000000000000000000000000000a0240000bc626a00070024dfa734b13d01000000d2cd000089e18851a7a39d1cc4f3ae40eed41126f1f1a0b9e33a061a29bc215c8fa64ad4efee143380f8bbd00727bdf56105d51871f504e6e4d8867887daab6db2fdbb9e29fd77988bd237104d7d78040a9f71486d907f6441f4df5c645bc87003f292fd57a9f8194ad5f61f5264d4e59e22f35e279e77529b2a16f7205bc06f0030b6c3c9bad049e14f0644d93532e9f6094c1cc02c9aa4f08a67fbcae052f175f2744ce5726737358dadf4a4a42644a260264e [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina sendHex (192.168.100.201; aa:bb:cc:dd:ee:ff) 260092000001249415371413141414371513141315131413161214381437143814131513141315131414141314141413141414131438141315131413151314141437141414371414141315371414140002901512153714141413141414131414141315131413143814131513151215131414141314141413141414131414141315131413151314131513143814131414141314000d0500000000 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetTemperature: 30 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina sentTemperature (30) [2020-9-27 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet received: 0200000000000000000000000000 [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina setCurrentHeatingCoolingState: 0 [2020-9-27 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet received: 0200000000000000000000000000

I think the issue is in this line: [2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina No off HEX code found for 26

Faisalthe01 commented 3 years ago

@masterfordev share your config too

masterfordev commented 3 years ago

{ "platform": "BroadlinkRM", "name": "BroadlinkRM", "hideWelcomeMessage": true, "hideScanFrequencyButton": true, "hideLearnButton": true, "debug": false, "accessories": [ { "name": "Aire De La Oficina", "type": "air-conditioner", "temperatureUpdateFrequency": 600, "minTemperature": 16, "maxTemperature": 30, "defaultCoolTemperature": 26, "coolOnly": true, "temperatureAdjustment": -2.5, "host": "192.168.100.201", "disableLogs": true, "data": { "off": "HEX CODE", "cool16": { "data": "HEX CODE" }, "cool17": { "data": "HEX CODE" }, "cool18": { "data": "HEX CODE" }, "cool19": { "data": "HEX CODE" }, "cool20": { "data": "HEX CODE" }, "cool21": { "data": "HEX CODE" }, "cool22": { "data": "HEX CODE" }, "cool23": { "data": "HEX CODE" }, "cool24": { "data": "HEX CODE" }, "cool25": { "data": "HEX CODE" }, "cool26": { "data": "HEX CODE" }, "cool27": { "data": "HEX CODE" }, "cool28": { "data": "HEX CODE" }, "cool29": { "data": "HEX CODE" }, "cool30": { "data": "HEX CODE" }, "temperature16": { "data": "HEX CODE" }, "temperature17": { "data": "HEX CODE" }, "temperature18": { "data": "HEX CODE" }, "temperature19": { "data": "HEX CODE" }, "temperature20": { "data": "HEX CODE" }, "temperature21": { "data": "HEX CODE" }, "temperature22": { "data": "HEX CODE" }, "temperature23": { "data": "HEX CODE" }, "temperature24": { "data": "HEX CODE" }, "temperature25": { "data": "HEX CODE" }, "temperature26": { "data": "HEX CODE" }, "temperature27": { "data": "HEX CODE" }, "temperature28": { "data": "HEX CODE" }, "temperature29": { "data": "HEX CODE" }, "temperature30": { "data": "HEX CODE" } } } ] }

Faisalthe01 commented 3 years ago

That’s weird you have off hex code but it says no off hex code found. You can turn off from accessory tile without automation right? And did you create an automation with Controller or Eve app to test?

kiwi-cam commented 3 years ago

I'm a little curious what happens after the last line of the log:

[2020-9-27 21:59:59] [BroadlinkRM] Aire De La Oficina setCurrentHeatingCoolingState: 0
[2020-9-27 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet received: 0200000000000000000000000000

That looks like its setting the mode to 'off'.

I think the best option is to add this to your config: "ignoreTemperatureWhenOff": true i.e.

    "accessories": [{
        "name": "Aire De La Oficina",
        "type": "air-conditioner",
        "temperatureUpdateFrequency": 600,
        "minTemperature": 16,
        "maxTemperature": 30,
        "defaultCoolTemperature": 26,
        "ignoreTemperatureWhenOff": true
        "coolOnly": true,
        "temperatureAdjustment": -2.5,
        "host": "192.168.100.201",
        "disableLogs": true,
        "data": {

That will stop it trying to update the temperature when turning/turned off. I'm not sure why that isn't the default anyway - but that's the way its always been and it'd probably create more issues than it solves to change it.

masterfordev commented 3 years ago

Nothing happens after the last line, it stops there. The only thing that appeared is where it updates the humidity and temperature (function added in the last beta).

Will try it adding that line "ignoreTemperatureWhenOff": true. Thanks, i will update what happens.

That’s weird you have off hex code but it says no off hex code found. You can turn off from accessory tile without automation right? And did you create an automation with Controller or Eve app to test?

I haven't tried it yet, only with the Home app.

masterfordev commented 3 years ago

The automatization worked fine for turn off. Will check if this can turn on too. Thanks @kiwi-cam

[2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetHeatingCoolingState: 2 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetTemperature: 26 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina setTargetHeatingCoolingState: 0 [2020-9-28 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet sent: 5aa5aa555aa5aa55000000000000000000000000000000000000000000000000406a0000bc626a000700a7df2434b13d01000000e4db00004b378aaffec21436eace6d3f012b6349518dacaf5d47ef771475d388745d971a3daa26d5e927bfd69d2e37d40643eb0f9b10d2bf6137c2db67393c4516c4e63ffef18594dde5264a08f15b17a7eb6e936d0a2a5340238ad9dcf5706a229bdd6b739ef384e483d9e0d7e857871a30eedee541633ef38c51212570df6232281537ebe102f70586bb58fe5fe01eed7403c1f32d911717e236b6d4f59f850207ade10d74ccff9767a44d6e38c1172794bd9457254d23896c80c615f95841744e35a82cf0cc44361630295ba4d6ed3719941bbada0c4beff3442f97f2c97151bac7e581ea0ed131df4b7cb8cdc6931a5c44ebbee5dde31b35b43fa213d58eda6c000ea6e82489c374ceaf3c9fa8f8e32d7e1c25bb2cf7f1b14cdd5b6bc60c144270d7921cfaf200c414293e9c9225f867a58d68acaaba95b8c9c00208ede9d9797062 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina sendHex (192.168.100.201; aa:bb:cc:dd:ee:ff) 2600240100012692173516121611161216111612161117111611171116111711161216111636173416121611171116111711161216111612161116121611161216351612163517111612163516121600028e161216351612161116121611161216111711161117111611171116111711161216111612161116121611161216111612161116121611171116351735161216351600051e00012892163616111612161117111611171116121611161216111612161116121635163616111711161216111612161116121611161216111612161116121635173516121611163616111600028e1711161216111636163517111633191116361633191116351735161216111612161116361611173516121611163616111636163517111612163516121635161216000d050000 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina setTargetTemperature: 26 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina Ignoring sendTemperature due to "ignoreTemperatureWhenOff": true [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina getTargetTemperature: 26 [2020-9-28 21:59:59] [BroadlinkRM] [DEBUG] ( aabbccddeeff ) Packet received: 0200000000000000000000000000 [2020-9-28 21:59:59] [BroadlinkRM] Aire De La Oficina setCurrentHeatingCoolingState: 0

masterfordev commented 3 years ago

I have an automation that turns on the air-con at 2pm, but I have noticed that sometimes the air-con turns on earlier (there is no exact time, it just turns on) and in homekit it does not reflect that the air-con is on. I have activated the debug and I am waiting for it to happen to see if something appears in the debug when that happens. I will update when this happens.

masterfordev commented 3 years ago

I have an automation that turns on the air-con at 2pm, but I have noticed that sometimes the air-con turns on earlier (there is no exact time, it just turns on) and in homekit it does not reflect that the air-con is on. I have activated the debug and I am waiting for it to happen to see if something appears in the debug when that happens. I will update when this happens.

I believe that this problem has already been resolved. If it happens again, I will reopen the report. Thanks!