Namespaces | |
| reproduce_state | |
Classes | |
| class | Counter |
| class | CounterStorageCollection |
Functions | |
| _T|dict[str, Any] | _T (_T|None value) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ATTR_INITIAL = "initial" |
| string | ATTR_MAXIMUM = "maximum" |
| string | ATTR_MINIMUM = "minimum" |
| string | ATTR_STEP = "step" |
| string | CONF_INITIAL = "initial" |
| CONF_MAXIMUM | |
| CONF_MINIMUM | |
| string | CONF_RESTORE = "restore" |
| string | CONF_STEP = "step" |
| CONFIG_SCHEMA | |
| default | |
| int | DEFAULT_INITIAL = 0 |
| int | DEFAULT_STEP = 1 |
| string | DOMAIN = "counter" |
| string | ENTITY_ID_FORMAT = DOMAIN + ".{}" |
| string | SERVICE_DECREMENT = "decrement" |
| string | SERVICE_INCREMENT = "increment" |
| string | SERVICE_RESET = "reset" |
| string | SERVICE_SET_VALUE = "set_value" |
| string | STORAGE_KEY = DOMAIN |
| int | STORAGE_VERSION = 1 |
| string | VALUE = "value" |
| VolDictType | |
Component to count within automations.
|
private |
Definition at line 63 of file __init__.py.
| bool homeassistant.components.counter.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the counters.
Definition at line 96 of file __init__.py.
|
private |
Definition at line 26 of file __init__.py.
| string homeassistant.components.counter.ATTR_INITIAL = "initial" |
Definition at line 28 of file __init__.py.
| string homeassistant.components.counter.ATTR_MAXIMUM = "maximum" |
Definition at line 31 of file __init__.py.
| string homeassistant.components.counter.ATTR_MINIMUM = "minimum" |
Definition at line 30 of file __init__.py.
| string homeassistant.components.counter.ATTR_STEP = "step" |
Definition at line 29 of file __init__.py.
| homeassistant.components.counter.CONF_INITIAL = "initial" |
Definition at line 34 of file __init__.py.
| homeassistant.components.counter.CONF_MAXIMUM |
Definition at line 56 of file __init__.py.
| homeassistant.components.counter.CONF_MINIMUM |
Definition at line 57 of file __init__.py.
| homeassistant.components.counter.CONF_RESTORE = "restore" |
Definition at line 35 of file __init__.py.
| homeassistant.components.counter.CONF_STEP = "step" |
Definition at line 36 of file __init__.py.
| homeassistant.components.counter.CONFIG_SCHEMA |
Definition at line 69 of file __init__.py.
| homeassistant.components.counter.default |
Definition at line 54 of file __init__.py.
| int homeassistant.components.counter.DEFAULT_INITIAL = 0 |
Definition at line 38 of file __init__.py.
| int homeassistant.components.counter.DEFAULT_STEP = 1 |
Definition at line 39 of file __init__.py.
| string homeassistant.components.counter.DOMAIN = "counter" |
Definition at line 40 of file __init__.py.
| string homeassistant.components.counter.ENTITY_ID_FORMAT = DOMAIN + ".{}" |
Definition at line 42 of file __init__.py.
| string homeassistant.components.counter.SERVICE_DECREMENT = "decrement" |
Definition at line 44 of file __init__.py.
| string homeassistant.components.counter.SERVICE_INCREMENT = "increment" |
Definition at line 45 of file __init__.py.
| string homeassistant.components.counter.SERVICE_RESET = "reset" |
Definition at line 46 of file __init__.py.
| string homeassistant.components.counter.SERVICE_SET_VALUE = "set_value" |
Definition at line 47 of file __init__.py.
| string homeassistant.components.counter.STORAGE_KEY = DOMAIN |
Definition at line 49 of file __init__.py.
| int homeassistant.components.counter.STORAGE_VERSION = 1 |
Definition at line 50 of file __init__.py.
| string homeassistant.components.counter.VALUE = "value" |
Definition at line 32 of file __init__.py.
| homeassistant.components.counter.VolDictType |
Definition at line 52 of file __init__.py.