Use new state topics everywhere

This commit is contained in:
Ranlvor 2019-05-11 11:57:48 +02:00
parent 1ba0c07ebe
commit d4e05cae11
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -112,8 +112,8 @@ const config: Config = {
},
bedroomBrightness: {
state: {
name: "zigbee2mqtt/bulb_bedroom",
type: types.json("brightness")
name: "home-rust/bulb/bedroom/brightness",
type: types.string
},
command: {
name: "zigbee2mqtt/bulb_bedroom/set",
@ -123,11 +123,11 @@ const config: Config = {
},
bedroomState: {
state: {
name: "zigbee2mqtt/bulb_bedroom",
type: types.json("state", types.option({
name: "home-rust/bulb/bedroom/state",
type: types.option({
OFF: "off",
ON: "on"
}))
})
},
command: {
name: "zigbee2mqtt/bulb_bedroom/set",
@ -137,8 +137,8 @@ const config: Config = {
},
hallwayBrightness: {
state: {
name: "zigbee2mqtt/bulb_hallway",
type: types.json("brightness")
name: "home-rust/bulb/hallway/brightness",
type: types.string
},
command: {
name: "zigbee2mqtt/bulb_hallway/set",
@ -148,11 +148,11 @@ const config: Config = {
},
hallwayState: {
state: {
name: "zigbee2mqtt/bulb_hallway",
type: types.json("state", types.option({
name: "home-rust/bulb/hallway/state",
type: types.option({
OFF: "off",
ON: "on"
}))
})
},
command: {
name: "zigbee2mqtt/bulb_hallway/set",