Use new zigbee2mqtt state-topics
The new state-topics-feature of zigbee2mqtt makes the translation-layer in home-rust obsolete for simple (non color-changing) bulbs.
This commit is contained in:
parent
e0b64f1bfe
commit
2af7a9a10c
1 changed files with 11 additions and 11 deletions
|
|
@ -122,7 +122,7 @@ const config: Config = {
|
||||||
...topicBulb("livingroom", "mode"),
|
...topicBulb("livingroom", "mode"),
|
||||||
livingroomBrightness: {
|
livingroomBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/livingroom/brightness",
|
name: "zigbee2mqtt/bulb_livingroom/brightness",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -133,7 +133,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
livingroomState: {
|
livingroomState: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/livingroom/state",
|
name: "zigbee2mqtt/bulb_livingroom/state",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
|
|
@ -161,7 +161,7 @@ const config: Config = {
|
||||||
...topicHomeBoolean("bedroomWakeup", "wakeup"),
|
...topicHomeBoolean("bedroomWakeup", "wakeup"),
|
||||||
bedroomBrightness: {
|
bedroomBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/bedroom/brightness",
|
name: "zigbee2mqtt/bulb_bedroom/brightness",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -172,7 +172,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
bedroomColorTemp: {
|
bedroomColorTemp: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/bedroom/color_temp",
|
name: "zigbee2mqtt/bulb_bedroom/color_temp",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -183,7 +183,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
bedroomState: {
|
bedroomState: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/bedroom/state",
|
name: "zigbee2mqtt/bulb_bedroom/state",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
|
|
@ -205,7 +205,7 @@ const config: Config = {
|
||||||
"temperature-control/office/target"),
|
"temperature-control/office/target"),
|
||||||
hallwayBrightness: {
|
hallwayBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/hallway/brightness",
|
name: "zigbee2mqtt/bulb_hallway/brightness",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -216,7 +216,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
hallwayState: {
|
hallwayState: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/hallway/state",
|
name: "zigbee2mqtt/bulb_hallway/state",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
|
|
@ -230,7 +230,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
hallway2Brightness: {
|
hallway2Brightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/hallway2/brightness",
|
name: "zigbee2mqtt/bulb_hallway2/brightness",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -241,7 +241,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
hallway2State: {
|
hallway2State: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/hallway2/state",
|
name: "zigbee2mqtt/bulb_hallway2/state",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
|
|
@ -255,7 +255,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
officeBrightness: {
|
officeBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/office/brightness",
|
name: "zigbee2mqtt/bulb_office/brightness",
|
||||||
type: types.string
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
|
|
@ -266,7 +266,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
officeState: {
|
officeState: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/bulb/office/state",
|
name: "zigbee2mqtt/bulb_office/state",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue