Rule to slowly fade in or out any given item based on variables

Hi,

I designed a rule to slowly fade in or out any light. One can pas a command including

  • the item
  • the direction
  • how long shall the fading go
  • how big shall the steps be
    to the rule.

Example:

universaldimmer.sendCommand("Dimmer,IN,6000,12,dim_DR_TE_Terrasse_Links")

This will fade in the Dimmer dim_DR_TE_Terrasse_Links within 6 seconds using steps of 12%.

Item:

String universaldimmer	"Trigges a rule to fade in/out a light"

The rule

import org.eclipse.smarthome.model.script.ScriptServiceUtil

var Timer fade_Timer = null

// will dimm the item and report back the new brightness
var dimm = [ GenericItem myitem, String mytype, String mydirection, Number mystep  |
	var int mybrightness = 0

  	//get brightness
	if (mytype == "Color") {
		mybrightness = (myitem.state as HSBType).getBrightness().intValue
	} else if (mytype == "Dimmer") {
		mybrightness= (myitem.state as DecimalType).intValue
	}

	//calculate new brightness
	if ( mydirection == "IN") {

		mybrightness = mybrightness + mystep.intValue
		// do not dimm over 100
		if ( mybrightness > 100 ) {
			mybrightness = 100
		}
	} else {
		mybrightness = mybrightness - mystep.intValue
		// do not dimm under 0
		if ( mybrightness < 0 ) mybrightness = 0
	}
	logInfo("Universaldimmer", "I will dimm "+ mydirection + " " + myitem.label + " (" + mytype + ") to " + mybrightness)
	
	// set new brightness
	myitem.sendCommand(mybrightness)
	
	// return new brightness
	mybrightness
]


rule "Universaldimmer"
when
    Item universaldimmer received command	//expect e.g. Color,IN,120000,12,col_E1_ES_Hue_Go_Farbe
then
	val buffer						= receivedCommand.toString.split(",")
	val mytype						= receivedCommand.toString.split(',').get(0)					// Color or Dimmer
	val mydirection					= receivedCommand.toString.split(',').get(1)					// IN or OUT 
	val int myfadetime				= Integer::parseInt(buffer.get(2))					 			// time for fading
	val int mystep					= Integer::parseInt(buffer.get(3))								// step for fading
	val int mytime					= Math::round(myfadetime * mystep / 100) 						// calculate timer
	val myitem_name					= receivedCommand.toString.split(',').get(4)					// Item to handle
	val myitem						= ScriptServiceUtil.getItemRegistry.getItem(myitem_name)

	//If a timer is still on kill it
	fade_Timer?.cancel

	// fade and return new brightness
	var int mybrightness = dimm.apply(myitem, mytype, mydirection, mystep)

	fade_Timer = createTimer(now.plusMillis(mytime)) [|
		
		//Check if finishes
		if (((mybrightness < 100 ) && (mydirection == "IN")) || ((mybrightness > 0) && (mydirection == "OUT")))  {
			// if not finished dim again 
			mybrightness = dimm.apply(myitem, mytype, mydirection, mystep)

			// rescheduling
			fade_Timer.reschedule(now.plusMillis(mytime))
		}
    ]

end

Best regards
Peter

4 Likes

Hi,

I don’t want to edit the above as someone might need it as it is. I now have a new version, where you can decide the target-value instead just “IN” or “OUT”. You can still use 0 instead of “OUT” and 100 instead of “IN”.

Example:

universaldimmer.sendCommand("Dimmer,80,6000,12,dim_DR_TE_Terrasse_Links")

This will fade in the Dimmer dim_DR_TE_Terrasse_Links to 80% using steps of 12% in about 6 seconds.

Item:

String universaldimmer	"Trigges a rule to fade in/out a light"

Rule:

import org.eclipse.smarthome.model.script.ScriptServiceUtil

var Timer fade_Timer = null

// will dimm the item and report back the new brightness
var dimm = [ GenericItem myitem, String mytype, Number mytarget, Number mystep  |
	var int mybrightness = 0

  	//get brightness
	if (mytype == "Color") {
		mybrightness = (myitem.state as HSBType).getBrightness().intValue
	} else if (mytype == "Dimmer") {
		mybrightness= (myitem.state as DecimalType).intValue
	} 

	//calculate new brightness
	if ( mytarget.intValue > mybrightness ) {

		mybrightness = mybrightness + mystep.intValue
		// do not dimm over  mytarget
		if ( mybrightness >  mytarget.intValue ) mybrightness =  mytarget.intValue

	} else {
		mybrightness = mybrightness - mystep.intValue
		// do not dimm under  mytarget
		if ( mybrightness <  mytarget.intValue ) mybrightness =  mytarget.intValue
	}
	logInfo("Universaldimmer", "I will dimm " + myitem.label + " (" + mytype + ") to " + mybrightness)
	
	// set new brightness
	myitem.sendCommand(mybrightness)
	
	// return new brightness
	mybrightness
]


rule "Universaldimmer"
when
    Item universaldimmer received command	//expect e.g. Color,100,120000,12,col_E1_ES_Hue_Go_Farbe
then
	val buffer			= receivedCommand.toString.split(",")
	val mytype			= receivedCommand.toString.split(',').get(0)					// Color or Dimmer
	var int mytarget	= Integer::parseInt(buffer.get(1))								// where to go to 
	val int myfadetime	= Integer::parseInt(buffer.get(2))					 			// time for fading
	val int mystep		= Integer::parseInt(buffer.get(3))								// step for fading
	val myitem_name		= receivedCommand.toString.split(',').get(4)					// Item to handle
	val myitem			= ScriptServiceUtil.getItemRegistry.getItem(myitem_name)
	var int mytime		= 0

	// avoid that the target cannot be reaced
	if		( mytarget > 100 )	mytarget = 100
	else if ( mytarget < 0 )	mytarget = 0
	
	//If a timer is still on kill it
	fade_Timer?.cancel

	// fade
	var int mybrightness = dimm.apply(myitem, mytype, mytarget, mystep)
	
	// calculate timesteps
	if ( mybrightness > mytarget ) {
		mytime		= Math::round(myfadetime * mystep / ((mybrightness + mystep ) - mytarget))
	} else {
		mytime		= Math::round(myfadetime * mystep / (mytarget - (mybrightness + mystep)))
	}
	
	// create the timer
	fade_Timer = createTimer(now.plusMillis(mytime)) [|
		
		//Check if finishes
		if (mybrightness != mytarget )  {
			// if not finished dim again 
			mybrightness = dimm.apply(myitem, mytype, mytarget, mystep)

			// rescheduling
			fade_Timer.reschedule(now.plusMillis(mytime))
		}
    ]

end

Best regards
Peter

4 Likes

smart script, works perfect!

This is incredibly helpful for a new user - just getting started with all of this.

I do have a question about usage, though: it doesn’t appear that calls to this rule can overlap - that is, if I have one bulb fading in over a long period of time (20 minutes), and I try to use this function to fade in a different bulb, starting 10 minutes into that process, the function stops fading the first bulb and just fades in the second.

Is there a straightforward way to cause the rule to run as a “second instantiation” and not cut off the first, or would I need to duplicate the universal dimmer rule for each bulb I want to simultaneously dim?

Welcome to the openHAB forum!

If you look into the rule “Universaldimmer” you will see that the author decided to kill any still running timer. That is the reason for this behaviour.

I just modified the rule to allow simultaneously dim for different items:

import org.eclipse.smarthome.model.script.ScriptServiceUtil

val java.util.Map<String, Timer> timerPool = newHashMap

// will dimm the item and report back the new brightness
var dimm = [GenericItem item, String type, Number targetValue, Number stepSize |
	var int itemBrightness = 0

	// get brightness
	if (type == "Color") {
		itemBrightness = (item.state as HSBType).getBrightness().intValue
	} else if (type == "Dimmer") {
		itemBrightness = (item.state as DecimalType).intValue
	}

	// calculate new brightness
	if (targetValue.intValue > itemBrightness) {

		itemBrightness = itemBrightness + stepSize.intValue
		// do not dimm above targetValue
		if (itemBrightness > targetValue.intValue) {
			itemBrightness = targetValue.intValue
		}
	} else {

		itemBrightness = itemBrightness - stepSize.intValue
		// do not dimm below targetValue
		if (itemBrightness < targetValue.intValue) {
			itemBrightness = targetValue.intValue
		}
	}
	logInfo("home.universaldimmer", "Dimm " + item.name + " (" + type + ") to " + itemBrightness)
	
	// set new brightness
	item.sendCommand(itemBrightness)
	
	// return new brightness
	itemBrightness
]

rule "Universaldimmer"
when
	// syntax: <type>,<target value>,<fade time>,<step size>,<item name>
	// 
	// type: Color or Dimmer
	// target value: e.g. 100 for ON or 0 for OFF
	// fade time: amount of time (in milli seconds) to reach the target value
	// step size: amount of steps to reach the target value
	// item name: item to fade
	//
	// sample: Color,100,10000,12,col_E1_ES_Hue_Go_Farbe
	Item universaldimmer received command
