New Enigma2 Binding

The api seems to work. See the outcome below.
Does that help anything?

openvuplus 3.0 2020-09-21-vti-master (8207afb95) VTi 15.0.0 3.14.28-20190424.r0 OWIF 1.2.8 0 Ultimo 4K 00:1d:ec:11:65:7f True 192.168.178.71 255.255.255.0 192.168.178.1 ATA(WDC WD20EARX-00P) 1.8 TB 184.7 GB Tuner A Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner B Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner C Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner D Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner E Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner F Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner G Vuplus DVB-C NIM(BCM3158) (DVB-C) Tuner H Vuplus DVB-C NIM(BCM3158) (DVB-C) VOX -65536 3 Digital Free 720 576 720x576 1702 1701 1701 113 1704 10003 61441 53604

That looks strange. The result should be an xml like this:

<e2abouts>
<e2about>
<e2oeversion>OE-Alliance 4.4</e2oeversion>
<e2enigmaversion>2020-10-14</e2enigmaversion>
<e2distroversion>openatv</e2distroversion>
<e2imageversion>6.4.20201017</e2imageversion>
<e2driverdate>20190429</e2driverdate>
<e2webifversion>OWIF 1.4.0</e2webifversion>
<e2fpversion>0</e2fpversion>
<e2model>Solo²</e2model>
<e2lanmac>00:1d:ec:05:0b:18</e2lanmac>
<e2landhcp>True</e2landhcp>
<e2lanip>192.168.0.3</e2lanip>
<e2lanmask>255.255.255.0</e2lanmask>
<e2langw>192.168.0.100</e2langw>
<e2hddinfo>
<model>ATA(HGST HTS541010A9)</model>
<capacity>931.5 GB</capacity>
<free>18.7 GB</free>
<mount>/media/hdd</mount>
</e2hddinfo>
<e2tunerinfo>
<e2nim>
<name>Tuner A</name>
<type>BCM7356 DVB-S2 NIM (internal) (DVB-S2)</type>
</e2nim>
<e2nim>
<name>Tuner B</name>
<type>BCM7356 DVB-S2 NIM (internal) (DVB-S2)</type>
</e2nim>
</e2tunerinfo>
<e2servicename/>
<e2servicenamespace/>
<e2serviceaspect>0</e2serviceaspect>
<e2serviceprovider/>
<e2videowidth>0</e2videowidth>
<e2videoheight>0</e2videoheight>
<e2servicevideosize>0x0</e2servicevideosize>
<e2apid>0</e2apid>
<e2vpid>0</e2vpid>
<e2pcrpid>0</e2pcrpid>
<e2pmtpid>0</e2pmtpid>
<e2txtpid>N/A</e2txtpid>
<e2tsid>0</e2tsid>
<e2onid>0</e2onid>
<e2sid>0</e2sid>
</e2about>
</e2abouts>

in the browser my result looks like yours.
I just don’t know how to paste it here so that the indents are correct.
Which line is important and should I check?

Check, that there is a „e2enigmaversion“ tag. And be sure that your service is running on port 80.

The e2enigmaversion tag is there. It is:
2020-09-21-vti-master (8207afb95)

How can i avoid that this board here automatically replaces the xml tags?
All tags between <> are automatically removed from my posts.

Here’s a screenshot of the whole result:

Three backticks at the beginning and at the end of the code. Or highlight your code and hit the </> button

```
Code goes here
```

Your xml seems to be ok, so normally the auto discovery should find your device.
Do you have any log entries? If not, please switch on debug logs for the binding.
And can you please post your thing configuration?

Hi,
this is how my binding debug log looks after creating the thing manually in PaperUI:

2020-12-14 23:13:24.174 [me.event.ThingUpdatedEvent] - Thing 'enigma2:device:Ultimo' has been updated.

==> /var/log/openhab2/openhab.log <==

2020-12-14 23:13:26.186 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate
2020-12-14 23:13:26.189 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Error on transmit http://root:<mypwd>@192.168.178.71/web/powerstate.
java.lang.IllegalArgumentException: Invalid URI host: null (authority: root:ultimo)
	at org.eclipse.jetty.client.HttpClient.checkHost(HttpClient.java:510) ~[?:?]
	at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:495) ~[?:?]
	at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:453) ~[?:?]
	at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:442) ~[?:?]
	at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:212) ~[?:?]
	at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[?:?]
	at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[?:?]
	at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:109) ~[?:?]
	at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:90) ~[?:?]
	at org.openhab.binding.enigma2.internal.Enigma2HttpClient.get(Enigma2HttpClient.java:38) ~[?:?]
	at org.openhab.binding.enigma2.internal.Enigma2Client.transmit(Enigma2Client.java:173) ~[?:?]
	at org.openhab.binding.enigma2.internal.Enigma2Client.transmitWithResult(Enigma2Client.java:155) ~[?:?]
	at org.openhab.binding.enigma2.internal.Enigma2Client.refreshPower(Enigma2Client.java:110) ~[?:?]
	at org.openhab.binding.enigma2.internal.Enigma2Client.refresh(Enigma2Client.java:96) ~[?:?]
	at org.openhab.binding.enigma2.handler.Enigma2Handler.lambda$1(Enigma2Handler.java:82) ~[?:?]
	at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_252]
	at org.openhab.binding.enigma2.handler.Enigma2Handler.refresh(Enigma2Handler.java:81) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_252]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_252]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
