In the UI: Set the Value or sendCommand in an Action to a value from anotheritem

Hi all,

I’m sorry to post this but i did not know how the correct phrasing is and therefore I did not found anything on google.

Can i set in the UI the Item or the command to the Value of another item
The code below for sure does not work, but it should demonstrate my idea.


  - id: "1"
      thingUID: hue:0220:0017882ba3e2:1
      previousStatus: OFFLINE
      status: ONLINE
    type: core.ThingStatusChangeTrigger
conditions: []
  - inputs: {}
    id: "2"
      itemName: HueEsszimmer1_Brightness
      command: =itemRegistry.getItem('LightTemperature').getState()
    type: core.ItemCommandAction

You have to use a Script Action. Any language will do. If you are not used to code you might choose Blockly. Otherwise it’s just a one liner. Rules DSL would be


Hi @rlkoshak,
thanks for the prompt feedback.
I did it with blocky with my Wife :slight_smile:
Have an awesome day!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.