hello,
the demo platforms :
are the source configuration files anywhere available (or are they created in in other way) ?
cheers, Stef
hello,
the demo platforms :
are the source configuration files anywhere available (or are they created in in other way) ?
cheers, Stef
Is this what you are looking for?
thanks,
I don’t have that file,
but diving into the files, I think the configuration is directly created by a py-file:
"""
Demo platform for the cover component.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
from homeassistant.components.cover import (
CoverDevice, SUPPORT_OPEN, SUPPORT_CLOSE, ATTR_POSITION,
ATTR_TILT_POSITION)
from homeassistant.helpers.event import track_utc_time_change
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Demo covers."""
add_devices([
DemoCover(hass, 'Kitchen Window'),
DemoCover(hass, 'Hall Window', 10),
DemoCover(hass, 'Living Room Window', 70, 50),
DemoCover(hass, 'Garage Door', device_class='garage',
supported_features=(SUPPORT_OPEN | SUPPORT_CLOSE)),
])