Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep timer on certain LG AC models #20

Open
doghouch opened this issue Feb 18, 2024 · 4 comments
Open

Sleep timer on certain LG AC models #20

doghouch opened this issue Feb 18, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@doghouch
Copy link

doghouch commented Feb 18, 2024

For reference, I have an LG LP1419IVSM.AC1AHDC (https://www.lg.com/ca_en/heating-and-cooling/portable-air-conditioner/lp1419ivsm/). I wanted to set/read the current sleep timer (a feature that slowly increases the temperature on the AC-side while you sleep).

Some debugging logs
{
    "airState.windStrength": 2,
    "fwUpgradeInfo": {
        "upgSched": {
            "upgUtc": "0",
            "cmd": "none"
        }
    },
    "airState.notification": 0,
    "static": {
        "deviceType": "401",
        "countryCode": "CA"
    },
    "airState.tempState.current": 26,
    "airState.diagCode": 0,
    "mid": 176302357,
    "airState.energy.onCurrent": 72,
    "airState.reservation.sleepTime": 0,
    "airState.quality.sensorMon": 0,
    "airState.tempState.target": 20,
    "airState.miscFuncState.autoDryRemainTime": 0,
    "airState.operation": 1,
    "airState.reservation.targetTimeToStart": 0,
    "meta": {
        "allDeviceInfoUpdate": false,
        "messageId": ""
    },
    "online": true,
    "airState.opMode": 2,
    "airState.reservation.targetTimeToStop": 0,
    "airState.filterMngStates.maxTime": 250,
    "airState.filterMngStates.useTime": 0,
    "airState.wDir.vStep": 100,
    "timestamp": 1708251304654
}

The key in question would be: "airState.reservation.sleepTime": 0, which can be both set and read with the same property. It currently does not exist in the ACDevice class.

@doghouch
Copy link
Author

doghouch commented Feb 18, 2024

I propose a simple extension; i.e. add a getter/setter for sleep timers, as well as a new property: 1e0951c

I'm not sure if every LG air conditioner supports this feature, but it might be a good idea to fence it off by checking for the key.

Edit: I did some more probing and found that:

  • sending -1 as a parameter for minutes (sleep timer) results in the maximum being set for a particular air conditioner
    • in my case, my AC has a maximum of 12 hours on the ThinQ app or just over 30 hours via/ the API
  • sending values greater than it's maximum doesn't return any errors

@majki09 majki09 added the enhancement New feature or request label Feb 27, 2024
@majki09
Copy link
Owner

majki09 commented Feb 27, 2024

Hi @doghouch!
Thank you very much for interesting my plugin. I will try this on my AC, I don't really remember do I have this option available. Will get back to you soon, thanks!

@doghouch
Copy link
Author

Hi @doghouch! Thank you very much for interesting my plugin. I will try this on my AC, I don't really remember do I have this option available. Will get back to you soon, thanks!

Do let me know if you need more logs -- I'd be happy to provide them!

@ajongen
Copy link

ajongen commented Aug 14, 2024

That would indeed be a nice enhancement. Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants