+Batteriestände Fernbedinungen
This commit is contained in:
parent
4c80bc7930
commit
2c8feefb04
2 changed files with 49 additions and 2 deletions
|
|
@ -59,6 +59,25 @@ export const floalt = {
|
|||
})
|
||||
}
|
||||
|
||||
export const remote = {
|
||||
level: (remote_id: string) => `remote_${remote_id}_level`,
|
||||
low: (remote_id: string) => `remote_${remote_id}_low`,
|
||||
topics: (remote_id: string) => ({
|
||||
[ `remote_${remote_id}_level` ]: {
|
||||
state: `/service/openhab/out/tradfri_0830_gwb8d7af2b448f_${remote_id}_battery_level/state`,
|
||||
command: ``,
|
||||
defaultValue: "0",
|
||||
values: {}
|
||||
},
|
||||
[ `remote_${remote_id}_low` ]: {
|
||||
state: `/service/openhab/out/tradfri_0830_gwb8d7af2b448f_${remote_id}_battery_low/state`,
|
||||
command: ``,
|
||||
defaultValue: "OFF",
|
||||
values: { true: "ON", false: "OFF" }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const esper_statistics = (name: string,
|
||||
prev_ui: Array<ControlUI> = []) => (
|
||||
prev_ui.concat([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue