Help with sending Philips hue motion sensor to another unit thru MQTT

I would like to get help, newbe in this.
I have started up and home assitant and geting the data from mu hue motion sensor (geting temperature) and from my heat pump, thru nibepi.

I would like to send the temperature in the room from the hue sensor back to the nibepi. I would like to get an instruction

Please support me how to be able to send this data thur the MQTT to the heat pump

You’ll need to define the mqtt server inside the mqtt node.

[{"id":"cc6fb7dc28f3c23c","type":"mqtt out","z":"f80b6c338afd5483","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","x":1540,"y":640,"wires":[]},{"id":"3f93616ca70f3911","type":"server-state-changed","z":"f80b6c338afd5483","name":"","server":"6b1110b5.183a4","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.hue_motion_sensor_1_temperature","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1190,"y":640,"wires":[["cc6fb7dc28f3c23c"]]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

Thanks, i will try, where to add it and should i use the exact string?

The temperature needs to be in the msg.payload position when you look at the debug output. If that is the case, you can send it directly to the mqtt node.

Totaly lost, can you show with pictures where i add the code and what to du. I am a newbe…

Start with an event state node and connect it to a debug.

Set it like so, note where it says state type choose number

In the debug it should look like this

image

If it is, connect the event state to the mqtt node. If the message is different, inside the debug node choose complete message object and redeploy. Post the message that is shown in the debug. There may be drop down arrows, please expand these if you post a screen shot.

Thanks for the support any hoe its not helping me out i do not understand where to go in this case.
Its node red in this case?

I do not get the nodes to it and i cant find the partin in MQTT i am not able to follow the guide and giving up in this case, to hard for a newbee.

Thanks anyway!!!

It can be overwhelming at first, I know. Lets start first with the mqtt node. You’ll find it in the network section.

image

Drag the mqtt node on to the page and double click it. You will see a drop down menu at the top with a little pencil to the right. Click the pencil and add the mqtt information.

Then update save and deploy. If there is a problem with your settings a little triangle will appear on the node. If this happens post your SS of the broker settings.

If that worked then you add the topic(path) of the mqtt sensor here.

Now if you connect that to a debug node you should start to see messages from the sensor.

Thanks,
I got the MQTT to work
image

Any how i cant get any value from the sensor.
image

And i do nut know if the topic to the sensor is correct.

Mqtt paths look kinda like folder addresses. Main/area/room/sensor. We need to send the value from the temp sensor. You can choose any topic(path) for the sensor. You can use sensor/hue/temp1 .

Now using an event state node, set it to the temp entity. Then connect that to the mqtt node.

In mqtt explorer you should see the new path show up with the value from the temp sensor. The value won’t show up until it changes, so it could take a while if the temp doesnt change much.

What you can do is uncheck current state = previous state and all updates, even if they are the same will be sent.

image

No its working any how i cant reach the nod
is it any setting i need to do in the mqtt brokerimage

This is how node red looking now.

image




I see the temperature in the nod red so i are on the right track, you are really giving me grate help!

It seems to be working. In mqtt explorer can you see sensor/hue/temp1?

When you say you can’t reach the node, could you explain more.

i do not se it in mqqt explorer
that the issue now. Otherwise its looking fine.

You’re not connected to the server. Go to the integration page in HA and click configure on the MQTT integration. Then put a # where it says listen press start. Is there messages coming through?

Yes? Check mqtt explorers settings and you should use separate user names for each client (nodered, mqtt explorer)

got it working. how do you send the temp every 30 min?

It should update whenever the sensor updates. If the sensor does not update on it’s own change the event state node to a poll state node.