Mystrom Rule

  • Platform information:
    • Hardware: Intel® Celeron® CPU N2807 @ 1.58GHz, 2 cores
    • OS: Ubuntu Linux 16.04.3, Linux 4.4.0-104-generic on x86_64
    • Java Runtime Environment: Java™ SE Runtime Environment (build 1.8.0_151-b12)
    • openHAB version: 2.2

I have a TV Box from Swisscom wich i switch on and of with a per script. The box can receive a specific ON or Off signal it just toggle.
So i have sometimes the problem that in some rules it didn’t switch correct.
I Solve the problem witch the Mystrom Adapter. I read out the power consumtion of the TV Box and can decide depend of tis information if the Toggle signal need to send ore not. For the case someone forget to switch of the TV i i make the following rule, but it is not working it switch any way.

When the TV Box is of it use just under 4 Watt.

SCTV_w changed from 4.565328 to 3.270432

This is my rule.

rule "Swisscom TV Power"
	Time cron "0 0/1 * 1/1 * ? *"
	if (multimedia_w.state < 20.00000 && SCTV_w.state > 4.00000 )
		sendCommand(SWTV_ONOFF, OFF)
		logInfo("runtime.busevents", "Swisscom TV off, because before wasn't switch off correct")

What is wrong??

OK, my mistake. The Rule is working correct.

I make a exec thing wich execute every 60 Sec, i deactivate this now, everything fine.

Hello @Marcus_Martini

Do I understand you right, you implemented the Swisscom TV Box in openhab? How did you do this (what binding/thing/item) ?

Best regards

Hi Marcus

I am interested as well how you integrated Swisscom TV Box

Please reply. Thanks