Outline ·
[ Standard ] ·
Linear+
Controlling DC Moto Gate with Homekit, Xiaoyan Smart Module
|
simmarjit
|
Sep 23 2022, 11:07 PM
|
|
QUOTE(vincent_ng86 @ Sep 23 2022, 05:24 PM) I am now using this but can only open/close it via the ewelink app. Hoping to have it appeared on CarPlay as a garage door. Box box I have a digicraft gate as well as an ewelink relay in the autogate box, L use home assistant to bridge it to HomeKit and I have it shown on CarPlay and in the home app.
|
|
|
|
|
|
simmarjit
|
Sep 24 2022, 01:56 AM
|
|
QUOTE(vincent_ng86 @ Sep 23 2022, 11:10 PM) I connected the relay to the push button switched in your diagram, i powered the relay with the autogate backup battery, used the sonoff ewelink integration and exposed in to homekit as a gate which can be see in carplay when you reach near your home. If you are using home assistant, let me know, i will share my code to expose it as a gate. I also used an aqara door and window sensor to check if the gate is open or close. So in the home app, if i click once it will open both sides fully, but if i click again while it is opening it will stop, and then i click again to close. You cant open one side with this. Another way you can do is, use a relay with the gate remote, you will need to solder.
|
|
|
|
|
|
simmarjit
|
Sep 26 2022, 05:03 AM
|
|
QUOTE(vincent_ng86 @ Sep 24 2022, 09:26 PM) Thanks for your help, yes, I am using Home Assistant. I also have a Terncy door sensor available, how do you protect it from the outdoor weather. Appreciate if you can share with me the code. There is a locking mechanism on the gate right? At least mine has (DC moto one) so i put my sensor below it and i also used electrical tape to put around all the edges apart from the one that magnet comes into "contact" with. Its been 2 years now that i have it and still no issues, and i am surprised that i havent needed to change the battery as well. CODE cover: - platform: template covers: gate: device_class: gate friendly_name: "Gate" value_template: "{{ is_state('binary_sensor.door_and_window_sensor_ac2f', 'on') }}" open_cover: service: switch.turn_on data: entity_id: switch.sonoff_gateopen close_cover: service: switch.turn_on data: entity_id: switch.sonoff_gateclose stop_cover: service: switch.turn_on data: entity_id: switch.sonoff_gateopen icon_template: >- '{% if states('binary_sensor.door_and_window_sensor_ac2f') == "on" %} mdi:gate-open {% else %} mdi:gate {% endif %}'
Replace the binary sensor and those entity IDs (the relay) with whatever you have.
|
|
|
|
|
|
simmarjit
|
Sep 6 2023, 11:03 PM
|
|
QUOTE(boya_g @ Sep 6 2023, 09:07 PM) Can I add another channel of the relay to the lamp controller. If yes, how do it make the connection? Isnt the autogate board not going to act as a relay to that, i am not sure because i didnt use that.
|
|
|
|
|