Read PIR sensor motion on other Rpi

Hi all

I have 2 Rpi’s running. On 1 rpi there is a PIR sensor connected.
I was wondering if i could read the motion of the PIR sensor and display it on homeassistant that is running on the other Rpi?

Yes you can.

Second question, how ? :slight_smile:

Well you could write some software that will communicate over mqtt.

Any has some code for this? I’m completly new to MQTT and that kind of stuff.

An example I found using google.

This is what you want:

I’ve got the Thingsboard working, so how can i show it in HA ?