FHEM helper modul
Expand a JSON string from a reading into individual readings
define expandJSON
[]
device:reading:.{.}
.
WifiIOT.:sensor.:.{.}
sonoff_.
:.:.{.}
dev.:(sensor1|sensor2|teleme.):.{.}
(dev.
|[Dd]evice.):json:.{.}
(devX:jsonX:.{.}|devY.:jsonY:.{.Wifi.{.SSID.}.})
.
power.
(Current|Voltage|Wifi.
)
define ej1 expandJSON device:sourceReading:.{.} targetReading
define ej3 expandJSON .
.SEN..:.:.{.}
define ej3 expandJSON sonoff_.
:sensor.:.{.} (power.*|current|voltage)
Set
Get
Attributes
<li><b>disable</b><br>
Used to disable this device.
</li><br>
<li><b>do_not_notify</b><br>
Do not generate events for converted readings at all. Think twice before
using this attribute. In most cases, it is more appropriate to use
event-on-change-reading in target devices.
</li><br>
<li><b>disabledForIntervals</b></li>
<li><b>addStateEvent</b></li>