Changes from pull request discussion

- simplyfy empty tradfri battery detection
- change command string format
This commit is contained in:
Ranlvor 2018-06-24 16:27:59 +02:00
parent 86f03ad3ef
commit d93362edcb
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E
2 changed files with 5 additions and 4 deletions

View file

@ -65,13 +65,13 @@ export const tradfri_remote = {
topics: (remote_id: string) => ({
[ `tradfri_remote_${remote_id}_level` ]: {
state: `/service/openhab/out/tradfri_0830_gwb8d7af2b448f_${remote_id}_battery_level/state`,
command: ``,
command: "",
defaultValue: "0",
values: {}
},
[ `tradfri_remote_${remote_id}_low` ]: {
state: `/service/openhab/out/tradfri_0830_gwb8d7af2b448f_${remote_id}_battery_low/state`,
command: ``,
command: "",
defaultValue: "OFF",
values: { true: "ON", false: "OFF" }
}