question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning on invalid value of TargetHeatingCoolingState

See original GitHub issue

Describe Your Problem:

Warning messages in log file stating “This plugin generated a warning from the characteristic ‘Target Heating Cooling State’: characteristic value 3 is not contained in valid values array. See https://git.io/JtMGR for more info.” Not sure why value 3 is invalid and just checked the code of HAP looks like value 3 means auto mode: `export class TargetHeatingCoolingState extends Characteristic {

public static readonly UUID: string = “00000033-0000-1000-8000-0026BB765291”;

public static readonly OFF = 0; public static readonly HEAT = 1; public static readonly COOL = 2; public static readonly AUTO = 3;

constructor() { super(“Target Heating Cooling State”, TargetHeatingCoolingState.UUID, { format: Formats.UINT8, perms: [Perms.NOTIFY, Perms.PAIRED_READ, Perms.PAIRED_WRITE], minValue: 0, maxValue: 3, minStep: 1, validValues: [0, 1, 2, 3], }); this.value = this.getDefaultValue(); } }`

https://github.com/homebridge/HAP-NodeJS/blob/7db36a4af63655f0c53a626ddf6f4f27665ccefa/src/lib/definitions/CharacteristicDefinitions.ts#L4082

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
maisuncommented, Aug 8, 2021

TargetHeatingCoolingState is only used by the Thermostat accessory.

The HeaterCooler accessory uses TargetHeaterCoolerState instead (where 3 really isn’t a valid value).

Thanks! I think I know where to look now, your help is very much appreciated!

0reactions
oznucommented, Aug 8, 2021

Is there a way to trace what accessory generate the warning message? Thank you!

See https://github.com/homebridge/homebridge/wiki/Characteristic-Warnings, you can turn on debug mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Carrier/Bryant Infinitive Integration - Home Assistant Community
I noticed though that I'm getting a log error in Home assistant tied to the HomeKit integration. 'TargetHeatingCoolingState: value=0 is an ...
Read more >
Troubleshoot an MRSS video content feed - Google Support
Troubleshoot validation warnings and errors ... For each warning or error, you can expand to see the exact instances where it occurred in...
Read more >
characteristic - Go Packages
Value is a clone of json.RawMessage that lets us defer unmarshalling of a value until we determine the expected data type. Convenience methods ......
Read more >
API 7k خرطوم Viessmann - خرطوم الضغط العالي | خرطوم هيدروليكي
Warning on invalid value of TargetHeatingCoolingState · Issue … 7/8/2021· Warning messages in log file stating "This plugin generated a warning from the ......
Read more >
homebridge/homekit - FHEM Forum
Server error: Error: listen EADDRINUSE :::8282 ... [3/1/2017, 11:14:45 AM] [FHEM] caching: TargetHeatingCoolingState: 3 (as number; means AUTO; from 'AUTO')
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found