JSR223,Jython - How use Hue Rule Action "fadingLightCommand"

Tags: #<Tag:0x00007efece8d9d38> #<Tag:0x00007efece8d9950>

using:
RPI3, openHAB version: 2.5.9

i want to use the following rule action from the philips hue binding with the jsr223,jython rules engine to use the fadeTime parameter.

does anybody know, how to reach the goal with python?

thx,
yekoms

Probably:

actions.get("hue", "hue:0210:blah blah:1").fadingLightCommand("color", blahblahblah)

See the MQTT example at the bottom: https://openhab-scripters.github.io/openhab-helper-libraries/Guides/Actions.html#use-an-addon-bundle-action

thx

e.g.

actions.get("hue", "hue:0220:0017881c7d69:31").fadingLightCommand("color_temperature", PercentType(100), DecimalType(5000))

is the right syntax, which will work for me :slight_smile:

hint:
commands like ON , OFF won´t work. fadeTime paramter has no effect then.

Does anybody know how i can get the channel string (e.g. “hue:0220:0017881c7d69:31:color_temperature”
from its item (item_name) ?

i want to access the “fadingLightCommand” by the item itself.

works for me, thx