![]() |
|
MQTT to Comfort - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Software Applications (https://www.comfortforums.com/forum-4.html) +--- Forum: Comfort with Home Assistant (https://www.comfortforums.com/forum-143.html) +--- Thread: MQTT to Comfort (/thread-5869.html) |
MQTT to Comfort - bmistry3 - 06-03-2026 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 RE: MQTT to Comfort - Ingo - 06-03-2026 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. RE: MQTT to Comfort - bmistry3 - 06-05-2026 (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. RE: MQTT to Comfort - bmistry3 - 06-05-2026 (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. 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" RE: MQTT to Comfort - bmistry3 - 06-07-2026 (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. Hello all Has anyone had success in setting a virtual input ? Can guidance would be appreciated. Thank you in advance. RE: MQTT to Comfort - Ingo - 06-08-2026 (06-07-2026, 09:16 PM)bmistry3 Wrote: Hello all 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. RE: MQTT to Comfort - bmistry3 - 06-08-2026 (06-08-2026, 03:31 PM)Ingo Wrote:(06-07-2026, 09:16 PM)bmistry3 Wrote: Hello all 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 INGO - THANK YOU Checked it was a simple change in the ComfortMQTT app and changed it to 24 and it WORKED. |