ollys
(Oliver)
August 17, 2020, 2:27pm
1
Hallo,
i finally installed my circutor smartmeter 3-phase and i found online a documentation of a integration in “home-assistant”.
Hello, Update Code is now stored in github: I have been able to integrate following device in my home assistant configuration as custom sensor. http://wibeee.circutor.com/index_en.html Can anyone guide me how to share it so oder users can...
Reading time: 26 mins 🕑
Likes: 34 ❤
locally the wibeee is reachable via
http://IP-Wibee/en/status.xml
and the result is a xml archive:
"
WTD
4.4.104
1597669497
<fase1_vrms>223.84</fase1_vrms>
<fase1_irms>4.64</fase1_irms>
<fase1_p_aparent>1038.11</fase1_p_aparent>
<fase1_p_activa>1027.37</fase1_p_activa>
<fase1_p_reactiva_ind>0.00</fase1_p_reactiva_ind>
<fase1_p_reactiva_cap>129.68</fase1_p_reactiva_cap>
<fase1_frecuencia>50.08</fase1_frecuencia>
<fase1_factor_potencia>-0.990</fase1_factor_potencia>
<fase1_energia_activa>826</fase1_energia_activa>
<fase1_energia_reactiva_ind>90</fase1_energia_reactiva_ind>
<fase1_energia_reactiva_cap>176</fase1_energia_reactiva_cap>
<fase1_angle>0.00</fase1_angle>
<fase1_thd_total> </fase1_thd_total>
<fase1_thd_fund> </fase1_thd_fund>
<fase1_thd_ar3> </fase1_thd_ar3>
<fase1_thd_ar5> </fase1_thd_ar5>
<fase1_thd_ar7> </fase1_thd_ar7>
<fase1_thd_ar9> </fase1_thd_ar9>
<fase1_thd_tot_V> </fase1_thd_tot_V>
<fase1_thd_fun_V> </fase1_thd_fun_V>
<fase1_thd_ar3_V> </fase1_thd_ar3_V>
<fase1_thd_ar5_V> </fase1_thd_ar5_V>
<fase1_thd_ar7_V> </fase1_thd_ar7_V>
<fase1_thd_ar9_V> </fase1_thd_ar9_V>
<fase2_vrms>231.77</fase2_vrms>
<fase2_irms>4.72</fase2_irms>
<fase2_p_aparent>1093.00</fase2_p_aparent>
<fase2_p_activa>989.66</fase2_p_activa>
<fase2_p_reactiva_ind>450.71</fase2_p_reactiva_ind>
<fase2_p_reactiva_cap>0.00</fase2_p_reactiva_cap>
<fase2_frecuencia>50.00</fase2_frecuencia>
<fase2_factor_potencia>-0.905</fase2_factor_potencia>
<fase2_energia_activa>1072</fase2_energia_activa>
<fase2_energia_reactiva_ind>345</fase2_energia_reactiva_ind>
<fase2_energia_reactiva_cap>28</fase2_energia_reactiva_cap>
<fase2_angle>132.00</fase2_angle>
<fase2_thd_total> </fase2_thd_total>
<fase2_thd_fund> </fase2_thd_fund>
<fase2_thd_ar3> </fase2_thd_ar3>
<fase2_thd_ar5> </fase2_thd_ar5>
<fase2_thd_ar7> </fase2_thd_ar7>
<fase2_thd_ar9> </fase2_thd_ar9>
<fase2_thd_tot_V> </fase2_thd_tot_V>
<fase2_thd_fun_V> </fase2_thd_fun_V>
<fase2_thd_ar3_V> </fase2_thd_ar3_V>
<fase2_thd_ar5_V> </fase2_thd_ar5_V>
<fase2_thd_ar7_V> </fase2_thd_ar7_V>
<fase2_thd_ar9_V> </fase2_thd_ar9_V>
<fase3_vrms>225.73</fase3_vrms>
<fase3_irms>6.48</fase3_irms>
<fase3_p_aparent>1463.81</fase3_p_aparent>
<fase3_p_activa>1385.44</fase3_p_activa>
<fase3_p_reactiva_ind>0.00</fase3_p_reactiva_ind>
<fase3_p_reactiva_cap>464.64</fase3_p_reactiva_cap>
<fase3_frecuencia>50.00</fase3_frecuencia>
<fase3_factor_potencia>0.946</fase3_factor_potencia>
<fase3_energia_activa>1189</fase3_energia_activa>
<fase3_energia_reactiva_ind>5</fase3_energia_reactiva_ind>
<fase3_energia_reactiva_cap>389</fase3_energia_reactiva_cap>
<fase3_angle>238.70</fase3_angle>
<fase3_thd_total> </fase3_thd_total>
<fase3_thd_fund> </fase3_thd_fund>
<fase3_thd_ar3> </fase3_thd_ar3>
<fase3_thd_ar5> </fase3_thd_ar5>
<fase3_thd_ar7> </fase3_thd_ar7>
<fase3_thd_ar9> </fase3_thd_ar9>
<fase3_thd_tot_V> </fase3_thd_tot_V>
<fase3_thd_fun_V> </fase3_thd_fun_V>
<fase3_thd_ar3_V> </fase3_thd_ar3_V>
<fase3_thd_ar5_V> </fase3_thd_ar5_V>
<fase3_thd_ar7_V> </fase3_thd_ar7_V>
<fase3_thd_ar9_V> </fase3_thd_ar9_V>
<fase4_vrms>227.13</fase4_vrms>
<fase4_irms>15.90</fase4_irms>
<fase4_p_aparent>3609.40</fase4_p_aparent>
<fase4_p_activa>643.98</fase4_p_activa>
<fase4_p_reactiva_ind>790.15</fase4_p_reactiva_ind>
<fase4_p_reactiva_cap>0.00</fase4_p_reactiva_cap>
<fase4_frecuencia>50.03</fase4_frecuencia>
<fase4_factor_potencia>-0.178</fase4_factor_potencia>
<fase4_energia_activa>3089</fase4_energia_activa>
<fase4_energia_reactiva_ind>442</fase4_energia_reactiva_ind>
<fase4_energia_reactiva_cap>594</fase4_energia_reactiva_cap>
65
-
0.00
It should not be so dificult to integrate in openhab for someone who nows programming and the openhab addon structre …
I have to start at 0… maybe someone can help me , has some examples or whatever…
looking forward to the feedback,
saludos,
Oliver
This forum is English only.
German forum is here.
German openHAB - KNX-User-Forum
ollys
(Oliver)
August 17, 2020, 2:32pm
3
sorry, but i was fast in edditing
1 Like
Celaeno1
(Alex)
August 17, 2020, 8:20pm
5
@ollys
You could use the http1 binding and XPath transformation .
Example:
XML output of Wibeee:
<response>
<fase1_vrms>240.71</fase1_vrms>
<fase1_irms>0.87</fase1_irms>
<fase1_p_aparent>208.51</fase1_p_aparent>
<fase1_p_activa>13.09</fase1_p_activa>
<fase1_p_reactiva_ind>199.32</fase1_p_reactiva_ind>
<fase1_p_reactiva_cap>0.00</fase1_p_reactiva_cap>
<fase1_frecuencia>50.02</fase1_frecuencia>
<fase1_factor_potencia>-0.063</fase1_factor_potencia>
<fase1_energia_activa>79095.77</fase1_energia_activa>
<fase1_energia_reactiva_ind>211765.70</fase1_energia_reactiva_ind>
<fase1_energia_reactiva_cap>41880.75</fase1_energia_reactiva_cap>
<fase2_vrms>241.04</fase2_vrms>
<fase2_irms>1.18</fase2_irms>
<fase2_p_aparent>283.87</fase2_p_aparent>
<fase2_p_activa>274.44</fase2_p_activa>
<fase2_p_reactiva_ind>0.00</fase2_p_reactiva_ind>
<fase2_p_reactiva_cap>0.00</fase2_p_reactiva_cap>
<fase2_frecuencia>50.00</fase2_frecuencia>
<fase2_factor_potencia>0.967</fase2_factor_potencia>
<fase2_energia_activa>758287.36</fase2_energia_activa>
<fase2_energia_reactiva_ind>35490.79</fase2_energia_reactiva_ind>
<fase2_energia_reactiva_cap>20987.15</fase2_energia_reactiva_cap>
<fase3_vrms>240.25</fase3_vrms>
<fase3_irms>0.57</fase3_irms>
<fase3_p_aparent>136.68</fase3_p_aparent>
<fase3_p_activa>75.79</fase3_p_activa>
<fase3_p_reactiva_ind>0.00</fase3_p_reactiva_ind>
<fase3_p_reactiva_cap>-99.08</fase3_p_reactiva_cap>
<fase3_frecuencia>50.02</fase3_frecuencia>
<fase3_factor_potencia>0.555</fase3_factor_potencia>
<fase3_energia_activa>127173.91</fase3_energia_activa>
<fase3_energia_reactiva_ind>1051.21</fase3_energia_reactiva_ind>
<fase3_energia_reactiva_cap>98411.14</fase3_energia_reactiva_cap>
<fase4_vrms>240.67</fase4_vrms>
<fase4_irms>0.87</fase4_irms>
<fase4_p_aparent>629.06</fase4_p_aparent>
<fase4_p_activa>337.15</fase4_p_activa>
<fase4_p_reactiva_ind>0.00</fase4_p_reactiva_ind>
<fase4_p_reactiva_cap>-298.40</fase4_p_reactiva_cap>
<fase4_frecuencia>50.02</fase4_frecuencia>
<fase4_factor_potencia>0.536</fase4_factor_potencia>
<fase4_energia_activa>964557.04</fase4_energia_activa>
<fase4_energia_reactiva_ind>248307.70</fase4_energia_reactiva_ind>
<fase4_energia_reactiva_cap>161279.04</fase4_energia_reactiva_cap>
</response>
.
.
e.g. XPATH would be: /response/fase1_vrms/number()
results in: 240.71
.
You can first test it here .
.
.
.items file example:
Number fase1_vrms "fase1 vrms [%.2f]" { http="<[http://wibeee-ip/en/status.xml:60000:XPATH(/response/fase1_vrms/number() )]" }
ollys
(Oliver)
August 17, 2020, 9:43pm
6
Hi Alex,
sounds great, thanks.
would be fine to make it also with a things-file like this:
Thing Wibeee
"Wibeee 3P"
[
wibeeehost="192.168.0.15",
phases=3
]
how to use this than in itemsfile?
only than wibeeehost there:
Number fase1_vrms "fase1 vrms [%.2f]" { http="<[http://wibeeehost/en/status.xml:60000:XPATH(/response/fase1_vrms/number() )]" }
And how to integrate the addon… only putting the files into the specific folder ?
thanks,
oliver
Celaeno1
(Alex)
August 18, 2020, 7:03am
7
.
http1 is an OH1 binding. There are no .things files possible.
But you can create a $OPENHAB_CONF/services/http.cfg file with cache items:
e.g.
wibeee.url=http://wibeee-ip/en/status.xml
wibeee.updateInterval=60000
the .items file then is:
Number fase1_vrms "fase1 vrms [%.2f]" { http="<[wibeee:XPATH(/response/fase1_vrms/number() )]" }
.
You can install http1 binding and XPath Transformation via PaperUI or $OPENHAB_CONF/services/addons.cfg file. See also here .
File locations you can find here. Linux , Windows
ollys
(Oliver)
August 18, 2020, 8:21am
8
Hi Alex,
i found it yesterday evening… didnt recognized that you mean the http binding…which is already a binding…
but i have another problem with openhab 2.5.1 running on a Qnap Nas - all working fine with sonos, knx, sma, vallox bindings etc…:
i cannot install the xpath transformation…
i get a familiar error: failed installing “openhab-transformation-xpath” : Unable to resolve root: missing requierement [root]
Any idea?
i found it in former versions as a bug… but on the qnap i cannot up or downgrade so easy… no idea…
Celaeno1
(Alex)
August 18, 2020, 8:40am
9
ollys:
Any idea?
No. It seems to be a permission problem. But I’m using Windows, not Linux. Can’t help you. Sorry.
ollys
(Oliver)
August 18, 2020, 2:58pm
10
Hi Again,
i installed a new version 2.5.7 within a new docker container…
everything fine, but i cannot get running the wibeee…
from
wibeee.url=http://wibeee-ip/en/status.xml
wibeee.updateInterval=60000
it makes than with
Number fase1_vrms "fase1 vrms [%.2f]" { http="<[wibeee:XPATH(/response/fase1_vrms/number() )]" }
the correct syntax ??
Number fase1_vrms "fase1 vrms [%.2f]" { http="<http://192.168.0.15/en/status.html:60000:XPATH(/response/fase1_vrms/number() )]" }
or is there something wrong in the syntax ?
Celaeno1
(Alex)
August 18, 2020, 3:03pm
11
yes. You forgott the first [ in your last items line… and it should be .xml instead of .html
Number fase1_vrms "fase1 vrms [%.2f]" { http="<[http://192.168.0.15/en/status.xml:60000:XPATH(/response/fase1_vrms/number() )]" }
.
.
EDIT: If above does not run you could also try (String/text):
String fase1_vrms "fase1 vrms [%s]" { http="<[http://192.168.0.15/en/status.xml:60000:XPATH(/response/fase1_vrms/text() )]" }
.
If you need Number e.g. for calculation or a graph, then you could convert String to Number using this example .
ollys
(Oliver)
August 19, 2020, 8:42am
12
Hi Alex,
with getting the text as string its working.
only the substitution of the url in my case:
wibeee.url=http://192.168.0.15/en/status.xml
wibeee.updateInterval=60000
is not working.
but i can live with it.
i have to check now which data i want to show so that i hae to convert it before…
thanks,
oliver
Celaeno1
(Alex)
August 19, 2020, 11:44am
13
.
I personally don’t use http1 cache items. I have this information from the official docs .
But maybe this helps:
String fase1_vrms "fase1 vrms [%s]" { http="<[http://wibeee:30000:XPATH(/response/fase1_vrms/text() )]" }
fapg
(Fernando Gomes)
May 22, 2021, 3:53pm
14
Hi,
I made this program to fetch the data and put it in mqtt:
Because http1 binding doesn’t exists in OH3.
Best Regards,
Fernando Gomes