Skip to content

Instantly share code, notes, and snippets.

@olexs
Created August 16, 2022 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olexs/aed3a76c14277a7d8ea962a062af6b44 to your computer and use it in GitHub Desktop.
Save olexs/aed3a76c14277a7d8ea962a062af6b44 to your computer and use it in GitHub Desktop.
ESPHome setup for wired-on Jarolift window cover RF remote
esphome:
name: esphome-32-jarolift
on_boot:
priority: 600
then:
- output.turn_off: hcs361_s3
- output.turn_off: hcs361_s2
- output.turn_off: hcs361_s1
- output.turn_off: hcs361_s0
esp32:
board: az-delivery-devkit-v4
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: "Olex"
password: ""
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Jarolift Fallback Hotspot"
password: ""
captive_portal:
esp32_ble_tracker:
output:
# red wire
- platform: gpio
pin: GPIO23 #D4
id: hcs361_s0
# white wire
- platform: gpio
pin: GPIO22 #D3
id: hcs361_s1
# green wire
- platform: gpio
pin: GPIO18 #D1
id: hcs361_s2
# blue wire
- platform: gpio
pin: GPIO19 #D2
id: hcs361_s3
cover:
- platform: time_based
id: jarolift_1
name: "Jarolift 1"
device_class: shutter
has_built_in_endstop: true
assumed_state: false
# Bit 3 2 1 0
# all up 0 0 0 1
# 1 up 0 1 0 1
open_action:
- output.turn_off: hcs361_s3
- output.turn_on: hcs361_s2
- output.turn_off: hcs361_s1
- output.turn_on: hcs361_s0
- delay: 0.5s
- output.turn_off: hcs361_s3
- output.turn_off: hcs361_s2
- output.turn_off: hcs361_s1
- output.turn_off: hcs361_s0
open_duration: 22s
# Bit 3 2 1 0
# all down 0 0 1 0
# 1 down 0 1 1 0
close_action:
- output.turn_off: hcs361_s3
- output.turn_on: hcs361_s2
- output.turn_on: hcs361_s1
- output.turn_off: hcs361_s0
- delay: 0.5s
- output.turn_off: hcs361_s3
- output.turn_off: hcs361_s2
- output.turn_off: hcs361_s1
- output.turn_off: hcs361_s0
close_duration: 18s
# Bit 3 2 1 0
# all stop 0 0 1 1
# 1 stop 0 1 1 1
stop_action:
- output.turn_off: hcs361_s3
- output.turn_on: hcs361_s2
- output.turn_on: hcs361_s1
- output.turn_on: hcs361_s0
- delay: 0.5s
- output.turn_off: hcs361_s3
- output.turn_off: hcs361_s2
- output.turn_off: hcs361_s1
- output.turn_off: hcs361_s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment