# Control From MQTT

**URL:** https://discourse.nodered.org/t/control-from-mqtt/99617
**Category:** General
**Created:** [7 November 2025 16:32 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617 "2025-11-07T16:32:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![MarkH](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MarkH](https://discourse.nodered.org/u/MarkH)
#### Post date: [7 November 2025 16:32 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/1 "2025-11-07T16:32:18Z")

</div>

Afternoon All!

I'm trying to control a Air zone AC controller from my BMS system (JACE 8000 Niagara 4).

This is my setup:  
Air Zone Controller connected to a PI5 (Running Home Assist)  
Zigbee (Sonoff dongle).  
HA is running Node Red.  
RUT955 Modem (Acting as my MQTT Broker)  
Niagara running control logic and graphics.

I currently have MQTT data being sent and received to and from the JACE8000 & PI5 (node red).

HA gives me a option via the "Trigger: state" to take data from the device and send it via MQTT to my BMS system. For example i can see if the AC unit is on or off.

Below is the "Trigger: state" block taking information from the switch and sending it to the JACE.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2aa370159babfd1f1aa65f900fe9a2741954fe29.png)

Below is the status of the AC switch (RUNNING/OFF) being sent via MQTT to my jace.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/02d4432860e01bb19caa98c3f03e7c999061e820.png)

What I'm struggling with is to reverse that, so my BMS system will dictate weather the unit should be on or off.

How do i send the true/false being received from the JACE to the device to turn the unit on or off?

Hope there is enough information here for any help!

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [7 November 2025 21:16 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/2 "2025-11-07T21:16:37Z")

</div>

Hi and welcome to the forum.

(Just to let you know - though you may have been told.)

You are limited to how many posts you can do for the first _day_.

**More importatntly**?  
I am NOT a `HA` person.

> [@MarkH](#):
>
> HA gives me a option via the "Trigger: state" to take data from the device and send it via MQTT to my BMS system. For example i can see if the AC unit is on or off.

Doesn't that solve your question?  
Or are you wanting a reply from the actual unit _CONFIRMING_ it has received the command and turned on?

You are _Publishing_ the message to `office 1/AC/Switch`  
Put an `MQTT IN` node to that topic and it will receive/_echo_ what is being sent to the AC unit.

OR....

Just wire the `TRUE/FALSE State Convert` node's output to where you want to _See_ the state.

🤷

---

<div class="post-metadata">

### Author: ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)
#### Post date: [8 November 2025 07:27 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/3 "2025-11-08T07:27:18Z")

</div>

Not sure if I understand the functions of the different components in your design, so I might be wrong below...

1. Use a MQTT in node to listen what is coming out of the JACE. You'd have to configure the topic accordingly, I guess the documentation will tell you that. Out of that MQTT in node, you should get an on/off status.
2. You plug a switch node on the output. Testing on/off will give you two outputs.
3. Then, on each output, add an `action` node (from the same palette of the trigger). In there select the switch you want to act on, and call turn\_on or turn\_off depending on the action you want to do.

On the flow that you shared, I don't know exactly what the function node does... I suspect it can/should be replaced by a `change` node.

In node red, usually, the `function` node is the sledgehammer you take out when nothing else is sufficient.

---

<div class="post-metadata">

### Author: ![MarkH](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MarkH](https://discourse.nodered.org/u/MarkH)
#### Post date: [10 November 2025 15:55 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/4 "2025-11-10T15:55:37Z")

</div>

To simplify sorry,

JACE makes a true/false \> This is transmitted via MQTT to my PI5 (HA) \> the status true/false is picked up and outputs to a device connected to the Zigbee network.

On the action block it seems i can only do/select certain commands/actions like turn off and each time i send a true/false it only triggers the off command.

---

<div class="post-metadata">

### Author: ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)
#### Post date: [11 November 2025 10:03 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/5 "2025-11-11T10:03:52Z")

</div>

If you are using the `action` node, then, you'll see:

 ![Screenshot 2025-11-11 at 11.02.49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bc3f0724abc4ac32f35bc33115ccfdacab249107.png)

So, you can turn on/off a switch like that.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 February 2026 10:04 UTC](https://discourse.nodered.org/t/control-from-mqtt/99617/6 "2026-02-09T10:04:15Z")

</div>

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