Page 1 of 1

Control enigma2/Dreambox

Posted: Wednesday 14 September 2016 20:09
by madrian
Guys, any recommendation for controlling enigma2/Dreambox devices?

There is a web interface, where is possible to access nearly all important functions.

I want to control (if it is possible with feedback):

on/off state

Code: Select all

http://dreambox/web/powerstate? to check Powerstate
http://dreambox/web/powerstate?newstate={powerstate_number}
0 = Toogle Standby
volume

Code: Select all

Volume Requests:

Get current Volume: http://dreambox/web/vol oder http://dreambox/web/vol?set=state
Set Volume to 23: http://dreambox/web/vol?set=set23
Increase Volume: http://dreambox/web/vol?set=up
Decrease Volume: http://dreambox/web/vol?set=down
Switch Mute: http://dreambox/web/vol?set=mute
Result:

<?xml version="1.0" encoding="utf-8"?>
<e2volume>
   <e2result>True</e2result>
   <e2resulttext>state</e2resulttext>
   <e2current>5</e2current>
   <e2ismuted>False</e2ismuted>	
</e2volume>
Parameter:

result = True if command successful, False otherwise
resulttext = textbased description of what succeeded/went wrong
current = current Volume - Value between 0 and 100
ismuted = True if muted, False if not
Isn't there any script/switch/button available for other similar device, so I can modify the code and use with enigma2/Dreamboxes.

Re: Control enigma2/Dreambox

Posted: Thursday 15 September 2016 9:30
by D'rMorris
I also did some Dreambox coding, but then the other way around. At first, I also ran a cron job on my Pi to get the powerstate of the Dreambox and then flipping a virtual switch. I think you can reuse that code.
Afterwards, I thought it would be better to have the Dreambox switch the virtual switch, instead of polling the state every minute. So, I adapted standby.py in the dreambox and now the Dreambox switches the virtual switch when it goes into or comes out of standby, works flawless every time.
I do not have the requirement to control the DM from Domoticz, but I think you should be able to make a start with my original code.

Re: Control enigma2/Dreambox

Posted: Monday 07 August 2017 17:59
by ager
D'rMorris wrote:I also did some Dreambox coding, but then the other way around. At first, I also ran a cron job on my Pi to get the powerstate of the Dreambox and then flipping a virtual switch. I think you can reuse that code.
Afterwards, I thought it would be better to have the Dreambox switch the virtual switch, instead of polling the state every minute. So, I adapted standby.py in the dreambox and now the Dreambox switches the virtual switch when it goes into or comes out of standby, works flawless every time.
I do not have the requirement to control the DM from Domoticz, but I think you should be able to make a start with my original code.
I am trying to solve exactly same issue...I need dreambox switches the virtual switch when it gous into or comes out of standby. Can you please share your standby.py please?
I am using LOXONE and if I switch ON or OFF dreambox by original dreambox remote control, Loxone have no idea about this change....

Thanks

Re: Control enigma2/Dreambox

Posted: Monday 07 August 2017 19:15
by D'rMorris
Read my post here: Checking Dreambox state

https://r.tapatalk.com/shareLink?share_ ... are_type=t