Classes | |
| class | WiLightValvePauseSwitch |
| class | WiLightValveSwitch |
Functions | |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities) |
| tuple[Any] | entities_from_discovered_wilight (PyWiLightDevice api_device) |
| int | hass_to_wilight_pause_time (int value) |
| int | wilight_to_hass_pause_time (int value) |
Variables | |
| string | ATTR_PAUSE_TIME = "pause_time" |
| string | ATTR_TRIGGER = "trigger" |
| string | ATTR_TRIGGER_1 = "trigger_1" |
| string | ATTR_TRIGGER_1_DESC = "trigger_1_description" |
| string | ATTR_TRIGGER_2 = "trigger_2" |
| string | ATTR_TRIGGER_2_DESC = "trigger_2_description" |
| string | ATTR_TRIGGER_3 = "trigger_3" |
| string | ATTR_TRIGGER_3_DESC = "trigger_3_description" |
| string | ATTR_TRIGGER_4 = "trigger_4" |
| string | ATTR_TRIGGER_4_DESC = "trigger_4_description" |
| string | ATTR_TRIGGER_INDEX = "trigger_index" |
| string | ATTR_WATERING_TIME = "watering_time" |
| string | DESC_PAUSE = "pause" |
| string | DESC_WATERING = "watering" |
| int | RANGE_PAUSE_TIME = 24 |
| int | RANGE_TRIGGER_INDEX = 4 |
| int | RANGE_WATERING_TIME = 1800 |
| string | SERVICE_SET_PAUSE_TIME = "set_pause_time" |
| string | SERVICE_SET_TRIGGER = "set_trigger" |
| string | SERVICE_SET_WATERING_TIME = "set_watering_time" |
| VALID_PAUSE_TIME = vol.All(vol.Coerce(int), vol.Range(min=1, max=RANGE_PAUSE_TIME)) | |
| VALID_TRIGGER_INDEX | |
| VALID_WATERING_TIME | |
Support for WiLight switches.
| None homeassistant.components.wilight.switch.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
| tuple[Any] homeassistant.components.wilight.switch.entities_from_discovered_wilight | ( | PyWiLightDevice | api_device | ) |
| int homeassistant.components.wilight.switch.hass_to_wilight_pause_time | ( | int | value | ) |
| int homeassistant.components.wilight.switch.wilight_to_hass_pause_time | ( | int | value | ) |
| string homeassistant.components.wilight.switch.ATTR_PAUSE_TIME = "pause_time" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER = "trigger" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_1 = "trigger_1" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_1_DESC = "trigger_1_description" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_2 = "trigger_2" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_2_DESC = "trigger_2_description" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_3 = "trigger_3" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_3_DESC = "trigger_3_description" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_4 = "trigger_4" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_4_DESC = "trigger_4_description" |
| string homeassistant.components.wilight.switch.ATTR_TRIGGER_INDEX = "trigger_index" |
| string homeassistant.components.wilight.switch.ATTR_WATERING_TIME = "watering_time" |
| string homeassistant.components.wilight.switch.DESC_PAUSE = "pause" |
| string homeassistant.components.wilight.switch.DESC_WATERING = "watering" |
| int homeassistant.components.wilight.switch.RANGE_PAUSE_TIME = 24 |
| int homeassistant.components.wilight.switch.RANGE_TRIGGER_INDEX = 4 |
| int homeassistant.components.wilight.switch.RANGE_WATERING_TIME = 1800 |
| string homeassistant.components.wilight.switch.SERVICE_SET_PAUSE_TIME = "set_pause_time" |
| string homeassistant.components.wilight.switch.SERVICE_SET_TRIGGER = "set_trigger" |
| string homeassistant.components.wilight.switch.SERVICE_SET_WATERING_TIME = "set_watering_time" |
| homeassistant.components.wilight.switch.VALID_PAUSE_TIME = vol.All(vol.Coerce(int), vol.Range(min=1, max=RANGE_PAUSE_TIME)) |
| homeassistant.components.wilight.switch.VALID_TRIGGER_INDEX |