Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.futurenow.light Namespace Reference

Classes

class  FutureNowLight
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 
def to_futurenow_level (level)
 
def to_hass_level (level)
 

Variables

string CONF_DRIVER = "driver"
 
string CONF_DRIVER_FNIP6X10AD = "FNIP6x10ad"
 
string CONF_DRIVER_FNIP8X10A = "FNIP8x10a"
 
list CONF_DRIVER_TYPES = [CONF_DRIVER_FNIP6X10AD, CONF_DRIVER_FNIP8X10A]
 
 DEVICE_SCHEMA
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for FutureNow Ethernet unit outputs as Lights.

Function Documentation

◆ setup_platform()

None homeassistant.components.futurenow.light.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the light platform for each FutureNow unit.

Definition at line 44 of file light.py.

◆ to_futurenow_level()

def homeassistant.components.futurenow.light.to_futurenow_level (   level)
Convert the given Home Assistant light level (0-255) to FutureNow (0-100).

Definition at line 65 of file light.py.

◆ to_hass_level()

def homeassistant.components.futurenow.light.to_hass_level (   level)
Convert the given FutureNow (0-100) light level to Home Assistant (0-255).

Definition at line 70 of file light.py.

Variable Documentation

◆ CONF_DRIVER

string homeassistant.components.futurenow.light.CONF_DRIVER = "driver"

Definition at line 22 of file light.py.

◆ CONF_DRIVER_FNIP6X10AD

string homeassistant.components.futurenow.light.CONF_DRIVER_FNIP6X10AD = "FNIP6x10ad"

Definition at line 23 of file light.py.

◆ CONF_DRIVER_FNIP8X10A

string homeassistant.components.futurenow.light.CONF_DRIVER_FNIP8X10A = "FNIP8x10a"

Definition at line 24 of file light.py.

◆ CONF_DRIVER_TYPES

list homeassistant.components.futurenow.light.CONF_DRIVER_TYPES = [CONF_DRIVER_FNIP6X10AD, CONF_DRIVER_FNIP8X10A]

Definition at line 25 of file light.py.

◆ DEVICE_SCHEMA

homeassistant.components.futurenow.light.DEVICE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_NAME): cv.string,
4  vol.Optional("dimmable", default=False): cv.boolean,
5  }
6 )

Definition at line 27 of file light.py.

◆ PLATFORM_SCHEMA

homeassistant.components.futurenow.light.PLATFORM_SCHEMA
Initial value:
1 = LIGHT_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_DRIVER): vol.In(CONF_DRIVER_TYPES),
4  vol.Required(CONF_HOST): cv.string,
5  vol.Required(CONF_PORT): cv.port,
6  vol.Required(CONF_DEVICES): {cv.string: DEVICE_SCHEMA},
7  }
8 )

Definition at line 34 of file light.py.