then

	val buffer			= receivedCommand.toString.split(",")
	val type			= buffer.get(0)						// Color or Dimmer
	var int targetValue	= Integer::parseInt(buffer.get(1))	// where to go to
	val int fadeTime	= Integer::parseInt(buffer.get(2))	// time for fading
	val int stepSize	= Integer::parseInt(buffer.get(3))	// step for fading
	val itemName		= buffer.get(4)						// Item to handle
	val item			= ScriptServiceUtil.getItemRegistry.getItem(itemName)
	var int rescheduleTime	= 0

	logInfo("home.universaldimmer", "Item to dimm: " + itemName)

	// avoid that the target cannot be reaced
	if (targetValue > 100) {
		targetValue = 100
	} else if (targetValue < 0) {
		targetValue = 0
	}

	// If a timer is still on kill it
	timerPool.get(itemName)?.cancel

	// fade
	var int brightness = dimm.apply(item, type, targetValue, stepSize)

	if (brightness > targetValue) {
		rescheduleTime = Math::round(fadeTime * stepSize / ((brightness + stepSize ) - targetValue))
	} else {
		rescheduleTime = Math::round(fadeTime * stepSize / (targetValue - (brightness + stepSize)))
	}

	// create the timer
	timerPool.put(itemName, createTimer(now.plusMillis(rescheduleTime)) [|
		
		// Check if finishes
		if (brightness != targetValue) {
			// if not finished dim again 
			brightness = dimm.apply(item, type, targetValue, stepSize)

			// rescheduling
			timerPool.get(itemName).reschedule(now.plusMillis(rescheduleTime))
		} else {
			timerPool.remove(itemName)
		}
	])

end
5 Likes

Hi, any way to make the steps smaller than 1? I tried 0.5 but had an error? Thanks! :slight_smile:

You’d have to replace all theint and intValue references to their float counterparts.

I hope someone is still reading this
 :slight_smile:
I’m using a Number item, the MQTT thing won’t let me use a Dimmer item.
I tried using the above rule but it is not working now, this is the rule:

import org.eclipse.smarthome.model.script.ScriptServiceUtil

val java.util.Map<String, Timer> timerPool = newHashMap

// will dimm the item and report back the new brightness
var dimm = [GenericItem item, String type, Number targetValue, Number stepSize |
	var int itemBrightness = 0

	// get brightness
	if (type == "Color") {
		itemBrightness = (item.state as HSBType).getBrightness().intValue
	} else if (type == "Dimmer") {
		itemBrightness = (item.state as DecimalType).intValue
	}else if (type == "Number") {
		itemBrightness = (item.state as DecimalType).intValue
	}

	// calculate new brightness
	if (targetValue.intValue > itemBrightness) {

		itemBrightness = itemBrightness + stepSize.intValue
		// do not dimm above targetValue
		if (itemBrightness > targetValue.intValue) {
			itemBrightness = targetValue.intValue
		}
	} else {

		itemBrightness = itemBrightness - stepSize.intValue
		// do not dimm below targetValue
		if (itemBrightness < targetValue.intValue) {
			itemBrightness = targetValue.intValue
		}
	}
	logInfo("home.universaldimmer", "Dimm " + item.name + " (" + type + ") to " + itemBrightness)
	
	// set new brightness
	item.sendCommand(itemBrightness)
	
	// return new brightness
	itemBrightness
]

rule "Universaldimmer"
when
	// syntax: <type>,<target value>,<fade time>,<step size>,<item name>
	// 
	// type: Color or Dimmer
	// target value: e.g. 100 for ON or 0 for OFF
	// fade time: amount of time (in milli seconds) to reach the target value
	// step size: amount of steps to reach the target value
	// item name: item to fade
	//
	// sample: Color,100,10000,12,col_E1_ES_Hue_Go_Farbe
	Item Tafellamp_dimmer received command
