Problem hue dimmer switch

I have installed hue magic in home assistant . When I use the node (hue-buttons) and I press the upper button from my hue switch gives in the debug node:

object
reachable: true
connectionStatus: "connected"
button: 1
action: "initial_press"
updated: "2022-09-24T10:53:45+02:00"

When I want to use a switch node and I use (payload)-initial_press no result
Houw should I handle the output shown above??
Thanks

I use (payload)-initial_press no result

what does this mean exactly ?

The debug output from the button node gives action: "initial_press”.

When I place a switch node with Property msg.payload.action == initial_press, nothing happens.

So I’m new to this and don’t know how the switch should be filled in.

The info you posted is not clear, you need to use the copy value button in the debug sidebar, it shows when you hover the mouse to the side of the object name.
I suuspect it is msg.action you should be using in the switch node property input.

How are you actually sending this to whatever you are trying to control with the switch. An example of your flow would help.

[{"id":"ca6d10a6af7d8fe3","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"2d0723d4f16fad9f","type":"hue-buttons","z":"ca6d10a6af7d8fe3","name":"SW3 Slaapkamer","bridge":"3bcb6ec844b055e7","sensorid":"08a1e3d3-0dbf-43ca-82b1-869838bbfe6e","skipevents":false,"initevents":false,"x":350,"y":220,"wires":[["ebaa080f80519f28"]]},{"id":"ebaa080f80519f28","type":"switch","z":"ca6d10a6af7d8fe3","name":"action","property":"pressed.button","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"initial_press","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":550,"y":220,"wires":[["33e9a566dc68ba43","ebc5baf4959b35af"],["c2a2074ce3c4377b"]]},{"id":"33e9a566dc68ba43","type":"debug","z":"ca6d10a6af7d8fe3","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":200,"wires":[]},{"id":"c2a2074ce3c4377b","type":"debug","z":"ca6d10a6af7d8fe3","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":760,"y":240,"wires":[]},{"id":"ebc5baf4959b35af","type":"api-call-service","z":"ca6d10a6af7d8fe3","name":"Put lamp on if button 1 is pressed","server":"3c6b2d2d.b63e72","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.wand_tuindeur"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":160,"wires":[[]]},{"id":"3bcb6ec844b055e7","type":"hue-bridge","name":"Philips hue","bridge":"192.168.178.86","key":"19HWVn7M1WGrt4IcXh9aYkUogHcAivi87gf8QRFe","worker":"10","autoupdates":true,"disableupdates":false},{"id":"3c6b2d2d.*emphasized text*b63e72","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

Is the example oké?

Erm, no. Syntax error. Try posting flow between three backticks (```)

As you can see in posted flow there are a lot of unknown elements (the little squares)

I've been looking for a long time. I have now found the errors and reset everything. It now works as intended. Thanks for the help.
Peter

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