ich häng euch mal die rule usw. an
Code: Alles auswählen
1
var Bewegung, Battery, _Adresse, Lux, Zustand;
Bewegung = actions.Transformation.transform('JSONPATH', '$.motion', items.getItem('Generic_MQTT_Thing_BLE_String').state);
Battery = actions.Transformation.transform('JSONPATH', '$.battery', items.getItem('Generic_MQTT_Thing_BLE_String').state);
console.info(Battery);
_Adresse = actions.Transformation.transform('JSONPATH', '$.addr', items.getItem('Generic_MQTT_Thing_BLE_String').state);
Lux = actions.Transformation.transform('JSONPATH', '$.lux', items.getItem('Generic_MQTT_Thing_BLE_String').state);
Zustand = actions.Transformation.transform('JSONPATH', '$.state', items.getItem('Generic_MQTT_Thing_BLE_String').state);
if (_Adresse == 'b0:c7:de:7d:e8:16') {
items.getItem('Lux_Bewegunsmelder1').sendCommand(Lux);
items.getItem('Battery_BWM_Kitchen').sendCommand(Battery);
items.getItem('Generic_MQTT_Thing_Test_bewegung_2').sendCommand(Bewegung);
}
if (_Adresse == '3c:2e:f5:bd:27:75') {
items.getItem('Lux_Balkontuer').sendCommand(Lux);
items.getItem('Battery_DW_1').sendCommand(Battery);
items.getItem('Zustand_DW_1').sendCommand(Zustand);
}
Code: Alles auswählen
label: Lux Balkontür
type: Number:Illuminance
category: ""
groupNames:
- Wohnzimmer_Haupt
tags:
- Point
und der auszug aus der sitemap
Code: Alles auswählen
Frame label="Fenster" {
Switch item=Zustand_DW_1 mappings=["OFF "=" Zu", "On "=" Offen"]
Text item=Lux_Balkontuer
Text item=Battery_DW_1
Gesendet von iPad mit Tapatalk