Files

copied
Last update 4 years 11 months by rohit.kumar@avl.com
FilesHASwitchPlateHome_Assistanthasp-examplesplate01
..
README.md
hasp_plate01_00_autofirmwareupdate.yaml
hasp_plate01_00_backlightbysun.yaml
hasp_plate01_00_defaultpage.yaml
hasp_plate01_00_kodisensor.yaml
hasp_plate01_00_motionsensor.yaml
hasp_plate01_p0_messagedisplay.yaml
hasp_plate01_00_motionsensor.yaml
# If you've installed and configured a motion sensor in the HASP device, copy # this file to packages/plate01 binary_sensor: - platform: mqtt name: plate01 Motion Sensor device_class: motion state_topic: "hasp/plate01/motion/state" payload_on: "ON" payload_off: "OFF" availability_topic: "hasp/plate01/status" payload_available: "ON" payload_not_available: "OFF" # Use the motion sensor to switch between pages configured for buttons 1 and 2. # Use case: Page button 1 has interactive controls, page button 2 has information # Interaction: # - When user isn't nearby, display shows information like a clock or weather on page 2. # - When a person approachs, switch to interactive controls like the scene buttons on page 1. automation: - alias: hasp_plate01_00_MotionSelectPageButton1 trigger: - platform: state entity_id: 'binary_sensor.plate01_motion_sensor' to: 'on' condition: - condition: state entity_id: 'binary_sensor.plate01_connected' state: 'on' action: - service: input_number.set_value data_template: entity_id: 'input_number.hasp_plate01_activepage' value: '{{states.input_number.hasp_plate01_pagebutton1page.state|int}}' - alias: hasp_plate01_00_NoMotionSelectPageButton2 trigger: - platform: state entity_id: 'binary_sensor.plate01_motion_sensor' to: 'off' condition: - condition: state entity_id: 'binary_sensor.plate01_connected' state: 'on' action: - service: input_number.set_value data_template: entity_id: 'input_number.hasp_plate01_activepage' value: '{{states.input_number.hasp_plate01_pagebutton2page.state|int}}'
Report a bug