Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT to Comfort
#1
Could someone share their code to send MQTT message from HA to Comfort to set a virtual input for  zone.

I have tried but cannot get Comfigurator to see that zone set when HA triggers it, I can see other PIR zones in status.

i would like to start using virtual zones now and need some guidance on how to send,

Thank you
Reply

#2
I don't have any Virtual Zones configured so cannot test it myself but if you just use the 'mqtt.publish' action under Development Tools/Actions and set the topic to eg. comfort2mqtt/input1/set and send 1 it should activate the zone.
Reply

#3
(06-03-2026, 04:21 PM)Ingo Wrote: I don't have any Virtual Zones configured so cannot test it myself but if you just use the 'mqtt.publish' action under Development Tools/Actions and set the topic to eg. comfort2mqtt/input1/set and send 1 it should activate the zone.

Thank you. I tried this in HA develoepr tools. 

action: mqtt.publish
data:
  topic: comfort2mqtt/flag2/set
  payload: "0"

And Flag 2 does get set. If I try with a virtual zone, say Zone17 it does not

Will experiment more.
Reply

#4
(06-05-2026, 07:19 AM)bmistry3 Wrote:
(06-03-2026, 04:21 PM)Ingo Wrote: I don't have any Virtual Zones configured so cannot test it myself but if you just use the 'mqtt.publish' action under Development Tools/Actions and set the topic to eg. comfort2mqtt/input1/set and send 1 it should activate the zone.

Thank you. I tried this in HA develoepr tools. 

action: mqtt.publish
data:
  topic: comfort2mqtt/flag2/set
  payload: "0"

And Flag 2 does get set. If I try with a virtual zone, say Zone17 it does not

Will experiment more.


So I can set flags and counters from HA via MQTT to comfort. 

I cannot set a virtual input via HA to MQTT. I have tried to set flag and then have a response on status of flag to then set the virtual input, that  does work using Comfort Response.

Has anyone had any success setting Zone input which is virtual from HA ?

Is this what I try:

action: mqtt.publish
data:
topic: comfort2mqtt/input17/set
payload: "0"
Reply

#5
(06-05-2026, 11:48 AM)bmistry3 Wrote:
(06-05-2026, 07:19 AM)bmistry3 Wrote:
(06-03-2026, 04:21 PM)Ingo Wrote: I don't have any Virtual Zones configured so cannot test it myself but if you just use the 'mqtt.publish' action under Development Tools/Actions and set the topic to eg. comfort2mqtt/input1/set and send 1 it should activate the zone.

Thank you. I tried this in HA develoepr tools. 

action: mqtt.publish
data:
  topic: comfort2mqtt/flag2/set
  payload: "0"

And Flag 2 does get set. If I try with a virtual zone, say Zone17 it does not

Will experiment more.


So I can set flags and counters from HA via MQTT to comfort. 

I cannot set a virtual input via HA to MQTT. I have tried to set flag and then have a response on status of flag to then set the virtual input, that  does work using Comfort Response.

Has anyone had any success setting Zone input which is virtual from HA ?

Is this what I try:

action: mqtt.publish
data:
  topic: comfort2mqtt/input17/set
  payload: "0"

Hello all

Has anyone had success in setting a virtual input ? Can guidance would be appreciated. Thank you in advance.
Reply

#6
(06-07-2026, 09:16 PM)bmistry3 Wrote: Hello all

Has anyone had success in setting a virtual input ? Can guidance would be appreciated. Thank you in advance.

I think I know what the problem might be. You can only set a Virtual Zone if the App subscribed to that topic. This means if you selected eg. 16 Zones in your configuration, then trying to set Zone 17 will be ignored. You have to set the Zone count to be your Physical Zones + any Virtual Zones you are using. In your case I assume you have 16 + 1 so you should select the next boundary which is 24.
Reply

#7
(06-08-2026, 03:31 PM)Ingo Wrote:
(06-07-2026, 09:16 PM)bmistry3 Wrote: Hello all

Has anyone had success in setting a virtual input ? Can guidance would be appreciated. Thank you in advance.

I think I know what the problem might be. You can only set a Virtual Zone if the App subscribed to that topic. This means if you selected eg. 16 Zones in your configuration, then trying to set Zone 17 will be ignored. You have to set the Zone count to be your Physical Zones + any Virtual Zones you are using. In your case I assume you have 16 + 1 so you should select the next boundary which is 24.

Ingo

Thank you so much for the reply. I will try this at the weekend

(06-08-2026, 08:05 PM)bmistry3 Wrote:
(06-08-2026, 03:31 PM)Ingo Wrote:
(06-07-2026, 09:16 PM)bmistry3 Wrote: Hello all

Has anyone had success in setting a virtual input ? Can guidance would be appreciated. Thank you in advance.

I think I know what the problem might be. You can only set a Virtual Zone if the App subscribed to that topic. This means if you selected eg. 16 Zones in your configuration, then trying to set Zone 17 will be ignored. You have to set the Zone count to be your Physical Zones + any Virtual Zones you are using. In your case I assume you have 16 + 1 so you should select the next boundary which is 24.

Ingo

Thank you so much for the reply. I will try this at the weekend


INGO - THANK YOU

Checked it was a simple change in the ComfortMQTT app and changed it to 24 and it WORKED.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.