Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.gc100.GC100Device Class Reference

Public Member Functions

def __init__ (self, hass, gc_device)
 
def read_sensor (self, port_addr, callback)
 
def subscribe (self, port_addr, callback)
 
def write_switch (self, port_addr, state, callback)
 

Public Attributes

 gc_device
 
 hass
 

Detailed Description

The GC100 component.

Definition at line 50 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.gc100.GC100Device.__init__ (   self,
  hass,
  gc_device 
)
Init a gc100 device.

Definition at line 53 of file __init__.py.

Member Function Documentation

◆ read_sensor()

def homeassistant.components.gc100.GC100Device.read_sensor (   self,
  port_addr,
  callback 
)
Read a value from a digital input.

Definition at line 58 of file __init__.py.

◆ subscribe()

def homeassistant.components.gc100.GC100Device.subscribe (   self,
  port_addr,
  callback 
)
Add detection for RISING and FALLING events.

Definition at line 66 of file __init__.py.

◆ write_switch()

def homeassistant.components.gc100.GC100Device.write_switch (   self,
  port_addr,
  state,
  callback 
)
Write a value to a relay.

Definition at line 62 of file __init__.py.

Member Data Documentation

◆ gc_device

homeassistant.components.gc100.GC100Device.gc_device

Definition at line 56 of file __init__.py.

◆ hass

homeassistant.components.gc100.GC100Device.hass

Definition at line 55 of file __init__.py.


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