Skip to content

Commit

Permalink
Revert "bugfix for onoff mode - remove brightness control"
Browse files Browse the repository at this point in the history
This reverts commit a335531.
  • Loading branch information
Matt committed Apr 7, 2023
1 parent a335531 commit aab37e1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/entities/homeAssistantHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ export const startup = ({
publish_topic = false;
}
sendonce++;
} else if (lightmode === 'dimmer') {
payload = {
"~": `${mqttConfig.topic_prefix}/a${areaKey}c${channelKey}`,
name,
unique_id: name.toLowerCase().replace(/ /g, "_"),
cmd_t: "~/set",
stat_t: "~/state",
schema: "json",
availability_topic: `${mqttConfig.availability_topic}`,
brightness: true
};
} else {
payload = {
"~": `${mqttConfig.topic_prefix}/a${areaKey}c${channelKey}`,
Expand All @@ -71,7 +60,7 @@ export const startup = ({
stat_t: "~/state",
schema: "json",
availability_topic: `${mqttConfig.availability_topic}`,
brightness: false
brightness: true
};
}

Expand Down

0 comments on commit aab37e1

Please sign in to comment.