Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.scsgate.switch.SCSGateScenarioSwitch Class Reference

Public Member Functions

def __init__ (self, scs_id, name, logger, hass)
 
def name (self)
 
def process_event (self, message)
 
def scs_id (self)
 

Private Attributes

 _hass
 
 _logger
 
 _name
 
 _scs_id
 

Detailed Description

Provides a SCSGate scenario switch.

This switch is always in an 'off" state, when toggled it's used to trigger
events.

Definition at line 163 of file switch.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.scsgate.switch.SCSGateScenarioSwitch.__init__ (   self,
  scs_id,
  name,
  logger,
  hass 
)
Initialize the scenario.

Definition at line 170 of file switch.py.

Member Function Documentation

◆ name()

def homeassistant.components.scsgate.switch.SCSGateScenarioSwitch.name (   self)
Return the name of the device if any.

Definition at line 183 of file switch.py.

◆ process_event()

def homeassistant.components.scsgate.switch.SCSGateScenarioSwitch.process_event (   self,
  message 
)
Handle a SCSGate message related with this switch.

Definition at line 187 of file switch.py.

◆ scs_id()

def homeassistant.components.scsgate.switch.SCSGateScenarioSwitch.scs_id (   self)
Return the SCS ID.

Definition at line 178 of file switch.py.

Member Data Documentation

◆ _hass

homeassistant.components.scsgate.switch.SCSGateScenarioSwitch._hass
private

Definition at line 175 of file switch.py.

◆ _logger

homeassistant.components.scsgate.switch.SCSGateScenarioSwitch._logger
private

Definition at line 174 of file switch.py.

◆ _name

homeassistant.components.scsgate.switch.SCSGateScenarioSwitch._name
private

Definition at line 172 of file switch.py.

◆ _scs_id

homeassistant.components.scsgate.switch.SCSGateScenarioSwitch._scs_id
private

Definition at line 173 of file switch.py.


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