Like I wrote, this is the order:
- install http and regex binding
- create a group (not sure why. It is not used in the examples. But it is still usefull.)
- create items for the http binding
- create sitemap elements
- create rules to fire up http request, triggerd by sitemap elements.
what steps have you done? It seems, that you have issues creating the items.
You can create them via Paper UI OR manually (using files). You should decide which way you want.
The manally way is more complicated but you will get more support for this.
This is my recommendation to you.
To do this, please first delete the items and things you have created in the Paper UI.
Since you are using openhabian, you do not need filezilla - close it.
Open a file explorer (“Arbeitsplatz” or “Dieser PC”) and enter this as an address
\\192.168.178.52
You should be prombted for credentials:
Username:openhabian
Password: openhabian (if you did not change it)
Now, you can now use you Designer and open/create files on that file share.
Create an item file in the items folder. Eg. enigma2.items (the name is not relevant. You can have multiple .item files. It is just for you to keep an overview what is where configured)
Your file should be somethig like that:
Group Gigablue
/* Gigablue HD Quad */
String GB_Sendung "Aktuelle Sendung [%s]" <projector_benq> ( Gigablue ) { http="<[http://<ENIGMA_BOX_IP>:<PORT>/web/getcurrent:3000:REGEX(.*?<e2eventname>(.*?)</e2eventname>.*)]" }
String GB_Kanal "Sender [%s]" <projector_benq> ( Gigablue ) { http="<[http://<ENIGMA_BOX_IP>:<PORT>/web/getcurrent:3000:REGEX(.*?<e2servicename>(.*?)</e2servicename>.*)]" }
Switch GB_sendMute "Mute" <soundvolume_mute> ( Gigablue )
Repace this with the ip of your enigma2 device:
<ENIGMA_BOX_IP>:<PORT>
e.g.
192.168.178.123
(If you are using the default settings on your OpenWebif, the default port is 80 and you do not need to enter this.)
The next step is to create a sitemap entry.
Edit the existing sitemap. (I think it is called default.sitemap in the sitemap directory)
Past this code in your sitemap. Try to enter it as line 2 in your file. You have to enter this after the first curly bracket (geschweifte Klammer). This one is at the end of the first line.
Group item=Gigablue label="Gigablue" icon="projector_benq"
Maybe the icon would not work. I’m not sure whether it is included in the default icon set.
Create a new rule file in the rules folder. Name it like whatever you want. E.g enigma2.rules
Paste this content
rule "GB_Mute"
when
Item GB_sendMute received command
then
switch(receivedCommand) {
case ON : sendHttpGetRequest("http://192.168.0.219:219/web/vol?set=mute")
case OFF : sendHttpGetRequest("http://192.168.0.219:219/web/vol?set=mute")
}
end
I have not verified the items / sitemaps / rules. You must modify them to suite your needs.
I cannot give you more information than this.
Now it is your turn to show me, that you have understand what I have wrote.