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

Add "off" backlight to "-G2" Sinope thermostat variants #8903

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/devices/sinope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const fzLocal = {
result.main_cycle_output = utils.getFromLookup(msg.data.SinopeMainCycleOutput, cycleOutputLookup);
}
if (msg.data["1026"] !== undefined) {
const lookup = {0: "on_demand", 1: "sensing"};
const lookup = {0: "on_demand", 1: "sensing", 2: "off"};
result.backlight_auto_dim = utils.getFromLookup(msg.data["1026"], lookup);
}
if (msg.data.SinopeBacklight !== undefined) {
const lookup = {0: "on_demand", 1: "sensing"};
const lookup = {0: "on_demand", 1: "sensing", 2: "off"};
result.backlight_auto_dim = utils.getFromLookup(msg.data.SinopeBacklight, lookup);
}
if (msg.data["1028"] !== undefined) {
Expand Down Expand Up @@ -262,7 +262,7 @@ const tzLocal = {
backlight_autodim: {
key: ["backlight_auto_dim"],
convertSet: async (entity, key, value, meta) => {
const sinopeBacklightParam = {0: "on_demand", 1: "sensing"};
const sinopeBacklightParam = {0: "on_demand", 1: "sensing", 2: "off"};
const SinopeBacklight = utils.getKey(sinopeBacklightParam, value, value, Number);
await entity.write("hvacThermostat", {SinopeBacklight}, manuSinope);
return {state: {backlight_auto_dim: value}};
Expand Down Expand Up @@ -861,7 +861,7 @@ export const definitions: DefinitionWithExtend[] = [
.enum("temperature_display_mode", ea.ALL, ["celsius", "fahrenheit"])
.withDescription("The temperature format displayed on the thermostat screen"),
e.enum("time_format", ea.ALL, ["24h", "12h"]).withDescription("The time format featured on the thermostat display"),
e.enum("backlight_auto_dim", ea.ALL, ["on_demand", "sensing"]).withDescription("Control backlight dimming behavior"),
e.enum("backlight_auto_dim", ea.ALL, ["on_demand", "sensing", "off"]).withDescription("Control backlight dimming behavior"),
e.enum("keypad_lockout", ea.ALL, ["unlock", "lock1"]).withDescription("Enables or disables the device’s buttons"),
e.enum("main_cycle_output", ea.ALL, ["15_sec", "15_min"]).withDescription("The length of the control cycle: 15_sec=normal 15_min=fan"),
],
Expand Down Expand Up @@ -972,7 +972,7 @@ export const definitions: DefinitionWithExtend[] = [
.enum("temperature_display_mode", ea.ALL, ["celsius", "fahrenheit"])
.withDescription("The temperature format displayed on the thermostat screen"),
e.enum("time_format", ea.ALL, ["24h", "12h"]).withDescription("The time format featured on the thermostat display"),
e.enum("backlight_auto_dim", ea.ALL, ["on_demand", "sensing"]).withDescription("Control backlight dimming behavior"),
e.enum("backlight_auto_dim", ea.ALL, ["on_demand", "sensing", "off"]).withDescription("Control backlight dimming behavior"),
e.enum("keypad_lockout", ea.ALL, ["unlock", "lock1"]).withDescription("Enables or disables the device’s buttons"),
e.enum("main_cycle_output", ea.ALL, ["15_sec", "15_min"]).withDescription("The length of the control cycle: 15_sec=normal 15_min=fan"),
],
Expand Down