From d4e05cae1104c6c8e842cea3fc9d45e7889946cd Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sat, 11 May 2019 11:57:48 +0200 Subject: [PATCH] Use new state topics everywhere --- config/home/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config/home/index.js b/config/home/index.js index 1ad4c56..2319358 100644 --- a/config/home/index.js +++ b/config/home/index.js @@ -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",