UNPKG

iobroker.lupusec

Version:
2,066 lines (2,065 loc) 80.5 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var datapoints_exports = {}; __export(datapoints_exports, { Datapoints: () => Datapoints }); module.exports = __toCommonJS(datapoints_exports); var import_tools = require("./tools"); class Datapoints { /** * Types of Devices */ static getDeviceTypes() { const deviceTypes = { TYPE_0: { name: "Unknown Device", devlist: "type_unknown" }, TYPE_2: { name: "Fernbedienung", devlist: "type_unknown", icon: "/icons/2.png" }, TYPE_3: { name: "Nachtschalter", devlist: "type_unknown" }, TYPE_4: { name: "T\xFCrkontakt", devlist: "type_contact", icon: "/icons/4.png" }, TYPE_5: { name: "Wassersensor", devlist: "type_sensor_water", icon: "/icons/5.png" }, TYPE_6: { name: "Panic Button", devlist: "type_unknown" }, TYPE_7: { name: "Panic Button", devlist: "type_panic_button", icon: "/icons/7.png" }, TYPE_9: { name: "Bewegungsmelder", devlist: "type_motion", icon: "/icons/9.png" }, TYPE_11: { name: "Rauchmelder / Hitzemelder", devlist: "type_sensor_fire", icon: "/icons/11.png" }, TYPE_12: { name: "Gasmelder", devlist: "type_unknown" }, TYPE_13: { name: "CO-Melder", devlist: "type_sensor_co", icon: "/icons/13.png" }, TYPE_14: { name: "Hitzemelder", devlist: "type_unknown" }, TYPE_16: { name: "Tag Reader", devlist: "type_unknown" }, TYPE_17: { name: "Keypad Outdoor", devlist: "type_kpad_outdoor", icon: "/icons/17.png" }, TYPE_19: { name: "Glasbruchsensor", devlist: "type_sensor_glas", icon: "/icons/19.png" }, TYPE_20: { name: "Temperatursensor", devlist: "type_raumsensor20", icon: "/icons/20.png" }, TYPE_21: { name: "Med. Alarmmelder", devlist: "type_unknown" }, TYPE_22: { name: "Mini Innensirene / Statusanzeige", devlist: "type_statusanzeige", icon: "/icons/22.png" }, TYPE_23: { name: "Sirene", devlist: "type_siren", icon: "/icons/23.png" }, TYPE_24: { name: "Power Switch", devlist: "type_pswitch", icon: "/icons/24.png" }, TYPE_26: { name: "Repeater", devlist: "type_repeater", icon: "/icons/26.png" }, TYPE_27: { name: "PIR Kamera", devlist: "type_unknown" }, TYPE_31: { name: "Fernbedienung", devlist: "type_unknown", icon: "/icons/2.png" }, TYPE_33: { name: "Drahtloser Sensoreingang", devlist: "type_unknown" }, TYPE_37: { name: "Keypad", devlist: "type_kpad", icon: "/icons/37.png" }, TYPE_39: { name: "Glasbruchmelder", devlist: "type_sensor_glas", icon: "/icons/39.png" }, TYPE_45: { name: "Innensirene", devlist: "type_statusanzeige", icon: "/icons/45.png" }, TYPE_46: { name: "Au\xDFensirene", devlist: "type_siren", icon: "/icons/46.png" }, TYPE_48: { name: "Power Switch Meter", devlist: "type_switch", icon: "/icons/48.png" }, TYPE_50: { name: "Electric Meter", devlist: "type_electric_meter", icon: "/icons/50.png" }, TYPE_52: { name: "Universal IR Fernbedienung", devlist: "type_ir_remotecontrol", icon: "/icons/52.png" }, TYPE_54: { name: "Raumsensor", devlist: "type_raumsensor54", icon: "/icons/54.png" }, TYPE_57: { name: "Nuki", devlist: "type_nuki", icon: "/icons/57.png" }, TYPE_58: { name: "Hitzemelder", devlist: "type_heatdetector", icon: "/icons/58.png" }, TYPE_61: { name: "Remote Switch", devlist: "type_unknown" }, TYPE_66: { name: "Dimmer", devlist: "type_dimmer", icon: "/icons/66.png" }, TYPE_67: { name: "Rauchmelder", devlist: "type_unknown" }, TYPE_73: { name: "Heizungsthermostat", devlist: "type_unknown" }, TYPE_74: { name: "Hue", devlist: "type_hue", icon: "/icons/74.png" }, TYPE_75: { name: "Temperatursensor", devlist: "type_unknown" }, TYPE_76: { name: "Rollladenrelais", devlist: "type_shutter", icon: "/icons/76.png" }, TYPE_78: { name: "Lichtsensor", devlist: "type_lightsensor", icon: "/icons/78.png" }, TYPE_79: { name: "Heizk\xF6rperthermostat", devlist: "type_thermostat", icon: "/icons/79.png" }, TYPE_81: { name: "Smart Switch", devlist: "type_smart_switch", icon: "/icons/81.png" }, TYPE_93: { name: "Ersch\xFCtterungssensor", devlist: "type_shock_sensor", icon: "/icons/93.png" } }; return deviceTypes; } static getDeviceDatapoints() { const noanswer_event_en = { 0: "no answer" }; const doorbellevent_en = { 3: "doorbell" }; const alarm_events_en = { 5: "burglar alarm", 6: "smoke", 7: "medical alarm", 8: "water", 9: "silence alarm", 10: "panic alarm", 11: "ermergency alarm", 15: "emergency alarm(silence)", 12: "fire", 13: "CO alarm", 18: "Gas alarm", 19: "Heat alarm" }; const sensor_events_en = { 100: "Sensor-Event 1", 101: "Sensor-Event 2", 102: "Sensor-Event 3", 103: "Sensor-Event 4", 104: "Sensor-Event 5", 105: "Sensor-Event 6", 106: "Sensor-Event 7", 107: "Sensor-Event 8", 108: "Sensor-Event 9", 109: "Sensor-Event 10", 110: "Sensor-Event 11", 111: "Sensor-Event 12", 112: "Sensor-Event 13", 113: "Sensor-Event 14", 114: "Sensor-Event 15", 115: "Sensor-Event 16" }; const szene_events_en = { 150: "Szene 1", 151: "Szene 2", 152: "Szene 3", 153: "Szene 4", 154: "Szene 5", 155: "Szene 6", 156: "Szene 7", 157: "Szene 8", 158: "Szene 9", 159: "Szene 10", 160: "Szene 11", 161: "Szene 12", 162: "Szene 13", 163: "Szene 14", 164: "Szene 15", 165: "Szene 16" }; const button_events_en = { ...noanswer_event_en, ...alarm_events_en, ...sensor_events_en, ...szene_events_en }; const noanswer_event_de = { 0: "Keine Antwort" }; const doorbellevent_de = { 3: "T\xFCrklingel" }; const alarm_events_de = { 5: "Einbruchalarm", 6: "Rauch", 7: "Medizinischer Alarm", 8: "Wasser", 9: "Stiller Alarm", 10: "Panic Alarm", 11: "Notfall Alarm", 15: "Notfall Alarm (Still)", 12: "Feuer", 13: "CO Alarm", 18: "Gas Alarm", 19: "Hitze Alarm" }; const sensor_events_de = { 100: "Sensor-Event anwenden 1", 101: "Sensor-Event anwenden 2", 102: "Sensor-Event anwenden 3", 103: "Sensor-Event anwenden 4", 104: "Sensor-Event anwenden 5", 105: "Sensor-Event anwenden 6", 106: "Sensor-Event anwenden 7", 107: "Sensor-Event anwenden 8", 108: "Sensor-Event anwenden 9", 109: "Sensor-Event anwenden 10", 110: "Sensor-Event anwenden 11", 111: "Sensor-Event anwenden 12", 112: "Sensor-Event anwenden 13", 113: "Sensor-Event anwenden 14", 114: "Sensor-Event anwenden 15", 115: "Sensor-Event anwenden 16" }; const szene_events_de = { 150: "Szene anwenden 1", 151: "Szene anwenden 2", 152: "Szene anwenden 3", 153: "Szene anwenden 4", 154: "Szene anwenden 5", 155: "Szene anwenden 6", 156: "Szene anwenden 7", 157: "Szene anwenden 8", 158: "Szene anwenden 9", 159: "Szene anwenden 10", 160: "Szene anwenden 11", 161: "Szene anwenden 12", 162: "Szene anwenden 13", 163: "Szene anwenden 14", 164: "Szene anwenden 15", 165: "Szene anwenden 16" }; const button_events_de = { ...noanswer_event_de, ...alarm_events_de, ...sensor_events_de, ...szene_events_de }; const deviceDatapoints = { // Sirene type_siren: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } } }, // Steckdose type_switch: { status_ex: { type: "state", common: { type: "boolean", role: "switch.power", name: { de: "Schalter", en: "Switch" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } } } }, /* status: { type: 'string', role: 'text', read: true, write: false, }, */ pd: { type: "state", common: { type: "number", role: "level", name: { en: "Minutes to get off again", de: "Aus in x Minuten" }, read: true, write: true, min: 0, max: 180, def: 0 } }, power: { type: "state", common: { type: "number", role: "value.power.consumption", name: { en: "Power", de: "Verbrauch" }, read: true, write: false, unit: "W" } }, powertotal: { type: "state", common: { type: "number", role: "value.power.consumption", name: { en: "Power Total", de: "Gesamtverbrauch" }, read: true, write: false, unit: "kWh" } }, always_off: { type: "state", common: { type: "number", role: "value", name: { en: "Switch/Push button", de: "Schalter/Taster" }, read: true, write: true, states: { en: { 0: "Switch", 1: "Push button" }, de: { 0: "Schalter", 1: "Taster" } } } } }, type_nuki: { nuki_state: { type: "state", common: { type: "number", role: "value", name: { de: "T\xFCr Status", en: "Door state" }, read: true, write: false, states: { en: { 0: "opend", 1: "locked", 3: "unlocked" }, de: { 0: "T\xFCr offen", 1: "Abgeschlossen", 3: "Aufgeschlossen" } } } }, nuki_action: { type: "state", common: { type: "number", role: "value", name: { de: "T\xFCr Aktion", en: "Door action" }, read: true, write: true, states: { en: { 0: "open", 1: "lock", 3: "unlock", 4: "unknown" }, de: { 0: "T\xFCr \xF6ffnen", 1: "abschlie\xDFen", 3: "aufschlie\xDFen", 4: "nicht bekannt" } }, def: 4 } }, status: { type: "state", common: { type: "string", role: "text", name: "Status", read: true, write: false }, def: "" } }, // Electric Meter / Hauptstromzähler type_electric_meter: { factor: { type: "state", common: { type: "number", role: "value", name: { de: "Impulsfaktor pro 1 kWh", en: "Impulsfactor for 1 kWh" }, read: true, write: true } }, power: { type: "state", common: { type: "number", role: "value.power.consumption", name: { en: "Power", de: "Verbrauch" }, read: true, write: false, unit: "W" } }, powertotal: { type: "state", common: { type: "number", role: "value.power.consumption", name: { en: "Power Total", de: "Gesamtverbrauch" }, read: true, write: false, unit: "kWh" } } }, // Lichtschalter (Bsp. 24) type_pswitch: { status_ex: { type: "state", common: { type: "boolean", role: "switch.power", name: { de: "Schalter", en: "Switch" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } } } }, pd: { type: "state", common: { type: "number", role: "level", name: { en: "Minutes to get off again", de: "Aus in x Minuten" }, read: true, write: true, min: 0, max: 180, def: 0 } }, always_off: { type: "state", common: { type: "number", role: "value", name: { en: "Switch/Push button", de: "Schalter/Taster" }, read: true, write: true, states: { en: { 0: "Switch", 1: "Push button" }, de: { 0: "Schalter", 1: "Taster" } } } } }, // Dimmer , Unterputzrelais type_dimmer: { status_ex: { type: "state", common: { type: "boolean", role: "switch.power", name: { de: "Schalter", en: "Switch" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } } } }, level: { type: "state", common: { type: "number", role: "level.dimmer", name: { en: "Brightness", de: "Helligkeit" }, read: true, write: true, min: -1, max: 100, step: 1, unit: "%" } }, always_off: { type: "state", common: { type: "number", role: "value", name: { en: "Switch/Push button", de: "Schalter/Taster" }, read: true, write: true, states: { en: { 0: "Switch", 1: "Push button" }, de: { 0: "Schalter", 1: "Taster" } } } }, pd: { type: "state", common: { type: "number", role: "level", name: { en: "Minutes to get off again", de: "Aus in x Minuten" }, read: true, write: true, min: 0, max: 180, def: 0, unit: "" } } }, // Hue Lampe type_hue: { status_ex: { type: "state", common: { type: "boolean", role: "switch.power", name: { de: "Schalter", en: "Switch" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } } } }, /* mod: { type: 'state', common: { type: 'number', role: 'level', name: 'Modus', read: true, write: true, def: 2 } }, */ hue: { type: "state", common: { type: "number", role: "level.color.hue", name: "Hue", read: true, write: true, min: 0, max: 360, step: 1, unit: "\xB0" } }, sat: { type: "state", common: { type: "number", role: "level.color.saturation", name: "Saturation", read: true, write: true, min: 0, max: 100, step: 1, unit: "%" } }, hue_cmode: { type: "state", common: { type: "number", role: "value", name: { en: "Modus", de: "Modus" }, read: true, write: false, states: { en: { 0: "Color", 2: "Temperature" }, de: { 0: "Farbe", 2: "Temperatur" } }, min: 0, max: 2 } }, ctempk: { type: "state", common: { type: "number", role: "level.color.temperature", name: { en: "Temperature K", de: "Temperatur K" }, read: true, write: true, min: 2200, max: 6500, step: 1, unit: "K" } }, ctemp: { type: "state", common: { type: "number", role: "level.color.temperature", name: { en: "Temperature", de: "Temperatur" }, read: true, write: true, min: 169, max: 500, step: 1 } }, level: { type: "state", common: { type: "number", role: "level.dimmer", name: { en: "Brightness", de: "Helligkeit" }, read: true, write: true, min: -1, max: 100, step: 1, unit: "%" } } }, // Türkontakt type_contact: { status_ex: { type: "state", common: { type: "boolean", role: "sensor.door", name: "Status", read: true, write: false } }, status: { type: "state", common: { type: "string", role: "text", name: "Status", read: true, write: false } }, alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push notification", read: true, write: true, def: "" } }, schar_latch_rpt: { type: "state", common: { type: "number", role: "value", name: { en: "Send SIA/Contact-ID Msg.", de: "SIA/Contact-ID Nachricht" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } }, min: 0, max: 1, def: 0 } } }, // Type shock sensor type_shock_sensor: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push notification", read: true, write: true, def: "" } } }, // Bewegungsmelder type_motion: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm.secure", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm.secure", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push notification", read: true, write: true, def: "" } } }, // Glasbruch type_sensor_glas: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Rauchmelder type_sensor_fire: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm.fire", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm.fire", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push notification", read: true, write: true, def: "" } } }, // Hitzemelder type_heatdetector: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm.fire", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm.fire", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Wassermelder type_sensor_water: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm.flood", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm.flood", name: "Alarm Status", read: true, write: false } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Panic button type_panic_button: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, sresp_emergency: { type: "state", common: { type: "number", role: "value", name: { en: "Emergency Button", de: "Notfall Knopf" }, read: true, write: true, states: { en: { ...doorbellevent_en, ...alarm_events_en, ...sensor_events_en, ...szene_events_en }, de: { ...doorbellevent_de, ...alarm_events_de, ...sensor_events_de, ...szene_events_de } } } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push notification", read: true, write: true, def: "" } } }, // Rolläden type_shutter: { level: { type: "state", common: { type: "number", role: "level", name: { en: "Shutter", de: "Rollladenh\xF6he" }, read: true, write: true, min: -1, max: 100, step: 1, unit: "%" } }, shutter_up: { type: "state", common: { type: "boolean", role: "button", name: { en: "Shutter up", de: "Rollladen hochhfahren" }, read: true, write: true, def: true } }, shutter_down: { type: "state", common: { type: "boolean", role: "button", name: { en: "Shutter down", de: "Rollladen herunterfahren" }, read: true, write: true, def: true } }, shutter_stop: { type: "state", common: { type: "boolean", role: "button", name: { en: "Shutter stop", de: "Rollladen stoppen" }, read: true, write: true, def: true } }, on_time: { type: "state", common: { type: "number", role: "level.timer", name: { en: "Time to get up", de: "Zeitraum um ganz hochzufahren" }, read: true, write: true, min: -1, max: 240, step: 0.1, def: 0, unit: "sec" } }, off_time: { type: "state", common: { type: "number", role: "level.timer", name: { en: "Time to get down", de: "Zeitraum um ganz runterzufahren" }, read: true, write: true, min: -1, max: 240, step: 0.1, def: 0, unit: "sec" } }, shutter_turn: { type: "state", common: { type: "boolean", role: "value", name: { en: "Turning the slats", de: "Drehen der Lamellen" }, read: true, write: true, def: false } }, turn_time: { type: "state", common: { type: "number", role: "value", name: { en: "Time to turn the slats", de: "Zeit zum drehen der Lamellen" }, read: true, write: true, step: 1, def: 0, unit: "ms" } } }, // Raumsensor / Thermostat Type 20 type_raumsensor20: { actual_temperature: { type: "state", common: { type: "number", role: "value.temperature", name: { en: "Actual temperature", de: "Aktuelle Temperatur" }, read: true, write: false, min: -100, max: 100, unit: "\xB0C" } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Raumsensor / Thermostat Type 54 type_raumsensor54: { actual_temperature: { type: "state", common: { type: "number", role: "value.temperature", name: { en: "Actual temperature", de: "Aktuelle Temperatur" }, read: true, write: false, min: -100, max: 100, unit: "\xB0C" } }, actual_humidity: { type: "state", common: { type: "number", role: "value.humidity", name: { en: "Humidity", de: "Luftfeuchtigkeit" }, read: true, write: false, min: 0, max: 100, unit: "%" } }, actual_wind_angle: { type: "state", common: { type: "number", role: "value", name: { en: "Wind angle", de: "Windrichtung" }, read: true, write: false, min: 0, max: 360, unit: "\xB0" } }, actual_wind_strength: { type: "state", common: { type: "number", role: "value.speed", name: { en: "Wind strength", de: "Windgeschwindigkeit" }, read: true, write: false, min: 0, max: 1e3, unit: "km/h" } }, actual_gust_strength: { type: "state", common: { type: "number", role: "value.speed", name: { en: "Wind gust", de: "Windb\xF6hen" }, read: true, write: false, min: 0, max: 1e3, unit: "km/h" } }, actual_air_pressure: { type: "state", common: { type: "number", role: "value.pressure", name: { en: "Air pressure", de: "Luftdruck" }, read: true, write: false, min: -2e3, max: 2e3, unit: "mbar" } }, actual_noise: { type: "state", common: { type: "number", role: "value", name: { en: "Noise", de: "Lautst\xE4rke" }, read: true, write: false, min: 0, max: 1e3, unit: "db" } }, actual_co2: { type: "state", common: { type: "number", role: "value.co2", name: { en: "CO2 content", de: "CO2 Gehalt" }, read: true, write: false, min: 0, max: 1e4, unit: "ppm" } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Lichtsensor type_lightsensor: { actual_lux: { type: "state", common: { type: "number", role: "value.brightness", name: { en: "Lux level", de: "Lux Helligkeitsniveau" }, read: true, write: false, min: 0, max: 20 } }, actual_temperature: { type: "state", common: { type: "number", role: "value.temperature", name: { en: "Actual temperature", de: "Aktuelle Temperatur" }, read: true, write: false, min: -100, max: 100, unit: "\xB0C" } }, actual_humidity: { type: "state", common: { type: "number", role: "value.humidity", name: { en: "Humidity", de: "Luftfeuchtigkeit" }, read: true, write: false, min: 0, max: 100, unit: "%" } }, send_notify: { type: "state", common: { type: "string", role: "text", name: "Push Nachricht", read: true, write: true, def: "" } } }, // Thermostat type_thermostat: { set_temperature: { type: "state", common: { type: "number", role: "level.temperature", name: { en: "Set temperature", de: "Soll Temperatur" }, read: true, write: true, min: -30, max: 30, step: 0.5, unit: "\xB0C" } }, thermo_offset: { type: "state", common: { type: "number", role: "level.temperature", name: { en: "Offset temperature", de: "Abweichende Temperatur" }, read: true, write: true, min: -2.5, max: 2.5, step: 0.5, unit: "\xB0C" } }, actual_temperature: { type: "state", common: { type: "number", role: "value.temperature", name: { en: "Actual temperatur", de: "Aktuelle Temperatur" }, read: true, write: false, min: -100, max: 100, unit: "\xB0C" } }, mode: { type: "state", common: { type: "number", role: "switch", name: { en: "Control", de: "Zeitsteuerung" }, read: true, write: true, states: { en: { 0: "manuell", 1: "automatic" }, de: { 0: "Manuell", 1: "Automatisch" } }, min: 0, max: 1 } }, valve: { type: "state", common: { type: "number", role: "value.valve", name: { en: "Valve", de: "Ventil\xF6ffnung" }, read: true, write: false, min: 0, max: 100, unit: "%" } }, off: { type: "state", common: { type: "boolean", role: "switch", name: { en: "Off/On", de: "Aus/An" }, read: true, write: true, states: { en: { false: "off", true: "on" }, de: { false: "Aus", true: "An" } } } } }, // Nichts gefunden type_unknown: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, status: { type: "state", common: { type: "string", role: "text", name: "Status", read: true, write: false } }, status_ex: { type: "state", common: { type: "string", role: "text", name: "Status", read: true, write: false } } }, // Innensirene / Statusanzeige type_statusanzeige: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } } }, // Repeater type_repeater: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } } }, // CO sensor type_sensor_co: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } } }, // Smart Switch type_smart_switch: { alarm_status_ex: { type: "state", common: { type: "boolean", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, alarm_status: { type: "state", common: { type: "string", role: "sensor.alarm", name: "Alarm Status", read: true, write: false } }, sresp_button_1: { type: "state", common: { type: "number", role: "value", name: { en: "Button 1", de: "Taster 1" }, read: true, write: true, states: { en: { ...button_events_en }, de: { ...button_events_de } } } }, sresp_button_2: { type: "state", common: { type: "number", role: "value", name: { en: "Button 2", de: "Taster 2" }, read: true, write: true, states: { en: { ...button_events_en }, de: { ...button_events_de } } } }, sresp_button_3: { type: "state", common: { type: "number", role: "value", name: { en: "Button 3", de: "Taster 3" }, read: true, write: true, states: { en: { ...button_events_en }, de: { ...button_events_de } } } }, sresp_button_4: { type: "state", common: { type: "number", role: "value", name: { en: "Button 4", de: "Taster 4" }, read: true, write: true, states: { en: { ...button_events_en }, de: { ...button_events_de } } } } }, // Universal IR Fernbedienung type_ir_remotecontrol: { appliance_1: { type: "channel", common: { name: "%value%" } }, appliance_2: { type: "channel", common: { name: "%value%" } }, appliance_3: { type: "channel", common: { name: "%value%" } }, appliance_4: { type: "channel", common: { name: "%value%" } }, appliance_5: { type: "channel", common: { name: "%value%" } }, leds: { type: "state", common: { type: "boolean", role: "button", name: { en: "LEDs", de: "LEDs" }, read: true, write: true, def: false } }, "appliance_1.mode_name_17": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_18": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_19": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_20": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_21": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_22": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_23": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_1.mode_name_24": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_33": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_34": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_35": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_36": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_37": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_38": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_39": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_2.mode_name_40": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_3.mode_name_49": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_3.mode_name_50": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_3.mode_name_51": { type: "state", common: { type: "boolean", role: "button", name: "%value%", read: true, write: true, def: false } }, "appliance_3.mode_name_52": {