Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.pilight.entity._ReceiveHandle Class Reference

Public Member Functions

def __init__ (self, config, echo)
 
def match (self, code)
 
def run (self, switch, turn_on)
 

Public Attributes

 config_items
 
 echo
 

Detailed Description

Definition at line 163 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.pilight.entity._ReceiveHandle.__init__ (   self,
  config,
  echo 
)
Initialize the handle.

Definition at line 164 of file entity.py.

Member Function Documentation

◆ match()

def homeassistant.components.pilight.entity._ReceiveHandle.match (   self,
  code 
)
Test if the received code matches the configured values.

The received values have to be a subset of the configured options.

Definition at line 169 of file entity.py.

◆ run()

def homeassistant.components.pilight.entity._ReceiveHandle.run (   self,
  switch,
  turn_on 
)
Change the state of the switch.

Definition at line 176 of file entity.py.

Member Data Documentation

◆ config_items

homeassistant.components.pilight.entity._ReceiveHandle.config_items

Definition at line 166 of file entity.py.

◆ echo

homeassistant.components.pilight.entity._ReceiveHandle.echo

Definition at line 167 of file entity.py.


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