then

	val buffer			= receivedCommand.toString.split(",")
	val type			= buffer.get(Number)						// Color or Dimmer
	var int targetValue	= Integer::parseInt(buffer.get(100))	// where to go to
	val int fadeTime	= Integer::parseInt(buffer.get(4000))	// time for fading
	val int stepSize	= Integer::parseInt(buffer.get(3))	// step for fading
	val itemName		= buffer.get(Tafellamp_dimmer)						// Item to handle
	val item			= ScriptServiceUtil.getItemRegistry.getItem(itemName)
	var int rescheduleTime	= 0

	logInfo("home.universaldimmer", "Item to dimm: " + itemName)

	// avoid that the target cannot be reaced
	if (targetValue > 100) {
		targetValue = 100
	} else if (targetValue < 0) {
		targetValue = 0
	}

	// If a timer is still on kill it
	timerPool.get(itemName)?.cancel

	// fade
	var int brightness = dimm.apply(item, type, targetValue, stepSize)

	if (brightness > targetValue) {
		rescheduleTime = Math::round(fadeTime * stepSize / ((brightness + stepSize ) - targetValue))
	} else {
		rescheduleTime = Math::round(fadeTime * stepSize / (targetValue - (brightness + stepSize)))
	}

	// create the timer
	timerPool.put(itemName, createTimer(now.plusMillis(rescheduleTime)) [|
		
		// Check if finishes
		if (brightness != targetValue) {
			// if not finished dim again 
			brightness = dimm.apply(item, type, targetValue, stepSize)

			// rescheduling
			timerPool.get(itemName).reschedule(now.plusMillis(rescheduleTime))
		} else {
			timerPool.remove(itemName)
		}
	])

end

And this is the error it gives me when it fires:
2020-08-28 21:20:55.788 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Universaldimmer': An error occurred during the script execution: Could not invoke method: org.eclipse.xtext.xbase.lib.ArrayExtensions.get(T[],int) on instance: null

What were you expecting to happen here? Cannot work out what you are trying to do. Number would be a dumb name for a variable, it’s a keyword.

Hi,

Thanks for the quick reply.
Well, what I’m trying to do is to let my Number item (which I’m using as a dimmer) to fit in this rule/script but this isn’t the solution so far :slight_smile:

The easiest way would be to make an Dimmer type item for the light but the PaperUI (what I’m using to create my things and items) won’t let me select an Dimmer type on the MQTT channel of the shelly what is behind the light.

If I just fill in Dimmer when it a a Number type item it also gives an error: 2020-08-28 22:42:46.861 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Universaldimmer’: The name ‘Dimmer’ cannot be resolved to an item or type; line 58, column 26, length 6

I still have no idea what you expect
val type = buffer.get(Number)
to do for you,

buffer you have just defined as an array of string fragments, the parts of a string that were separated by commas.
val buffer = receivedCommand.toString.split(",")

Okay, so this buffer array will have elements 0, 1, 2 etc., however many comma-separated sections your original single string has.
You can get, say, the second one of those elements with
val type = buffer.get(2)

It has no element called Number.
Number is not a variable you have defined (and I think you cannot actually define a variable called Number because number is likely a reserved keyword).

What are you trying to get here? Why do you think it needs to be somehow different from earlier examples?

Have you tried using the working rule from earlier, and just pretending your real Number Item is a Dimmer? A Number can do 0-100 just the same as Dimmer.

Thanks for the explanation, I never used a complex rule like this before so this is all quite new to me and I spent a lot of hours reading and trying to onderstand it, but apparently I didn’t understand it very well.

I assumed that you needed to fill out the numbers with your own values, I also tried using the rule with only changing the Item in the rule but this gives me also an error when it runs, it only says “1” and nothing else.
I tried a lot of stuff, so I also changed the 1 from: var int targetValue = Integer::parseInt(buffer.get(1))
to a 10 and run it again and this gives me error 10.

I used the example of tbnobody because because I liked the fact that it could dim multiple items at the same time, but it is not clear to me right now where to fill out my values like steps for fading, time for fading etc.

In that rule, universaldimmer is a String type Item that you will need to create.

To make stuff happen, you send that Item a command string. This general idea is described in post #1

The rule as it stands only knows about “Color” and “Dimmer” type items. But you want to use a Number type. A dimmer is just a glorified Number, I think if you use the rule as it is and lie to to the rule that is a Dimmer type, you won’t go far wrong. Try it.

I also spent some time yesterday evening to create a thing through the manual way with a mqtt.things file, this is working, so I can use a Dimmer type item now.

So I just made the universal dimmer Item as a String item.

This is the other rule that commands the universal dimmer item:

rule "Test fade"

when

Item Light_DimmerTafellamp received command

then

universaldimmer.sendCommand("Dimmer,IN,6000,12,Light_DimmerTafellamp")

end

(I hope this is the right way).

This what happening when I change the dimmer:

2020-08-29 11:20:13.497 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 88

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

2020-08-29 11:20:13.513 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 88

2020-08-29 11:20:13.516 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 88

2020-08-29 11:20:13.526 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 86 to 88

2020-08-29 11:20:13.568 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 86 to 88

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

2020-08-29 11:20:13.580 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 90

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

2020-08-29 11:20:13.593 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 90

2020-08-29 11:20:13.597 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 90

2020-08-29 11:20:13.609 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 88 to 90

2020-08-29 11:20:13.656 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 88 to 90

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

2020-08-29 11:20:13.661 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 92

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

2020-08-29 11:20:13.675 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 92

2020-08-29 11:20:13.677 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 92

2020-08-29 11:20:13.688 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 90 to 92

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

2020-08-29 11:20:13.739 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 94

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

2020-08-29 11:20:13.762 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 94

2020-08-29 11:20:13.764 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 94

2020-08-29 11:20:13.783 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 92 to 94

2020-08-29 11:20:13.785 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 94 to 92

2020-08-29 11:20:13.787 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 90 to 92

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

2020-08-29 11:20:13.814 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 94

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

2020-08-29 11:20:13.825 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 94

2020-08-29 11:20:13.830 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 94

2020-08-29 11:20:13.841 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 92 to 94

2020-08-29 11:20:13.843 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 92 to 94

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

2020-08-29 11:20:13.897 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 96

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

2020-08-29 11:20:13.911 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 96

2020-08-29 11:20:13.914 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 96

2020-08-29 11:20:13.925 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 94 to 96

2020-08-29 11:20:13.968 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 94 to 96

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

2020-08-29 11:20:13.977 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 98

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

2020-08-29 11:20:13.991 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 98

2020-08-29 11:20:13.993 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 98

2020-08-29 11:20:14.009 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 96 to 98

2020-08-29 11:20:14.050 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 96 to 98

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

2020-08-29 11:20:14.056 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm IN Dimmer (Dimmer) to 100

No matter what value I give, it keeps putting it back to 100, when I change the command from IN to OUT, it just putting it back to 0.
Seems like he isn’t reading the current value and just go to the minimum or maximum.

What "it’? nothing like that in your logs extract.

No, this is a whole sequence of dimming from my target (was set from 0 to 11) all the way back to 0 (what I didn’t command):

2020-08-29 11:36:17.208 [ome.event.ItemCommandEvent] - Item 'Tafellamp_dimmer' received command 11

2020-08-29 11:36:17.213 [nt.ItemStatePredictedEvent] - Tafellamp_dimmer predicted to become 11

2020-08-29 11:36:17.241 [ome.event.ItemCommandEvent] - Item 'universaldimmer' received command Dimmer,OUT,2000,1,Light_DimmerTafellamp

2020-08-29 11:36:17.247 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 1 to 11

2020-08-29 11:36:17.274 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 1 to 11

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

2020-08-29 11:36:17.277 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 0

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

2020-08-29 11:36:17.298 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 0

2020-08-29 11:36:17.301 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 0

2020-08-29 11:36:17.314 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 11 to 0

2020-08-29 11:36:17.363 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 0 to 11

2020-08-29 11:36:19.193 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 38.6 to 38.1

2020-08-29 11:36:19.670 [ome.event.ItemCommandEvent] - Item 'Tafellamp_dimmer' received command 21

2020-08-29 11:36:19.675 [nt.ItemStatePredictedEvent] - Tafellamp_dimmer predicted to become 21

2020-08-29 11:36:19.700 [ome.event.ItemCommandEvent] - Item 'universaldimmer' received command Dimmer,OUT,2000,1,Light_DimmerTafellamp

2020-08-29 11:36:19.704 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 11 to 21

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

2020-08-29 11:36:19.738 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 10

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

2020-08-29 11:36:19.743 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 11 to 21

2020-08-29 11:36:19.768 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 10

2020-08-29 11:36:19.773 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 10

2020-08-29 11:36:19.792 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 21 to 10

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

2020-08-29 11:36:19.789 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 20

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

2020-08-29 11:36:19.818 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 20

2020-08-29 11:36:19.821 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 20

2020-08-29 11:36:19.832 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 10 to 20

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

2020-08-29 11:36:19.839 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 19

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

2020-08-29 11:36:19.858 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 19

2020-08-29 11:36:19.861 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 19

2020-08-29 11:36:19.873 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 20 to 19

2020-08-29 11:36:19.876 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 19 to 10

2020-08-29 11:36:19.879 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 21 to 10

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

2020-08-29 11:36:19.884 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 9

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

2020-08-29 11:36:19.898 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 9

2020-08-29 11:36:19.901 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 9

2020-08-29 11:36:19.922 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 10 to 9

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

2020-08-29 11:36:19.925 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 9

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

2020-08-29 11:36:19.925 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 10 to 20

2020-08-29 11:36:19.946 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 9

2020-08-29 11:36:19.950 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 9

2020-08-29 11:36:19.961 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 9 to 20

2020-08-29 11:36:19.963 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 20 to 9

