Use new state topics everywhere
This commit is contained in:
parent
1ba0c07ebe
commit
d4e05cae11
1 changed files with 10 additions and 10 deletions
|
|
@ -112,8 +112,8 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
bedroomBrightness: {
|
bedroomBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "zigbee2mqtt/bulb_bedroom",
|
name: "home-rust/bulb/bedroom/brightness",
|
||||||
type: types.json("brightness")
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "zigbee2mqtt/bulb_bedroom/set",
|
name: "zigbee2mqtt/bulb_bedroom/set",
|
||||||
|
|
@ -123,11 +123,11 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
bedroomState: {
|
bedroomState: {
|
||||||
state: {
|
state: {
|
||||||
name: "zigbee2mqtt/bulb_bedroom",
|
name: "home-rust/bulb/bedroom/state",
|
||||||
type: types.json("state", types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
}))
|
})
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "zigbee2mqtt/bulb_bedroom/set",
|
name: "zigbee2mqtt/bulb_bedroom/set",
|
||||||
|
|
@ -137,8 +137,8 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
hallwayBrightness: {
|
hallwayBrightness: {
|
||||||
state: {
|
state: {
|
||||||
name: "zigbee2mqtt/bulb_hallway",
|
name: "home-rust/bulb/hallway/brightness",
|
||||||
type: types.json("brightness")
|
type: types.string
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "zigbee2mqtt/bulb_hallway/set",
|
name: "zigbee2mqtt/bulb_hallway/set",
|
||||||
|
|
@ -148,11 +148,11 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
hallwayState: {
|
hallwayState: {
|
||||||
state: {
|
state: {
|
||||||
name: "zigbee2mqtt/bulb_hallway",
|
name: "home-rust/bulb/hallway/state",
|
||||||
type: types.json("state", types.option({
|
type: types.option({
|
||||||
OFF: "off",
|
OFF: "off",
|
||||||
ON: "on"
|
ON: "on"
|
||||||
}))
|
})
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "zigbee2mqtt/bulb_hallway/set",
|
name: "zigbee2mqtt/bulb_hallway/set",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue