Hauptmenü

HTTPMOD - Plain Text

Begonnen von petitpunch, 15 September 2022, 15:30:34

Vorheriges Thema - Nächstes Thema

petitpunch

Hello I'm stuck with a HTTPMOD and simple plain text url.

here is the url contain :


/FLU5\253769484_A

0-0:96.1.4(50216)
0-0:96.1.1(3153414733313030343137313231)
0-0:1.0.0(220915111917S)
1-0:1.8.1(001400.940*kWh)
1-0:1.8.2(002488.051*kWh)
1-0:2.8.1(000209.419*kWh)
1-0:2.8.2(000103.095*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.323*kW)
1-0:2.7.0(00.000*kW)
1-0:21.7.0(00.000*kW)
1-0:41.7.0(00.000*kW)
1-0:61.7.0(00.375*kW)
1-0:22.7.0(00.052*kW)
1-0:42.7.0(00.000*kW)
1-0:62.7.0(00.000*kW)
1-0:32.7.0(234.6*V)
1-0:52.7.0(000.0*V)
1-0:72.7.0(233.4*V)
1-0:31.7.0(004.47*A)
1-0:51.7.0(002.18*A)
1-0:71.7.0(003.09*A)
0-0:96.3.10(1)
0-0:17.0.0(999.9*kW)
1-0:31.4.0(999*A)
0-0:96.13.0()
!248F


This is generated by P1Meter from HomeWizard plugged on siconia T211.

I'm not able to get value of 1-0:32.7.0.

I have tried many RegEx but always no result.

Someone could help me with code ?


define P1METERVOLT HTTPMOD http://192.168.1.138/api/v1/telegram 60
setuuid P1METERVOLT 63231c3c-f33f-266d-baab-25454fd9dbb61d4c
attr P1METERVOLT enableControlSet 1
attr P1METERVOLT enableCookies 1
attr P1METERVOLT enforceGoodReadingNames 1
attr P1METERVOLT handleRedirects 1
attr P1METERVOLT reading01Name Voltage1
#attr P1METERVOLT reading01Regex 1\-0\:32\.7\.0\([0-9]
attr P1METERVOLT reading01Regex 1-0:32\.7\.0\([0-9]*\.[0-9]+\*V\)
attr P1METERVOLT room ENERGIE
attr P1METERVOLT stateFormat Voltage1
define FileLog_P1METERVOLT FileLog ./log/P1METERVOLT-%Y.log P1METERVOLT
setuuid FileLog_P1METERVOLT 63231c3c-f33f-266d-5718-b73595013ad8c6db
attr FileLog_P1METERVOLT logtype text
attr FileLog_P1METERVOLT room ENERGIE


this is the voltage of the phase in real time. I would like to monitoring this.

thank you so so much !

betateilchen

attr P1METERVOLT reading01Regex 1-0:32.7.0\((\d+\.\d)
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

petitpunch

@betateilchen, 

a very BIG thank you !

it's working really great.

You save me  ;)