2020-08-29 11:36:19.969 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 20 to 19

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

2020-08-29 11:36:19.972 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 8

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

2020-08-29 11:36:19.988 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 8

2020-08-29 11:36:19.991 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 8

2020-08-29 11:36:20.004 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 9 to 8

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

2020-08-29 11:36:20.011 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 18

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

2020-08-29 11:36:20.017 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 19

2020-08-29 11:36:20.030 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 18

2020-08-29 11:36:20.034 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 18

2020-08-29 11:36:20.046 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 19 to 9

2020-08-29 11:36:20.050 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 19 to 18

2020-08-29 11:36:20.053 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 18 to 9

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

2020-08-29 11:36:20.085 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 8

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

2020-08-29 11:36:20.101 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 8

2020-08-29 11:36:20.105 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 8

2020-08-29 11:36:20.120 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 9 to 8

2020-08-29 11:36:20.122 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 9

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

2020-08-29 11:36:20.128 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 8

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

2020-08-29 11:36:20.153 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 8

2020-08-29 11:36:20.158 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 8

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

2020-08-29 11:36:20.174 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 8

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

2020-08-29 11:36:20.183 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 9 to 8

2020-08-29 11:36:20.198 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 8

2020-08-29 11:36:20.201 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 9 to 8

2020-08-29 11:36:20.218 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 8

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

2020-08-29 11:36:20.228 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 7

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

2020-08-29 11:36:20.236 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 8 to 18

2020-08-29 11:36:20.254 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 7

2020-08-29 11:36:20.261 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 18

2020-08-29 11:36:20.264 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 38.1 to 39.2

2020-08-29 11:36:20.266 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 7

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

2020-08-29 11:36:20.273 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 17

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

2020-08-29 11:36:20.286 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 18 to 8

2020-08-29 11:36:20.298 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 17

2020-08-29 11:36:20.302 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 18 to 7

2020-08-29 11:36:20.304 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 7 to 8

2020-08-29 11:36:20.307 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 17

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

2020-08-29 11:36:20.312 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 7

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

2020-08-29 11:36:20.334 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 7

2020-08-29 11:36:20.337 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 17

2020-08-29 11:36:20.340 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 17 to 8

2020-08-29 11:36:20.343 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 7

2020-08-29 11:36:20.354 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 7

2020-08-29 11:36:20.363 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 7 to 8

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

2020-08-29 11:36:20.370 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 6

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

2020-08-29 11:36:20.392 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 6

2020-08-29 11:36:20.393 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 6

2020-08-29 11:36:20.404 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 8 to 6

2020-08-29 11:36:20.407 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 8 to 7

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

2020-08-29 11:36:20.414 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 5

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

2020-08-29 11:36:20.434 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 5

2020-08-29 11:36:20.444 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 5

2020-08-29 11:36:20.455 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 6 to 7

2020-08-29 11:36:20.457 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 7 to 5

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

2020-08-29 11:36:20.464 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 4

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

2020-08-29 11:36:20.481 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 4

2020-08-29 11:36:20.485 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 4

2020-08-29 11:36:20.507 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 7 to 17

2020-08-29 11:36:20.510 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 5 to 4

2020-08-29 11:36:20.512 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 4 to 17

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

2020-08-29 11:36:20.514 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 16

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

2020-08-29 11:36:20.535 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 16

2020-08-29 11:36:20.537 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 16

2020-08-29 11:36:20.560 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 17 to 16

2020-08-29 11:36:20.562 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 17 to 7

2020-08-29 11:36:20.565 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 16 to 7

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

2020-08-29 11:36:20.572 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 6

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

2020-08-29 11:36:20.591 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 6

2020-08-29 11:36:20.593 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 6

2020-08-29 11:36:20.608 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 7 to 6

2020-08-29 11:36:20.609 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 7 to 6

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

2020-08-29 11:36:20.616 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 5

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

2020-08-29 11:36:20.637 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 5

2020-08-29 11:36:20.639 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 5

2020-08-29 11:36:20.658 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 6 to 5

2020-08-29 11:36:20.660 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 6 to 5

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

2020-08-29 11:36:20.670 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 4

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

2020-08-29 11:36:20.684 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 4

2020-08-29 11:36:20.686 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 4

2020-08-29 11:36:20.698 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 5 to 4

2020-08-29 11:36:20.704 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 5 to 4

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

2020-08-29 11:36:20.718 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 3

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

2020-08-29 11:36:20.732 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 3

2020-08-29 11:36:20.733 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 3

2020-08-29 11:36:20.744 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 4 to 3

2020-08-29 11:36:20.750 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 4 to 16

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

