PowerShell function to change temperature settings on a Honeywell T5-T6 Lyric thermostat.
This script is for Windows PowerShell and will not work on PowerShell Core.
PSVersion | 5.1.19041.1151 |
PSEdition | Desktop |
BuildVersion | 10.0.19041.1151 |
CLRVersion | 4.0.30319.42000 |
WSManStackVersion | 3.0 |
In order to use this script, you must have these environment variables set. These values are availabe once you register with Honeywell Home Developer
- HWAPIKEY = Consumer Key that you are given once you register an app.
- HWCALLBACK = The URLEncoded callback url that you set when you register an app.
- HWDEVICE = Your thermostat's device id. Nomenclature is LCC-{Non colon separated thermostat MAC address}.
- HWLOCID = Your location id. This is retrievable via the https://api.honeywell.com/v2/locations endpoint
- HWPASS = Your URLEncoded password to login to https://developer.honeywellhome.com/
- HWUSER = Your URLEncoded username (email address) to login to https://developer.honeywellhome.com/
Load the script into your current Windows PowerShell session.
iex (irm "https://raw.githubusercontent.com/nstevens1040/Set-Thermostat/main/Set-Thermostat.ps1")
Set-Thermostat -CoolSetpoint 69