2020-12-14 23:13:31.206 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate
2020-12-14 23:13:36.208 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate
2020-12-14 23:13:41.211 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate
2020-12-14 23:13:46.215 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate
2020-12-14 23:13:51.218 [DEBUG] [nding.enigma2.internal.Enigma2Client] - Transmitting http://root:<mypwd>@192.168.178.71/web/powerstate

Hah, I finally found it!
I must not configure a username and password in the thing-configuration in PaperUI.
After I removed both, the thing went online.

(I had thought that username/pwd are required as in the Openwebif settings of my Ultimo I had actived “authentification for HTTP”).

Thanks a lot for your support, Guido and sihui!

I got my VUDuo4kSE also online, and I am using demo files from Binding Documentation on Openhab.

Is it possible, that something in demo.items is missing?

Last line is
String Enigma2_SendInfo “Info” { autoupdate=“false” }

What is with Item Enigma2_SendQuestion and Enigma2_Answer which is used in rules?

Enigma2_Answer is in line 9 in the documentation.

String Enigma2_SendQuestion "Question" <text> { autoupdate="false" }

is missing.

I have problem mit Enigma2 Binding.
I am already running OH3, but had same problem with OH2.

enigma2.items.txt (1.6 KB) enigma2.rules.txt (1.8 KB) enigma2.sitemap.txt (2.2 KB) enigma2.things.txt (86 Bytes) Enigma2.things

Find attached Config for things, items, rules, sitemap.

Thing is online, but when I press buttons in sitemap nothing happens.

I can see the infos in log

2021-01-15 15:26:28.997 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Enigma2_RemoteKeys’ received command KEY_2

2021-01-15 15:26:48.781 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Enigma2_RemoteKeys’ received command INFO

But on receiver there is no reaction.
Do you have any idea?

@k3067e3: Please check out if your receiver supports these actions by sending the command via Browser:

  • http://<ip>/web/message?type=1&timeout=10&text=Hello (this should promt an info message on your receiver) and
  • http://<ip>/web/remotecontrol?command=2 (this should invoke a switch to channel number 2)

If this works, you can activate the debug logs by typing ‘log:set debug org.openhab.binding.enigma2’ to karaf console. If you press the info button you should see the following logs:
DEBUG Transmitting …
DEBUG Transmitting result is …

Hi,
I tried this and found a few thing.
The http commands are working, and user / password is requested in browser.
So I changed config within enigma2.things, with the result that my device was within openhab no more longer online.
With the info in Karaf konsole I saw the URL which was called, and tried to paste it in the browser, and there was problem Nr. 1 found.
In my password of the receiver is an “@” character, and so the URL was no longer valid.
So I changed root password on receiver to an other passed, edited enigma2.things and thing is online.

With this changes all items in sitemap, frame label enigma2 are working.

The part of frame label Enigma2 Remote is not working.
I press for example Menu key, the I find in log

2021-01-24 17:00:11.098 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Enigma2_RemoteKeys’ received command MENU

And nothing happens.
So I took a look at my rules. The rules were not found in OH3 GUI, but the file is at the right place.

Had a closer look at the rules file, and I only added some extra empty lines between the different rules.
Now rules are available, and enigma2 remote ist working!

Thanks a lot!

Hi,
i am using OH3 and the 3.0.1 Binding. I want to connect a Dreambox 900 with Newnigma2 Image.
After configuration the Status is offline. A tcpdum show that OH is trying to connect, but receives “412 Precondition Failed sessionid is missing, invalid or expired” from the Dreambox.
The http Request is " HTTP: GET /web/powerstate" but when i open the Webinterfache of the Dreambox and hit the idle switch, the link is: “/#!/tv/bouquets/1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.fffff.tv%22%20ORDER%20BY%20bouquet”

Is this because of the newnigma image?

Thanks
Florian

Hi Florian,

yes ist seems so. To be sure you can try to access the Webinf-API via Browser:
http://ip-of-dreambox/web/powerstate

If this doesn‘t work, your Image is not supported.

Greetings
Guido

Nice work!

I have some questions:

At least the VU+ DUO2 supports “Picture in Picture” a feature that might make it possible to display a stream from a IP camera ( example doorbell ) on the TV as a smaller image or window in the top left or right corner.

Can the binding support that?

A example scenario: a person pushes the doorbell ( Z-wave), that action opens the picture in picture window and displays the doors IP camera stream.

After 30 seconds the window automatically closes.

Hallo Supermagnum,

that is a nice idea, but there is no api for implementing this feature. The binding is based on the OpenWebif API. See OpenWebif API documentation · E2OpenPlugins/e2openplugin-OpenWebif Wiki · GitHub

1 Like

See here for a demo video on it being done with Kodi.
Doorbell Home Automation (KODI) – Vanja Vršić (vrsho.com)

I have a similar thing setup at home, except it uses the TV’s built in Chromecast and the camera takes over the whole screen, I press stop and it returns back to what I was watching before the doorbell went off. A chromecast can be added to any TV.

is there any chance to use this binding with two networks ?

openHab → 192.168.1.x
sat receiver → 192.168.2.x

Things are shown as online but items have no vaules and switches aint work