2020-08-29 11:36:20.758 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 2

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

2020-08-29 11:36:20.774 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 2

2020-08-29 11:36:20.775 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 3 to 16

2020-08-29 11:36:20.777 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 2

2020-08-29 11:36:20.794 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 16 to 2

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

2020-08-29 11:36:20.794 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 15

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

2020-08-29 11:36:20.808 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 15

2020-08-29 11:36:20.812 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 15

2020-08-29 11:36:20.824 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 16 to 6

2020-08-29 11:36:20.827 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 2 to 15

2020-08-29 11:36:20.829 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 15 to 6

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

2020-08-29 11:36:20.838 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 5

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

2020-08-29 11:36:20.852 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 5

2020-08-29 11:36:20.854 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 5

2020-08-29 11:36:20.868 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 6 to 5

2020-08-29 11:36:20.871 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 6 to 5

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

2020-08-29 11:36:20.878 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 4

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

2020-08-29 11:36:20.894 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 4

2020-08-29 11:36:20.897 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 4

2020-08-29 11:36:20.911 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 5 to 4

2020-08-29 11:36:20.913 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 5 to 4

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

2020-08-29 11:36:20.919 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 3

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

2020-08-29 11:36:20.934 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 3

2020-08-29 11:36:20.936 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 3

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

2020-08-29 11:36:20.955 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 3

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

2020-08-29 11:36:20.958 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 4 to 3

2020-08-29 11:36:20.963 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 4 to 3

2020-08-29 11:36:20.975 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 3

2020-08-29 11:36:20.977 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 3

2020-08-29 11:36:20.992 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 3 to 2

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

2020-08-29 11:36:21.001 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 2

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

2020-08-29 11:36:21.015 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 2

2020-08-29 11:36:21.018 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 3 to 2

2020-08-29 11:36:21.020 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 2

2020-08-29 11:36:21.033 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 2 to 15

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

2020-08-29 11:36:21.041 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 1

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

2020-08-29 11:36:21.058 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 1

2020-08-29 11:36:21.061 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 2 to 15

2020-08-29 11:36:21.063 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 1

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

2020-08-29 11:36:21.164 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 14

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

2020-08-29 11:36:21.172 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 15 to 1

2020-08-29 11:36:21.175 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 1 to 5

2020-08-29 11:36:21.189 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 14

2020-08-29 11:36:21.197 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 15 to 5

2020-08-29 11:36:21.199 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 14

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

2020-08-29 11:36:21.206 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 4

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

2020-08-29 11:36:21.229 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 4

2020-08-29 11:36:21.232 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 5 to 14

2020-08-29 11:36:21.241 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 5 to 4

2020-08-29 11:36:21.243 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 14 to 4

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

2020-08-29 11:36:21.247 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 3

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

2020-08-29 11:36:21.248 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 4

2020-08-29 11:36:21.262 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 39.2 to 40.8

2020-08-29 11:36:21.276 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 3

2020-08-29 11:36:21.280 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 3

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

2020-08-29 11:36:21.286 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 3

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

2020-08-29 11:36:21.295 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 4 to 3

2020-08-29 11:36:21.308 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 3

2020-08-29 11:36:21.311 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 4 to 3

2020-08-29 11:36:21.313 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 3

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

2020-08-29 11:36:21.327 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 2

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

2020-08-29 11:36:21.357 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 2

2020-08-29 11:36:21.360 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 2

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

2020-08-29 11:36:21.368 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 2

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

2020-08-29 11:36:21.392 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 2

2020-08-29 11:36:21.394 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 3 to 2

2020-08-29 11:36:21.395 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 3 to 2

2020-08-29 11:36:21.400 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 2

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

2020-08-29 11:36:21.408 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 1

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

2020-08-29 11:36:21.422 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 1

2020-08-29 11:36:21.425 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 1

2020-08-29 11:36:21.438 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 2 to 1

2020-08-29 11:36:21.440 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 2 to 1

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

2020-08-29 11:36:21.451 [INFO ] [arthome.model.script.Universaldimmer] - I will dimm OUT Dimmer (Dimmer) to 0

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

2020-08-29 11:36:21.467 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 0

2020-08-29 11:36:21.470 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 0

2020-08-29 11:36:21.488 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 1 to 0

2020-08-29 11:36:21.490 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 1 to 14

2020-08-29 11:36:21.492 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 0 to 14

2020-08-29 11:36:21.521 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 14 to 4

2020-08-29 11:36:21.531 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 14 to 4

2020-08-29 11:36:21.556 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 4 to 3

2020-08-29 11:36:21.568 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 4 to 3

2020-08-29 11:36:21.635 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 3 to 2

