Node-Red State-Topic

Hi all,

I’m folliwing a guide to get rid of the latency in my Hue Motion sensor when using it with MQTT

I was following a tutorial of Skylar Tech but I’m stuck at some point.

  - platform: mqtt
    state_topic: 'sensors/frontdooroutside/motion'
    name: 'Front Door Motion'
    qos: 0
    payload_on: "1"
    payload_off: "0"
    value_template: '{{ value }}'
    device_class: 'motion'

at the state_topic part… What information do I need to put there?. Were can I find this information?

Link Topic

I haven’t used this but just from a quick look at the tutorial i’m gonna say that the state_topic should be whatever you have set in the Node-RED mqtt out node