У нас вы можете посмотреть бесплатно #30 Installing RF Bridge in Home Assistant to use 433MHz Door Window Motion & Water Leak Sensors или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In today's video, we have discussed, how to flash & add a Sonoff RF Bridge to Home Assistant for using inexpensive 433MHz RF sensors. And deploying RFbridge_demux python script to get the correct RF sensor states even after a HA restart. An Important Note: In this video, I forgot to mention that you also need to create an automation for RFBridge_demux in order to receive the sensor data in Home Assistant. Create the automation as follows: alias: rfbridge_demultiplexer trigger: platform: mqtt topic: tele/RF_Bridge/RESULT action: service: python_script.rfbridge_demux data_template: payload: "{{trigger.payload_json.RfReceived.Data}}" Download the Python_Scripts folder here. https://drive.google.com/file/d/1-EzD... Although we can process the received RF data using MQTT binary sensors, but Demultiplexing strategy offers a performance advantage over the traditional binary sensor strategy. It can also restore the correct state of the sensors upon HA restart. It uses an automation to separate (demultiplex) the RF bridge’s single topic into multiple topics, one per sensor. Each sensor is subscribed to its own topic and only receives payloads intended for it. Unlike the previous strategy where, for ten sensors, each payload is processed ten times, this strategy processes each payload only twice. The payload is initially processed by the automation and then by the sensor. To make this work, you have to configure Home Assistant to use the python_script component. Follow this video for full explanation. Because we are using a python_script, we can add sensors to the dictionary without having to restart Home Assistant. The dictionary is designed so you can specify if the sensor’s topic should have its payloads retained or not. Because the door sensor reports both of its states, the automation can use retain: true when publishing to the contact sensor’s topic. When Home Assistant restarts, it will re-subscribe to the contact sensor topic’s and receive its current (retained) state from the broker. The other two sensors (motion sensor and button) don’t report their off state. We use the off_delay option to automatically reset them to off. However, this technique does not publish off to their respective MQTT topic (i.e. once set to on the topic will always show on). Therefore the automation should publish to their topics using retain: false. Otherwise, if using retain: true, when you restart Home Assistant, it would erroneously set these sensors to on. Configuring the binary sensors becomes an easy task. No value_template is needed. platform: mqtt name: 'Bathroom Door' state_topic: 'home/sensor1' device_class: door platform: mqtt name: 'Hallway Motion' state_topic: 'home/sensor2' off_delay: 5 device_class: motion platform: mqtt name: 'Button1' state_topic: 'home/sensor3' off_delay: 1 NOTE : If you use Demultiplexer strategy and have more than one RF Bridge, you can simply configure all of them to publish to the same topic. Alternatively, assign a unique topic to each one then, in automation.rfbridge_demultiplexer, create an MQTT Trigger for each topic. If any of your RF sensors have all-numeric value code (without any alphabet), and the python_script is not detecting it, you need to change the following payload line in your script as follows: Change p = data.get('payload') to p = str(data.get('payload')) Save the file and restart home assistant for changes to take effect. Hope you will learn & enjoy watching this video. Please consider subscribing to this channel as we will together learn & share a lot of amazing stuff and ideas to improve our smart home. So stay connected. Thanks a lot !!! ****************************** Subscribe this Channel: / @the_vccground ****************************** Music: Bensound.com Intro Music : Hope by Tobu. • Tobu - Hope (Original Mix) #rfbridge #doorsensor #rf433mhz #waterleaksensor #iot #smarthome #mqtt #homeassistant #alexa #vccground #sonoff #tasmota #pythonscript #demux ********************************************* About us: Located in Delhi, India., We provide all kind of Customized Electronic and Smart Home Solutions within India and abroad. Do contact us for any Modification, Customization, Designing and Repairs of all Electronic and Smart Home Devices. WhatsApp your requirements to +91 9310248748 and Our team will coordinate with you soon thereafter. ****************************** For any query, do comment below or mail me at vccground3.3@gmail.com Thank You for appreciating my videos. Do Like & Share them with friends & family.