Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, dict[str, Any] dev_block)
 
def async_device_keyrepeat (self, code, delay, repeat)
 
def async_device_monitor_input (self)
 
def async_device_start_monitoring (self, dev)
 
def async_device_stop_monitoring (self)
 

Public Attributes

 config_descriptor
 
 descriptor
 
 dev
 
 emulate_key_hold
 
 emulate_key_hold_delay
 
 emulate_key_hold_repeat
 
 hass
 
 key_values
 
 monitor_task
 

Detailed Description

Manage input events using evdev with asyncio.

Definition at line 235 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.__init__ (   self,
HomeAssistant  hass,
dict[str, Any]  dev_block 
)
Fill configuration data.

Definition at line 238 of file __init__.py.

Member Function Documentation

◆ async_device_keyrepeat()

def homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.async_device_keyrepeat (   self,
  code,
  delay,
  repeat 
)
Emulate keyboard delay/repeat behaviour by sending key events on a timer.

Definition at line 257 of file __init__.py.

◆ async_device_monitor_input()

def homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.async_device_monitor_input (   self)
Event monitoring loop.

Monitor one device for new events using evdev with asyncio,
start and stop key hold emulation tasks as needed.

Definition at line 321 of file __init__.py.

◆ async_device_start_monitoring()

def homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.async_device_start_monitoring (   self,
  dev 
)
Start event monitoring task and issue event.

Definition at line 273 of file __init__.py.

◆ async_device_stop_monitoring()

def homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.async_device_stop_monitoring (   self)
Stop event monitoring task and issue event.

Definition at line 296 of file __init__.py.

Member Data Documentation

◆ config_descriptor

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.config_descriptor

Definition at line 254 of file __init__.py.

◆ descriptor

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.descriptor

Definition at line 255 of file __init__.py.

◆ dev

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.dev

Definition at line 253 of file __init__.py.

◆ emulate_key_hold

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.emulate_key_hold

Definition at line 249 of file __init__.py.

◆ emulate_key_hold_delay

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.emulate_key_hold_delay

Definition at line 250 of file __init__.py.

◆ emulate_key_hold_repeat

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.emulate_key_hold_repeat

Definition at line 251 of file __init__.py.

◆ hass

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.hass

Definition at line 241 of file __init__.py.

◆ key_values

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.key_values

Definition at line 245 of file __init__.py.

◆ monitor_task

homeassistant.components.keyboard_remote.KeyboardRemote.DeviceHandler.monitor_task

Definition at line 252 of file __init__.py.


The documentation for this class was generated from the following file: