cover:
#窗帘射频模块@zorankeinfo修改版
- platform: broadlink_cover
host: 192.168.1.103
mac: '78:0F:77:42:BB:C0'
covers:
window:
travel_time: 15
position_sensor: binary_sensor.door_window_sensor_158
name: "客厅窗户"
command_open: 'sgB4ADcVEjg2FhI4NxU2FBM5EjgTOBM4NhYSODYVNxQ2FTYVNhUTODYVEzgSORM4EgACbwABNjw2FRM5EjgTODYVEzgTOBI5NhU2FTYVEjk2FRI5NRY2FBM5EjgTORI4NhYSODYWNRU2FTYVNhUTODYVEzgSORM4EgAF3A=='
command_close: 'sgCQAAABNj0SODYWEjgTOTYUEzkSOBI5NhU2FTYVEjk2FRI5NhU2FRI5EjkTOBI5NRYSODYWNhQTOTUVNhUTODYVEzgSORM4EgACbwABNj0SODYWEjgTOTUVEzgTOBI5NhU2FTYVEjk2FRI5NRY2FRI5EjkSORI5NhUSOTYVNhQTOTUVNhUTOTUVEzgSORM4EwAF3AAAAAAAAAAA'
command_stop: 'sgCQAAABNjwTOBM4NxQTODYVEzgTOBI4NxU2FDcVEjk2FRI4NxU2FBQ3EzgTORI4NxQTODcUNxQUNxM4NhUTODYVEzgTOBM4EwACbgABNjwTOBM4NxQTODYVEzgTOBI4NxU2FTYUEzg3FRI4NxQ3FBQ3EzgTOBM4NhUTODYVNxQTOBM4NhUTODYVEzgSOBM5EgAF3AAAAAAAAAAA'
switch:
- platform: template
switches:
window:
friendly_name: 客厅窗户
value_template: "{{ is_state('binary_sensor.door_window_sensor_158d00027602a2', 'on') }}"
turn_on:
- service: broadlink.send
data_template:
host: 192.168.1.103
packet:
- "sgCQAAABNjwTOBM4NxQTODYVEzgTOBI4NxU2FDcVEjk2FRI4NxU2FBQ3EzgTORI4NxQTODcUNxQUNxM4NhUTODYVEzgTOBM4EwACbgABNjwTOBM4NxQTODYVEzgTOBI4NxU2FTYUEzg3FRI4NxQ3FBQ3EzgTOBM4NhUTODYVNxQTOBM4NhUTODYVEzgSOBM5EgAF3AAAAAAAAAAA"
- "sgB4ADcVEjg2FhI4NxU2FBM5EjgTOBM4NhYSODYVNxQ2FTYVNhUTODYVEzgSORM4EgACbwABNjw2FRM5EjgTODYVEzgTOBI5NhU2FTYVEjk2FRI5NRY2FBM5EjgTORI4NhYSODYWNRU2FTYVNhUTODYVEzgSORM4EgAF3A=="
turn_off:
- service: broadlink.send
data_template:
host: 192.168.1.103
packet:
- "sgCQAAABNjwTOBM4NxQTODYVEzgTOBI4NxU2FDcVEjk2FRI4NxU2FBQ3EzgTORI4NxQTODcUNxQUNxM4NhUTODYVEzgTOBM4EwACbgABNjwTOBM4NxQTODYVEzgTOBI4NxU2FTYUEzg3FRI4NxQ3FBQ3EzgTOBM4NhUTODYVNxQTOBM4NhUTODYVEzgSOBM5EgAF3AAAAAAAAAAA"
- "sgCQAAABNj0SODYWEjgTOTYUEzkSOBI5NhU2FTYVEjk2FRI5NhU2FRI5EjkTOBI5NRYSODYWNhQTOTUVNhUTODYVEzgSORM4EgACbwABNj0SODYWEjgTOTUVEzgTOBI5NhU2FTYVEjk2FRI5NRY2FRI5EjkSORI5NhUSOTYVNhQTOTUVNhUTOTUVEzgSORM4EwAF3AAAAAAAAAAA"
homeassistant:
customize:
cover.window:
device_class: window
hagenie_hidden: true
switch.window:
hagenie_name: 窗
hagenie_zone: 客厅
hidden: true
|