Switch or temperature device using on other nodes and their devices

BerndN
Posts: 3
Joined: Thu Nov 14, 2024 11:48 am

Switch or temperature device using on other nodes and their devices

Postby BerndN » Sat Jan 18, 2025 3:16 pm

Is it possible to use a switch device state or a temperature device value on devices that are on another node and how?

ahsrabrifat
Posts: 23
Joined: Sat Jan 18, 2025 2:31 pm

Re: Switch or temperature device using on other nodes and their devices

Postby ahsrabrifat » Mon Jan 20, 2025 1:45 pm

You can achieve this by using MQTT. Configure both nodes to connect to the same MQTT broker.The node with the switch or temperature sensor publishes the data to an MQTT topic. For example, the temperature sensor node publishes to home/room1/temperature.The other node subscribes to the same topic to receive updates in real-time. Use the received value to control the state or make decisions.

ESP_Piyush
Posts: 313
Joined: Wed Feb 20, 2019 7:02 am

Re: Switch or temperature device using on other nodes and their devices

Postby ESP_Piyush » Mon Jan 20, 2025 5:42 pm

In the context of ESP RainMaker, node to node direct communication is not possible. You can, however, create automations using the RainMaker phone apps, so that events on one node can trigger actions on others.

Who is online

Users browsing this forum: No registered users and 8 guests