Hi,
I’ve got from a daemon this output (var StatusOutput):
********************************
* *
* S.USV pi solutions *
* www.s-usv.de *
* *
* Model: Basic *
* Firmware Version: 2.32 *
* Software Version: 2.20 *
* *
* Mail notification: Disabled *
* *
* Timed Boot: Disabled *
* Boot time: 00:00:00 *
* *
* Timed Shutdown: Disabled *
* Shutdown time: 00:00:00 *
* *
* Mon Jul 31 14:39:06 2017 *
* *
********************************
* *
* Powering Source: Primary *
* Charging circuit: ONLINE *
* Charging current: 300 mA *
* *
* Voltage in: 5.00 V *
* Battery capacity: 71.39% *
* Battery voltage: 4.03V *
* Power Battery: 000.00 mA *
* Power Extern: n/a *
* *
* Shutdown timer: -1 *
* Autostart: enabled *
* Sleep timer: 1 *
* *
********************************
Now In wan’t to build a rule. The rule should post some values to openhab2, e.g. PoweringSource, MainVoltage etc.
Which REGEX I should use to get these values? I got much errors ;(
var float MainVoltage = transform("REGEX", "* Voltage in:((?:\d*\.)?\d+)V", StatusOutput)
Or exists a binding for SUSV for PI?
thx
Heiko