Philips Hue Dimmer

I’m trying to use a philips hue switch (paired with hue bridge) to turn on or off some normal zigbee bulbs.

When I create a flow with the app, it works for that specific scene, but I would like to map multiple scenes to the same “turn off” action. For some reason it is not taking the actions.

Ideas?

{
  "Id": "EDAp1V8zzDC8FN6",
  "ClassId": "EDAp1V8zzDC8FN6",
  "Author": "",
  "Version": 0,
  "CreatedAt": "2022-01-17T12:41:28.878537782+01:00",
  "UpdatedAt": "2022-01-17T12:41:28.878537782+01:00",
  "Name": "scene 1002 off",
  "Group": "test",
  "Description": "test of 1002 off",
  "Nodes": [
    {
      "Id": "1",
      "Type": "trigger",
      "Label": "no label",
      "SuccessTransition": "2",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:dev/rn:hue/ad:1/sv:scene_ctrl/ad:s18_0",
      "Service": "scene_ctrl",
      "ServiceInterface": "evt.scene.report",
      "Config": {
        "Timeout": 0,
        "ConnectorID": "",
        "ValueFilter": {
          "Value": null,
          "ValueType": "string"
        },
        "PropFilterName": "",
        "PropFilterValue": "",
        "ValueJPath": "",
        "ValueJPathResultType": "",
        "InputVariableType": "",
        "IsValueFilterEnabled": false,
        "RegisterAsVirtualService": false,
        "LookupServiceNameAndLocation": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": null
      },
      "Ui": {
        "x": 745,
        "y": 108,
        "nodeType": ""
      },
      "TypeAlias": "Trigger",
      "LastValue": "1002"
    },
    {
      "Id": "2",
      "Type": "if",
      "Label": "is 1002",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "TrueTransition": "3",
        "FalseTransition": "5",
        "Expression": [
          {
            "Operand": "eq",
            "LeftVariableName": "",
            "LeftVariableIsGlobal": false,
            "RightVariable": {
              "Value": 1002,
              "ValueType": "string"
            },
            "BooleanOperator": ""
          }
        ]
      },
      "Ui": {
        "x": 730,
        "y": 295,
        "nodeType": ""
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "3",
      "Type": "action",
      "Label": "office light on",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:3_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "ResponseToTopic": "",
        "DefaultValue": {
          "Value": true,
          "ValueType": "bool"
        }
      },
      "Ui": {
        "x": 602,
        "y": 467,
        "nodeType": ""
      },
      "TypeAlias": "Action",
      "LastValue": true
    },
    {
      "Id": "4",
      "Type": "action",
      "Label": "office light off",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:3_1",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "VariableName": "",
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {},
        "ResponseToTopic": "",
        "DefaultValue": {
          "Value": false,
          "ValueType": "bool"
        }
      },
      "Ui": {
        "x": 910,
        "y": 712,
        "nodeType": ""
      },
      "TypeAlias": "Action",
      "LastValue": true
    },
    {
      "Id": "5",
      "Type": "if",
      "Label": "is 4002",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "SuccessTransition": "",
      "ErrorTransition": "",
      "Config": {
        "TrueTransition": "4",
        "FalseTransition": "",
        "Expression": [
          {
            "Operand": "eq",
            "LeftVariableName": "",
            "LeftVariableIsGlobal": false,
            "RightVariable": {
              "Value": "4002",
              "ValueType": "string"
            },
            "BooleanOperator": ""
          }
        ]
      },
      "Ui": {
        "x": 853,
        "y": 481,
        "nodeType": ""
      },
      "TypeAlias": "If condition"
    }
  ],
  "Settings": null,
  "IsDisabled": false,
  "IsDefault": false,
  "ParallelExecution": ""
}

can you try using out_lvl_switch in service & in mqtt topic `? :slight_smile: Leave ServiceInterface as cmd.binady.set :slight_smile:

I’m able to set to out_lvl_switch but then have to set a level and can’t use cmd.binary.set. I’m not sure where the mqtt topic is…??

Oddly, it will now turn off, but not on. Is there something wrong in the if statements?

{
  "Id": "cbe40820-779e-11ec-9f70-b53dd6ab32b2",
  "ClassId": "cbe40820-779e-11ec-9f70-b53dd6ab32b2",
  "Author": "mike@henkestrand.com",
  "Version": 0,
  "CreatedAt": "2022-01-17T14:07:25.090736Z",
  "UpdatedAt": "2022-01-17T15:14:25.20942818+01:00",
  "Name": "for LR Master Switch 1002",
  "Group": "scene",
  "Description": "Mike’s Office goes 254 ",
  "Nodes": [
    {
      "Id": "49",
      "Type": "trigger",
      "Label": "for LR Master Switch 1002",
      "SuccessTransition": "51",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:dev/rn:hue/ad:1/sv:scene_ctrl/ad:s18_0",
      "Service": "scene_ctrl",
      "ServiceInterface": "evt.scene.report",
      "Config": {
        "InputVariableType": null,
        "IsValueFilterEnabled": true,
        "LookupServiceNameAndLocation": false,
        "PropFilterName": "",
        "PropFilterValue": "",
        "RegisterAsVirtualService": false,
        "Timeout": null,
        "ValueFilter": {
          "Value": "1002",
          "ValueType": "string"
        },
        "ValueJPath": null,
        "ValueJPathResultType": null,
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "nodeId": "19",
          "nodeName": "scene",
          "nodeType": null
        },
        "x": 575,
        "y": 76
      },
      "TypeAlias": "Trigger",
      "LastValue": "1002"
    },
    {
      "Id": "50",
      "Type": "action",
      "Label": "Mike’s Office goes 254",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_lvl_switch/ad:3_1",
      "Service": "out_lvl_switch",
      "ServiceInterface": "cmd.lvl.set",
      "Config": {
        "DefaultValue": {
          "Value": 250,
          "ValueType": "int"
        },
        "IsVariableGlobal": false,
        "LookupServiceNameAndLocation": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": null,
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "papp": {
          "nodeId": "6",
          "nodeName": "device",
          "nodeType": "deviceAction"
        },
        "x": 553,
        "y": 476
      },
      "TypeAlias": "Action",
      "LastValue": 254
    },
    {
      "Id": "51",
      "Type": "if",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "or",
            "LeftVariableIsGlobal": false,
            "LeftVariableName": "",
            "Operand": "eq",
            "RightVariable": {
              "Value": "1002",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "52",
        "TrueTransition": "50"
      },
      "Ui": {
        "nodeType": "",
        "x": 813,
        "y": 295
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "52",
      "Type": "if",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": false,
            "LeftVariableName": "",
            "Operand": "eq",
            "RightVariable": {
              "Value": "4002",
              "ValueType": "string"
            }
          }
        ],
        "FalseTransition": "",
        "TrueTransition": "53"
      },
      "Ui": {
        "nodeType": "",
        "x": 969,
        "y": 458
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "53",
      "Type": "action",
      "Label": "",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_lvl_switch/ad:3_1",
      "Service": "out_lvl_switch",
      "ServiceInterface": "cmd.lvl.set",
      "Config": {
        "DefaultValue": {
          "Value": 0,
          "ValueType": "int"
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": false,
        "ResponseToTopic": "",
        "VariableName": "",
        "VirtualServiceGroup": "",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "x": 1032,
        "y": 625
      },
      "TypeAlias": "Action",
      "LastValue": 254
    }
  ],
  "Settings": null,
  "IsDisabled": true,
  "IsDefault": false,
  "ParallelExecution": "parallel"
}

Check also what is being sent in messagestream when using the toggle button in the app. Use that service and payload :slight_smile: