Passing variable to sensor via radio network.
-
Hi,
I have a following set-up already up&running in my home.
Main cotroller: Vera with MySensors plugin and RFX433/Zwave devices
MySensors gateway build on RPI with 3 sensors (GAS&CO&PARKING).
RPI is used also as MQTTY broker (mosquitto).Use case:
Parking sensor works great in my garage, but it is working all the time even if I do not need itUse case modification:
Void loop() is executed in following way : normal sketch is executed only if the garage door is open, otherwise do nothing. Garage door sensor is available in Vera as normal door/windows sensor over RFX433.Question:
Is it possible to deliver the Garage door status variable to Parking Sensor over MySensor plugin and radio network??
Should I use MQTT? Will it work? How to retrieve the value in sketch??Thank you for suggestions.
-
@halo6 I use Domoticz instead of Vera, but the general idea should work.
Add another child sensor to your parking sensor that is a binary switch. Maybe S_DOOR, V_TRIPPED or S_BINARY, V_STATUS. That switch gets presented to your controller. Then have the parking sensor listen for a message to that child ID and work normally if on or do nothing (but listen for messages) when off.In Vera, write a small script that turns on the new parking sensor switch when the garage door is open, and turns it back off again when the garage door is closed.
Suggested Topics
-
Icon Location Offline
Vera • 2 Jan 2021, 03:51 • marknmel 2 Jan 2021, 03:51 -
Vera Plus plugin issues (and choosing the right controller in general)
Vera • 6 Jun 2021, 10:16 • Max Kurilov 6 Jun 2021, 16:55 -
Issues Reading Sensors in Vera Plus
Vera • 26 Jan 2023, 17:12 • Newzwaver 26 Jan 2023, 17:12 -
MySensors node not working with Alexa on my Vera
Vera • 28 Apr 2024, 01:21 • dbemowsk 28 Apr 2024, 01:21