Exemplo n.º 1
0
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        set(HVAC_MODES) - {HVAC_MODE_OFF},
        STATE_OFF,
    )
Exemplo n.º 2
0
def async_describe_on_off_states(
    hass: HomeAssistant, registry: GroupIntegrationRegistry
) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {STATE_ON, STATE_PAUSED, STATE_PLAYING, STATE_IDLE}, STATE_OFF
    )
Exemplo n.º 3
0
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {
            STATE_ALARM_ARMED_AWAY,
            STATE_ALARM_ARMED_CUSTOM_BYPASS,
            STATE_ALARM_ARMED_HOME,
            STATE_ALARM_ARMED_NIGHT,
            STATE_ALARM_TRIGGERED,
        },
        STATE_OFF,
    )
Exemplo n.º 4
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {
            STATE_ECO,
            STATE_ELECTRIC,
            STATE_PERFORMANCE,
            STATE_HIGH_DEMAND,
            STATE_HEAT_PUMP,
            STATE_GAS,
        },
        STATE_OFF,
    )
Exemplo n.º 5
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states({STATE_PROBLEM}, STATE_OK)
Exemplo n.º 6
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states(
        {STATE_CLEANING, STATE_ON, STATE_RETURNING, STATE_ERROR}, STATE_OFF)
Exemplo n.º 7
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.exclude_domain()
Exemplo n.º 8
0
def async_describe_on_off_states(hass: HomeAssistant,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    # On means open, Off means closed
    registry.on_off_states({STATE_OPEN}, STATE_CLOSED)
Exemplo n.º 9
0
def async_describe_on_off_states(hass: HomeAssistantType,
                                 registry: GroupIntegrationRegistry) -> None:
    """Describe group on off states."""
    registry.on_off_states({STATE_LOCKED}, STATE_UNLOCKED)