2020-08-29 11:36:21.638 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 3 to 2

2020-08-29 11:36:21.703 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 2 to 1

2020-08-29 11:36:21.707 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 2 to 1

Take a look at your “Test fade” rule trigger.
When that Item receives a command, it kicks off an auto-fade process via universaldimmer.
Part of that process is of course issuing commands to your Item.
Which kicks off a new auto-fade process. Which issues commands


I also thought that this rule created the problem, but I made a dummy/test dimmer and used that as trigger since it is not linked to the actual light, I assumed the behavior would be different, but the same thing happened. This is the rule I fired:

rule "Test fade"

when

Item testD received command

then

universaldimmer.sendCommand("Dimmer,100,10000,3,Light_DimmerTafellamp")

end

You can see it happen right here:

2020-08-29 16:47:06.314 [ome.event.ItemCommandEvent] - Item 'testD' received command 25

2020-08-29 16:47:06.414 [ome.event.ItemCommandEvent] - Item 'universaldimmer' received command Dimmer,100,4000,4,Light_DimmerTafellamp

2020-08-29 16:47:06.931 [ome.event.ItemCommandEvent] - Item 'testD' received command 39

2020-08-29 16:47:06.939 [vent.ItemStateChangedEvent] - testD changed from 25 to 39

2020-08-29 16:47:07.292 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 40.2 to 41.3

2020-08-29 16:47:09.333 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 41.3 to 42.4

2020-08-29 16:47:10.343 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 42.4 to 41.9

2020-08-29 16:47:11.353 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 41.9 to 42.4

2020-08-29 16:47:14.383 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 42.4 to 41.9

2020-08-29 16:47:16.403 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 41.9 to 42.4

2020-08-29 16:47:18.424 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 42.4 to 42.9

2020-08-29 16:47:19.437 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 42.9 to 42.4

2020-08-29 16:47:20.443 [vent.ItemStateChangedEvent] - LocalRaspberry_Sensors_CPUTemperature changed from 42.4 to 43.5

2020-08-29 16:47:21.341 [ome.event.ItemCommandEvent] - Item 'universaldimmer' received command Dimmer,100,4000,4,Light_DimmerTafellamp

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

2020-08-29 16:47:21.347 [INFO ] [me.model.script.home.universaldimmer] - Item to dimm: Light_DimmerTafellamp

2020-08-29 16:47:21.351 [INFO ] [me.model.script.home.universaldimmer] - Item to dimm: Light_DimmerTafellamp

2020-08-29 16:47:21.369 [INFO ] [me.model.script.home.universaldimmer] - Dimm Light_DimmerTafellamp (Dimmer) to 10

2020-08-29 16:47:21.369 [INFO ] [me.model.script.home.universaldimmer] - Dimm Light_DimmerTafellamp (Dimmer) to 10

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

2020-08-29 16:47:21.389 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 10

2020-08-29 16:47:21.407 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 10

2020-08-29 16:47:21.410 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 10

2020-08-29 16:47:21.422 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 10

2020-08-29 16:47:21.435 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 6 to 10

2020-08-29 16:47:21.479 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 6 to 10

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

2020-08-29 16:47:21.579 [INFO ] [me.model.script.home.universaldimmer] - Dimm Light_DimmerTafellamp (Dimmer) to 14

2020-08-29 16:47:21.584 [INFO ] [me.model.script.home.universaldimmer] - Dimm Light_DimmerTafellamp (Dimmer) to 14

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

2020-08-29 16:47:21.608 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 14

2020-08-29 16:47:21.611 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 14

2020-08-29 16:47:21.635 [ome.event.ItemCommandEvent] - Item 'Light_DimmerTafellamp' received command 14

2020-08-29 16:47:21.640 [vent.ItemStateChangedEvent] - Light_DimmerTafellamp changed from 10 to 14

2020-08-29 16:47:21.643 [nt.ItemStatePredictedEvent] - Light_DimmerTafellamp predicted to become 14

2020-08-29 16:47:21.702 [vent.ItemStateChangedEvent] - Tafellamp_dimmer changed from 10 to 14

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

2020-08-29 16:47:21.785 [INFO ] [me.model.script.home.universaldimmer] - Dimm Light_DimmerTafellamp (Dimmer) to 18

The testD item only gets his command one time so that rule only run once, but the other rule with the universal dimmer item keeps running till it reaches 100 and then stops, the above logging is only a little part.

You’ve shown us testD getting two commands in less than a second. This seems to have a knock-on effect doubling all the commands to the actual dimmer. I haven’t worked out if that will give the “fail to stop” symptom.