diff --git a/EXAMPLES.md b/EXAMPLES.md deleted file mode 100644 index 68098e28..00000000 --- a/EXAMPLES.md +++ /dev/null @@ -1,290 +0,0 @@ -### Homematic Schaltaktor -``` -{ - "name": "light", - "status": { - "bar": ["state:on:100:success","state:off:0:success"], - "error": [] - }, - "main": [ - { - "leftIcon": "mdi-power-off", - "leftClick": ["state::off"], - "text": ["state:on:an","state:off:aus","state::%s"], - "rightIcon": "mdi-power-on", - "rightClick": ["state::on"] - } - ], - "info": { - "left1": ["state:on::mdi-lightbulb","state:off::mdi-lightbulb-off"] - } -} -``` -### Homematic Schaltaktor mit Leistungsmessung (optional als Funkzwischenstecker) -``` -{ - "name": "switch", - "status": { - "bar": ["state:on:100:success","state:off:0:success"], - "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] - }, - "main": [ - { - "leftIcon": "mdi-power-off", - "leftClick": ["state::off"], - "text": ["state:on:an","state:off:aus","state::%s"], - "rightIcon": "mdi-power-on", - "rightClick": ["state::on"] - } - ], - "info": { - "left1": ["state:on::mdi-power-plug","state:off::mdi-power-plug-off"], - "left2": ["power:0.1:%n.2w"], - "right2": ["Connected.receiver.Readings.Activity.Value:alive::mdi-wifi","Connected.receiver.Readings.Activity.Value:::mdi-wifi-off"] - } -} -``` -### Shelly Schaltaktor -``` -{ - "name": "shellySwitch", - "status": { - "bar": ["state:on:100:success","state:off:0:success"], - "error": ["network:^(?!connected):100:error:keine Verbindung"] - }, - "main": [ - { - "leftIcon": "mdi-power-off", - "leftClick": ["state::off"], - "leftLong": [], - "leftLongRelease": [], - "text": ["state:on:an","state:off:aus"], - "rightIcon": "mdi-power-on", - "rightClick": ["state::on"], - "rightLong": [], - "rightLongRelease": [] - } - ], - "info": { - "left1": ["state:on::mdi-power-plug","state:::mdi-power-plug-off"], - "left2": ["power:0.1:%n.2w"], - "mid1": [], - "mid2": [], - "right1": [], - "right2": ["network:connected::mdi-wifi","network:::mdi-wifi-off"] - } -} -``` -### Homematic Dimmer -``` -{ - "name": "dimmer", - "status": { - "bar": ["pct::%n:success"], - "error": [] - }, - "main": [ - { - "leftIcon": "mdi-minus", - "leftClick": ["pct:100:pct 75","pct:75:pct 50","pct:50:pct 25","pct:25:off"], - "leftLong": ["state::off"], - "text": ["pct:1:an:","pct::aus"], - "rightIcon": "mdi-plus", - "rightClick": ["pct:75:on","pct:50:pct 75","pct:25:pct 50","pct:0:pct 25"], - "rightLong": ["state::on"] - } - ], - "info": { - "left1": ["pct:1::mdi-lightbulb","pct:::mdi-lightbulb-off"], - "left2": ["pct::%s%"] - } -} -``` -### Homematic Jalousieaktor -``` -{ - "name": "shutter", - "status": { - "bar": ["pct::%n:success:invert"], - "error": [] - }, - "main": [ - { - "leftIcon": "mdi-chevron-down", - "leftClick": ["motor:stop:off","motor::stop"], - "leftLong": ["motor::off"], - "leftLongRelease": ["motor::stop"], - "text": ["motor:up:öffnet...","motor:down:schließt...","pct:1:offen","pct::geschlossen"], - "rightIcon": "mdi-chevron-up", - "rightClick": ["motor:stop:on","motor::stop"], - "rightLong": ["motor::on"], - "rightLongRelease": ["motor::stop"] - } - ], - "info": { - "left1": ["motor:up::mdi-window-shutter-alert","motor:down::mdi-window-shutter-alert","pct:1::mdi-window-shutter-open","pct:::mdi-window-shutter"], - "left2": ["pct::%s%"] - } -} -``` -### Homemativ Tür-/Fensterkontakt -``` -{ - "name": "contact", - "status": { - "bar": ["state:closed:100:success","state:open:0:success"], - "error": ["Activity:^(?!alive):100:error:keine Verbindung","sabotageError:on:100:error:Fremdeingriff","cover:open:100:error:Fremdeingriff"] - }, - "main": [ - { - "text": ["state:closed:geschlossen","state:open:offen","state::%s"] - } - ], - "info": { - "left1": ["state:closed::mdi-door","state:open::mdi-door-open"], - "mid1": ["Readings.trigger_cnt.Time::%t"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` -### Homematic Bewegungsmelder -``` -{ - "name": "motiondetect", - "status": { - "bar": ["motion:off:0:success","motion::100:success"], - "error": ["Activity:^(?!alive):100:error:keine Verbindung","sabotageError:on:100:error:Fremdeingriff","cover:open:100:error:Fremdeingriff"] - }, - "main": [ - { - "text": ["motion:off:bereit","motion::Bewegung erkannt"] - } - ], - "info": { - "left1": ["motion:off::mdi-motion-sensor-off","motion:::mdi-motion-sensor"], - "mid1": ["Readings.trigger_cnt.Time::%t"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` -### Homematic Rauchmelder -``` -{ - "name": "smokedetect", - "status": { - "bar": ["level:2:%n:error","level::100:success"], - "error": ["Activity:^(?!alive):100:error:keine Verbindung"] - }, - "main": [ - { - "text": ["level:2:Alarm","level::bereit"], - "rightIcon": "mdi-bell-off-outline", - "rightClick": ["peerList:self01:alarmOff","peerList::set %s alarmOff"] - } - ], - "info": { - "left1": ["level:2::mdi-fire","level:::mdi-smoke-detector"], - "mid1": ["Readings.trigger_cnt.Time::%t"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` -### Homematic Thermostat in Verbindung mit Fußbodenheizung -``` -{ - "name": "thermostat", - "status": { - "bar": ["Connected.valve.Readings.pct.Value::%n:success"], - "error": ["Connected.receiver.Readings.Activity.Value:^(?!alive):100:error:keine Verbindung"] - }, - "main": [ - { - "leftIcon": "mdi-minus", - "leftClick": ["desired-temp:17.5:desired-temp %i-0.5","desired-temp::"], - "leftLong": ["R-nightTemp::desired-temp %n.1"], - "text": ["desired-temp::%n.1°C"], - "rightIcon": "mdi-plus", - "rightClick": ["desired-temp:25:","desired-temp::desired-temp %i0.5"], - "rightLong": ["R-dayTemp::desired-temp %n.1"] - } - ], - "info": { - "left1": ["tempState:day::mdi-weather-sunny","tempState:night::mdi-weather-night"], - "left2": ["controlMode:auto::mdi-clock-time-four-outline"], - "mid1": ["measured-temp::%n.1°C:mdi-thermometer"], - "mid2": ["humidity::%n%:mdi-water"], - "right1": ["Connected.receiver.Readings.battery.Value:ok::mdi-battery","Connected.receiver.Readings.battery.Value:::mdi-battery-10"], - "right2": ["Connected.receiver.Readings.Activity.Value:alive::mdi-wifi","Connected.receiver.Readings.Activity.Value:::mdi-wifi-off"] - } -} -``` -### Homematic Thermometer -``` -{ - "name": "thermometer", - "status": { - "bar": [], - "error": ["Activity:^(?!alive):100:error:keine Verbindung"] - }, - "main": [ - { - "text": ["temperature::%n.1°C"], - "text2": ["humidity::%n%"] - } - ], - "info": { - "left1": ["temperature:0::mdi-thermometer","temperature:::mdi-snowflake"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` -### Homematic Wassersensor für Zisterne -``` -{ - "name": "watersensor", - "status": { - "bar": ["level::%n:success"], - "error": ["Activity:^(?!alive):100:error:keine Verbindung"] - }, - "main": [ - { - "text": ["liter::%n Liter"] - }, - { - "text": ["level::%n %"] - } - ], - "info": { - "left1": ["level:5::mdi-water","level:::mdi-water-off"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` -### Homematic Garagentoröffner (Schaltaktor) in Verbidnung mit Tor-kontakt (neigungsabhängig) -``` -{ - "name": "door", - "status": { - "bar": ["state:closed:100:success","state:open:0:success"], - "error": ["Activity:^(?!alive):100:error:keine Verbindung","sabotageError:on:100:error:Fremdeingriff","cover:open:100:error:Fremdeingriff"] - }, - "main": [ - { - "text": ["state:closed:geschlossen","state:open:offen","state::%s"], - "rightIcon": "mdi-unfold-more-horizontal", - "rightClick": ["Connected.button.Internals.NAME::set %s on-for-timer 0.4"] - } - ], - "info": { - "left1": ["state:closed::mdi-garage-variant","state:open::mdi-garage-open-variant"], - "mid1": ["Readings.trigger_cnt.Time::%t"], - "right1": ["battery:ok::mdi-battery","battery:::mdi-battery-10"], - "right2": ["Activity:alive::mdi-wifi","Activity:::mdi-wifi-off"] - } -} -``` diff --git a/README.md b/README.md index 4c83beaf..522bba9b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Wenn ihr in **FHEMApp** Daten aus FHEM-Logs in Charts darstellt, ist es ggf. sin ``` ### Anzeigeeinstellungen für FHEMApp (optional) -Wenn ihr in **FHEMApp** bei der mobilen Ansicht (1-spaltiges Layout) im Header sehen wollt, in welcher Bereich bzw. in welche Gruppe euch gerade befindet, dann könnt ihr unter Options den Parameter `mobileHeader` setzen. Ebenfalls in der mobilen Ansicht könnt ihr über den Parameter `homeBtn` einen Home-Button auf der rechten Seite im Header einblenden. Weiterhin könnt ihr über den Parameter `reloadBtn` einen Button für einen kompletten Browser-Refresh im Header aktivieren. +Wenn ihr in **FHEMApp** bei der mobilen Ansicht (1-spaltiges Layout) im Header sehen wollt, in welcher Bereich bzw. in welche Gruppe euch gerade befindet, dann könnt ihr unter Options den Parameter `mobileHeader` setzen. Ebenfalls in der mobilen Ansicht könnt ihr über den Parameter `homeBtn` einen Home-Button auf der rechten Seite im Header einblenden. Weiterhin könnt ihr über den Parameter `reloadBtn` einen Button für einen kompletten Browser-Refresh im Header aktivieren. ``` "options": { "mobileHeader": true, @@ -237,7 +237,7 @@ Beispiele: - **%i1** - erhöht (%i1.5) bzw. verringert (%i-1.5) das *Reading* um den Wert. Hierfür muss das *Reading* Zahlenwerte enthalten. - **%t** - liefert das *Reading* als Zeitstempel im Format TT.MM.JJJJ hh:mm:ss zurück - **%v** - ausschließlich in Verbindung mit dem Element *slider* notwendig. -- **:** - HTML-entity wenn ein Doppelpunkt ausgegeben werden soll +- **\:** - HTML-entity wenn ein Doppelpunkt ausgegeben werden soll ## verfügbare Elemente |Bereich|Element|Zuweisung|Beschreibung|