Update link to docs (Jekyll 3 update)
This commit is contained in:
parent
64d5ca4da0
commit
97f9f8aa49
136 changed files with 175 additions and 258 deletions
|
@ -1,7 +1,6 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components
|
homeassistant.components
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This package contains components that can be plugged into Home Assistant.
|
This package contains components that can be plugged into Home Assistant.
|
||||||
|
|
||||||
Component design guidelines:
|
Component design guidelines:
|
||||||
|
@ -12,7 +11,6 @@ Each component that tracks states should create state entity names in the
|
||||||
format "<DOMAIN>.<OBJECT_ID>".
|
format "<DOMAIN>.<OBJECT_ID>".
|
||||||
|
|
||||||
Each component should publish services only under its own domain.
|
Each component should publish services only under its own domain.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import itertools as it
|
import itertools as it
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.alarm_control_panel.manual
|
||||||
Support for manual alarms.
|
Support for manual alarms.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/alarm_control_panel.manual.html
|
https://home-assistant.io/components/alarm_control_panel.manual/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.alarm_control_panel.mqtt
|
||||||
This platform enables the possibility to control a MQTT alarm.
|
This platform enables the possibility to control a MQTT alarm.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/alarm_control_panel.mqtt.html
|
https://home-assistant.io/components/alarm_control_panel.mqtt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import homeassistant.components.mqtt as mqtt
|
import homeassistant.components.mqtt as mqtt
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
homeassistant.components.alarm_control_panel.verisure
|
homeassistant.components.alarm_control_panel.verisure
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Interfaces with Verisure alarm control panel.
|
Interfaces with Verisure alarm control panel.
|
||||||
|
|
||||||
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/verisure/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.api
|
||||||
Provides a Rest API for Home Assistant.
|
Provides a Rest API for Home Assistant.
|
||||||
|
|
||||||
For more details about the RESTful API, please refer to the documentation at
|
For more details about the RESTful API, please refer to the documentation at
|
||||||
https://home-assistant.io/developers/api.html
|
https://home-assistant.io/developers/api/
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -5,7 +5,7 @@ Arduino component that connects to a directly attached Arduino board which
|
||||||
runs with the Firmata firmware.
|
runs with the Firmata firmware.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/arduino.html
|
https://home-assistant.io/components/arduino/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.automation
|
homeassistant.components.automation
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Allows to setup simple automation rules via the config file.
|
Allows to setup simple automation rules via the config file.
|
||||||
|
|
||||||
|
For more details about this component, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/automation/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.event
|
||||||
Offers event listening automation rules.
|
Offers event listening automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#event-trigger
|
at https://home-assistant.io/components/automation/#event-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.mqtt
|
||||||
Offers MQTT listening automation rules.
|
Offers MQTT listening automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#mqtt-trigger
|
at https://home-assistant.io/components/automation/#mqtt-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.automation.numeric_state
|
homeassistant.components.automation.numeric_state
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Offers numeric state listening automation rules.
|
Offers numeric state listening automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#numeric-state-trigger
|
at https://home-assistant.io/components/automation/#numeric-state-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.state
|
||||||
Offers state listening automation rules.
|
Offers state listening automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#state-trigger
|
at https://home-assistant.io/components/automation/#state-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.sun
|
||||||
Offers sun based automation rules.
|
Offers sun based automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#sun-trigger
|
at https://home-assistant.io/components/automation/#sun-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.time
|
||||||
Offers time listening automation rules.
|
Offers time listening automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#time-trigger
|
at https://home-assistant.io/components/automation/#time-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.automation.zone
|
||||||
Offers zone automation rules.
|
Offers zone automation rules.
|
||||||
|
|
||||||
For more details about this automation rule, please refer to the documentation
|
For more details about this automation rule, please refer to the documentation
|
||||||
at https://home-assistant.io/components/automation.html#zone-trigger
|
at https://home-assistant.io/components/automation/#zone-trigger
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.browser
|
homeassistant.components.browser
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Provides functionality to launch a webbrowser on the host machine.
|
Provides functionality to launch a webbrowser on the host machine.
|
||||||
|
|
||||||
|
For more details about this component, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/browser/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
DOMAIN = "browser"
|
DOMAIN = "browser"
|
||||||
|
|
|
@ -4,24 +4,8 @@ homeassistant.components.camera
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Component to interface with various cameras.
|
Component to interface with various cameras.
|
||||||
|
|
||||||
The following features are supported:
|
For more details about this component, please refer to the documentation at
|
||||||
- Returning recorded camera images and streams
|
https://home-assistant.io/components/camera/
|
||||||
- Proxying image requests via HA for external access
|
|
||||||
- Converting a still image url into a live video stream
|
|
||||||
|
|
||||||
Upcoming features
|
|
||||||
- Recording
|
|
||||||
- Snapshot
|
|
||||||
- Motion Detection Recording(for supported cameras)
|
|
||||||
- Automatic Configuration(for supported cameras)
|
|
||||||
- Creation of child entities for supported functions
|
|
||||||
- Collating motion event images passed via FTP into time based events
|
|
||||||
- A service for calling camera functions
|
|
||||||
- Camera movement(panning)
|
|
||||||
- Zoom
|
|
||||||
- Light/Nightvision toggling
|
|
||||||
- Support for more devices
|
|
||||||
- Expanded documentation
|
|
||||||
"""
|
"""
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.camera.foscam
|
||||||
This component provides basic support for Foscam IP cameras.
|
This component provides basic support for Foscam IP cameras.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/camera.foscam.html
|
https://home-assistant.io/components/camera.foscam/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.helpers import validate_config
|
from homeassistant.helpers import validate_config
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.camera.generic
|
||||||
Support for IP Cameras.
|
Support for IP Cameras.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/camera.generic.html
|
https://home-assistant.io/components/camera.generic/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.camera.mjpeg
|
||||||
Support for IP Cameras.
|
Support for IP Cameras.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/camera.mjpeg.html
|
https://home-assistant.io/components/camera.mjpeg/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
|
@ -41,10 +41,10 @@ class MjpegCamera(Camera):
|
||||||
self._mjpeg_url = device_info['mjpeg_url']
|
self._mjpeg_url = device_info['mjpeg_url']
|
||||||
|
|
||||||
def camera_image(self):
|
def camera_image(self):
|
||||||
""" Return a still image reponse from the camera. """
|
""" Return a still image response from the camera. """
|
||||||
|
|
||||||
def process_response(response):
|
def process_response(response):
|
||||||
""" Take in a response obj, return the jpg from it. """
|
""" Take in a response object, return the jpg from it. """
|
||||||
data = b''
|
data = b''
|
||||||
for chunk in response.iter_content(1024):
|
for chunk in response.iter_content(1024):
|
||||||
data += chunk
|
data += chunk
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.conversation
|
||||||
Provides functionality to have conversations with Home Assistant.
|
Provides functionality to have conversations with Home Assistant.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/conversation.html
|
https://home-assistant.io/components/conversation/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.device_sun_light_trigger
|
homeassistant.components.device_sun_light_trigger
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Provides functionality to turn on lights based on the state of the sun and
|
||||||
|
devices.
|
||||||
|
|
||||||
Provides functionality to turn on lights based on
|
For more details about this component, please refer to the documentation at
|
||||||
the state of the sun and devices.
|
https://home-assistant.io/components/device_sun_light_trigger/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -1,25 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.device_tracker
|
homeassistant.components.device_tracker
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Provides functionality to keep track of devices.
|
Provides functionality to keep track of devices.
|
||||||
|
|
||||||
device_tracker:
|
For more details about this component, please refer to the documentation at
|
||||||
platform: netgear
|
https://home-assistant.io/components/device_tracker/
|
||||||
|
|
||||||
# Optional
|
|
||||||
|
|
||||||
# How many seconds to wait after not seeing device to consider it not home
|
|
||||||
consider_home: 180
|
|
||||||
|
|
||||||
# Seconds between each scan
|
|
||||||
interval_seconds: 12
|
|
||||||
|
|
||||||
# New found devices auto found
|
|
||||||
track_new_devices: yes
|
|
||||||
|
|
||||||
# Maximum distance from home we consider people home
|
|
||||||
range_home: 100
|
|
||||||
"""
|
"""
|
||||||
# pylint: disable=too-many-instance-attributes, too-many-arguments
|
# pylint: disable=too-many-instance-attributes, too-many-arguments
|
||||||
# pylint: disable=too-many-locals
|
# pylint: disable=too-many-locals
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning an Actiontec MI424WR
|
||||||
(Verizon FIOS) router for device presence.
|
(Verizon FIOS) router for device presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.actiontec.html
|
https://home-assistant.io/components/device_tracker.actiontec/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a Aruba Access Point for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.aruba.html
|
https://home-assistant.io/components/device_tracker.aruba/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,32 +4,8 @@ homeassistant.components.device_tracker.asuswrt
|
||||||
Device tracker platform that supports scanning a ASUSWRT router for device
|
Device tracker platform that supports scanning a ASUSWRT router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
This device tracker needs telnet to be enabled on the router.
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/device_tracker.asuswrt/
|
||||||
Configuration:
|
|
||||||
|
|
||||||
To use the ASUSWRT tracker you will need to add something like the following
|
|
||||||
to your configuration.yaml file.
|
|
||||||
|
|
||||||
device_tracker:
|
|
||||||
platform: asuswrt
|
|
||||||
host: YOUR_ROUTER_IP
|
|
||||||
username: YOUR_ADMIN_USERNAME
|
|
||||||
password: YOUR_ADMIN_PASSWORD
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
host
|
|
||||||
*Required
|
|
||||||
The IP address of your router, e.g. 192.168.1.1.
|
|
||||||
|
|
||||||
username
|
|
||||||
*Required
|
|
||||||
The username of an user with administrative privileges, usually 'admin'.
|
|
||||||
|
|
||||||
password
|
|
||||||
*Required
|
|
||||||
The password for your given admin account.
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a DD-WRT router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.ddwrt.html
|
https://home-assistant.io/components/device_tracker.ddwrt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.device_tracker.demo
|
homeassistant.components.device_tracker.demo
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Demo platform for the device tracker.
|
Demo platform for the device tracker.
|
||||||
|
|
||||||
device_tracker:
|
device_tracker:
|
||||||
|
|
|
@ -4,9 +4,8 @@ homeassistant.components.device_tracker.geofancy
|
||||||
Geofancy platform for the device tracker.
|
Geofancy platform for the device tracker.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.geofancy.html
|
https://home-assistant.io/components/device_tracker.geofancy/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
HTTP_UNPROCESSABLE_ENTITY, HTTP_INTERNAL_SERVER_ERROR)
|
HTTP_UNPROCESSABLE_ENTITY, HTTP_INTERNAL_SERVER_ERROR)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a OpenWRT router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.luci.html
|
https://home-assistant.io/components/device_tracker.luci/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.device_tracker.mqtt
|
||||||
MQTT platform for the device tracker.
|
MQTT platform for the device tracker.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.mqtt.html
|
https://home-assistant.io/components/device_tracker.mqtt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant import util
|
from homeassistant import util
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a Netgear router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.netgear.html
|
https://home-assistant.io/components/device_tracker.netgear/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.device_tracker.nmap
|
||||||
Device tracker platform that supports scanning a network with nmap.
|
Device tracker platform that supports scanning a network with nmap.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.nmap_scanner.html
|
https://home-assistant.io/components/device_tracker.nmap_scanner/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.device_tracker.owntracks
|
||||||
OwnTracks platform for the device tracker.
|
OwnTracks platform for the device tracker.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.owntracks.html
|
https://home-assistant.io/components/device_tracker.owntracks/
|
||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports fetching WiFi associations
|
||||||
through SNMP.
|
through SNMP.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.snmp.html
|
https://home-assistant.io/components/device_tracker.snmp/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a THOMSON router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.thomson.html
|
https://home-assistant.io/components/device_tracker.thomson/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a Tomato router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.tomato.html
|
https://home-assistant.io/components/device_tracker.tomato/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a TP-Link router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.tplink.html
|
https://home-assistant.io/components/device_tracker.tplink/
|
||||||
"""
|
"""
|
||||||
import base64
|
import base64
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -5,7 +5,7 @@ Device tracker platform that supports scanning a OpenWRT router for device
|
||||||
presence.
|
presence.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.ubus.html
|
https://home-assistant.io/components/device_tracker.ubus/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.discovery
|
homeassistant.components.discovery
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Starts a service to scan in intervals for new devices.
|
Starts a service to scan in intervals for new devices.
|
||||||
|
|
||||||
Will emit EVENT_PLATFORM_DISCOVERED whenever a new service has been discovered.
|
Will emit EVENT_PLATFORM_DISCOVERED whenever a new service has been discovered.
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.downloader
|
||||||
Provides functionality to download files.
|
Provides functionality to download files.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/downloader.html
|
https://home-assistant.io/components/downloader/
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.group
|
||||||
Provides functionality to group devices that can be turned on or off.
|
Provides functionality to group devices that can be turned on or off.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/group.html
|
https://home-assistant.io/components/group/
|
||||||
"""
|
"""
|
||||||
import homeassistant.core as ha
|
import homeassistant.core as ha
|
||||||
from homeassistant.helpers import generate_entity_id
|
from homeassistant.helpers import generate_entity_id
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.history
|
||||||
Provide pre-made queries on top of the recorder component.
|
Provide pre-made queries on top of the recorder component.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/history.html
|
https://home-assistant.io/components/history/
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.http
|
||||||
This module provides an API and a HTTP interface for debug purposes.
|
This module provides an API and a HTTP interface for debug purposes.
|
||||||
|
|
||||||
For more details about the RESTful API, please refer to the documentation at
|
For more details about the RESTful API, please refer to the documentation at
|
||||||
https://home-assistant.io/developers/api.html
|
https://home-assistant.io/developers/api/
|
||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.ifttt
|
||||||
This component enable you to trigger Maker IFTTT recipes.
|
This component enable you to trigger Maker IFTTT recipes.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/ifttt.html
|
https://home-assistant.io/components/ifttt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.introduction
|
||||||
Component that will help guide the user taking its first steps.
|
Component that will help guide the user taking its first steps.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/introduction.html
|
https://home-assistant.io/components/introduction/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Connects to an ISY-994 controller and loads relevant components to control its
|
||||||
devices. Also contains the base classes for ISY Sensors, Lights, and Switches.
|
devices. Also contains the base classes for ISY Sensors, Lights, and Switches.
|
||||||
|
|
||||||
For configuration details please visit the documentation for this component at
|
For configuration details please visit the documentation for this component at
|
||||||
https://home-assistant.io/components/isy994.html
|
https://home-assistant.io/components/isy994/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.keyboard
|
||||||
Provides functionality to emulate keyboard presses on host machine.
|
Provides functionality to emulate keyboard presses on host machine.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/keyboard.html
|
https://home-assistant.io/components/keyboard/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,56 +1,11 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.light
|
homeassistant.components.light
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Provides functionality to interact with lights.
|
Provides functionality to interact with lights.
|
||||||
|
|
||||||
It offers the following services:
|
For more details about this component, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/light/
|
||||||
TURN_OFF - Turns one or multiple lights off.
|
|
||||||
|
|
||||||
Supports following parameters:
|
|
||||||
- transition
|
|
||||||
Integer that represents the time the light should take to transition to
|
|
||||||
the new state.
|
|
||||||
- entity_id
|
|
||||||
String or list of strings that point at entity_ids of lights.
|
|
||||||
|
|
||||||
TURN_ON - Turns one or multiple lights on and change attributes.
|
|
||||||
|
|
||||||
Supports following parameters:
|
|
||||||
- transition
|
|
||||||
Integer that represents the time the light should take to transition to
|
|
||||||
the new state.
|
|
||||||
|
|
||||||
- entity_id
|
|
||||||
String or list of strings that point at entity_ids of lights.
|
|
||||||
|
|
||||||
- profile
|
|
||||||
String with the name of one of the built-in profiles (relax, energize,
|
|
||||||
concentrate, reading) or one of the custom profiles defined in
|
|
||||||
light_profiles.csv in the current working directory.
|
|
||||||
|
|
||||||
Light profiles define a xy color and a brightness.
|
|
||||||
|
|
||||||
If a profile is given and a brightness or xy color then the profile values
|
|
||||||
will be overwritten.
|
|
||||||
|
|
||||||
- xy_color
|
|
||||||
A list containing two floats representing the xy color you want the light
|
|
||||||
to be.
|
|
||||||
|
|
||||||
- rgb_color
|
|
||||||
A list containing three integers representing the xy color you want the
|
|
||||||
light to be.
|
|
||||||
|
|
||||||
- color_temp
|
|
||||||
An INT in mireds represending the color temperature you want the light to be
|
|
||||||
|
|
||||||
- brightness
|
|
||||||
Integer between 0 and 255 representing how bright you want the light to be.
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import csv
|
import csv
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.light.blinksticklight
|
||||||
Support for Blinkstick lights.
|
Support for Blinkstick lights.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.blinksticklight.html
|
https://home-assistant.io/components/light.blinksticklight/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.light.demo
|
homeassistant.components.light.demo
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Demo platform that implements lights.
|
Demo platform that implements lights.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -3,7 +3,8 @@ homeassistant.components.light.hue
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for Hue lights.
|
Support for Hue lights.
|
||||||
|
|
||||||
https://home-assistant.io/components/light.hue.html
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/light.hue/
|
||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -3,7 +3,8 @@ homeassistant.components.light.hyperion
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for Hyperion remotes.
|
Support for Hyperion remotes.
|
||||||
|
|
||||||
https://home-assistant.io/components/light.hyperion.html
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/light.hyperion/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
homeassistant.components.light.isy994
|
homeassistant.components.light.isy994
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Support for ISY994 lights.
|
Support for ISY994 lights.
|
||||||
|
|
||||||
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/isy994/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.light.limitlessled
|
homeassistant.components.light.limitlessled
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Support for LimitlessLED bulbs.
|
||||||
|
|
||||||
Support for LimitlessLED bulbs, also known as...
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/light.limitlessled/
|
||||||
- EasyBulb
|
|
||||||
- AppLight
|
|
||||||
- AppLamp
|
|
||||||
- MiLight
|
|
||||||
- LEDme
|
|
||||||
- dekolight
|
|
||||||
- iLight
|
|
||||||
|
|
||||||
https://home-assistant.io/components/light.limitlessled.html
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.light.rfxtrx
|
||||||
Support for RFXtrx lights.
|
Support for RFXtrx lights.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.rfxtrx.html
|
https://home-assistant.io/components/light.rfxtrx/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import homeassistant.components.rfxtrx as rfxtrx
|
import homeassistant.components.rfxtrx as rfxtrx
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.light.tellstick
|
||||||
Support for Tellstick lights.
|
Support for Tellstick lights.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.tellstick.html
|
https://home-assistant.io/components/light.tellstick/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
# pylint: disable=no-name-in-module, import-error
|
# pylint: disable=no-name-in-module, import-error
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.light.vera
|
||||||
Support for Vera lights.
|
Support for Vera lights.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.vera.html
|
https://home-assistant.io/components/light.vera/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.light.wink
|
||||||
Support for Wink lights.
|
Support for Wink lights.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.wink.html
|
https://home-assistant.io/components/light.wink/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.logbook
|
||||||
Parses events and generates a human log.
|
Parses events and generates a human log.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/logbook.html
|
https://home-assistant.io/components/logbook/
|
||||||
"""
|
"""
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.logger
|
||||||
Component that will help guide the user taking its first steps.
|
Component that will help guide the user taking its first steps.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/logger.html
|
https://home-assistant.io/components/logger/
|
||||||
|
|
||||||
Sample configuration
|
Sample configuration
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.media_player
|
homeassistant.components.media_player
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Component to interface with various media players.
|
Component to interface with various media players.
|
||||||
|
|
||||||
|
For more details about this component, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/media_player/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.chromecast
|
||||||
Provides functionality to interact with Cast devices on the network.
|
Provides functionality to interact with Cast devices on the network.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.cast.html
|
https://home-assistant.io/components/media_player.cast/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.denon
|
||||||
Provides an interface to Denon Network Receivers.
|
Provides an interface to Denon Network Receivers.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.denon.html
|
https://home-assistant.io/components/media_player.denon/
|
||||||
"""
|
"""
|
||||||
import telnetlib
|
import telnetlib
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.firetv
|
||||||
Provides functionality to interact with FireTV devices.
|
Provides functionality to interact with FireTV devices.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.firetv.html
|
https://home-assistant.io/components/media_player.firetv/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.itunes
|
||||||
Provides an interface to iTunes API.
|
Provides an interface to iTunes API.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.itunes.html
|
https://home-assistant.io/components/media_player.itunes/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.kodi
|
||||||
Provides an interface to the XBMC/Kodi JSON-RPC API
|
Provides an interface to the XBMC/Kodi JSON-RPC API
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.kodi.html
|
https://home-assistant.io/components/media_player.kodi/
|
||||||
"""
|
"""
|
||||||
import urllib
|
import urllib
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.mpd
|
||||||
Provides functionality to interact with a Music Player Daemon.
|
Provides functionality to interact with a Music Player Daemon.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.mpd.html
|
https://home-assistant.io/components/media_player.mpd/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.plex
|
||||||
Provides an interface to the Plex API.
|
Provides an interface to the Plex API.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.plex.html
|
https://home-assistant.io/components/media_player.plex/
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.sonos
|
||||||
Provides an interface to Sonos players (via SoCo)
|
Provides an interface to Sonos players (via SoCo)
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.sonos.html
|
https://home-assistant.io/components/media_player.sonos/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.media_player.squeezebox
|
||||||
Provides an interface to the Logitech SqueezeBox API
|
Provides an interface to the Logitech SqueezeBox API
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/media_player.squeezebox.html
|
https://home-assistant.io/components/media_player.squeezebox/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import telnetlib
|
import telnetlib
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.modbus
|
||||||
Modbus component, using pymodbus (python3 branch).
|
Modbus component, using pymodbus (python3 branch).
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/modbus.html
|
https://home-assistant.io/components/modbus/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.mqtt
|
||||||
MQTT component, using paho-mqtt.
|
MQTT component, using paho-mqtt.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/mqtt.html
|
https://home-assistant.io/components/mqtt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -5,7 +5,7 @@ Component that records all events and state changes. Allows other components
|
||||||
to query this database.
|
to query this database.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/recorder.html
|
https://home-assistant.io/components/recorder/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.rfxtrx
|
||||||
Provides support for RFXtrx components.
|
Provides support for RFXtrx components.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/rfxtrx.html
|
https://home-assistant.io/components/rfxtrx/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.util import slugify
|
from homeassistant.util import slugify
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.scene
|
||||||
Allows users to set and activate scenes.
|
Allows users to set and activate scenes.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/scene.html
|
https://home-assistant.io/components/scene/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
|
@ -5,7 +5,7 @@ Scripts are a sequence of actions that can be triggered manually
|
||||||
by the user or automatically based upon automation events, etc.
|
by the user or automatically based upon automation events, etc.
|
||||||
|
|
||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/script.html
|
https://home-assistant.io/components/script/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
homeassistant.components.sensor
|
homeassistant.components.sensor
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Component to interface with various sensors that can be monitored.
|
Component to interface with various sensors that can be monitored.
|
||||||
|
|
||||||
|
For more details about this component, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/sensor/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ Support for getting information from Arduino pins. Only analog pins are
|
||||||
supported.
|
supported.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.arduino.html
|
https://home-assistant.io/components/sensor.arduino/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.arest
|
||||||
The arest sensor will consume an exposed aREST API of a device.
|
The arest sensor will consume an exposed aREST API of a device.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.arest.html
|
https://home-assistant.io/components/sensor.arest/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.bitcoin
|
||||||
Bitcoin information service that uses blockchain.info and its online wallet.
|
Bitcoin information service that uses blockchain.info and its online wallet.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.bitcoin.html
|
https://home-assistant.io/components/sensor.bitcoin/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.command_sensor
|
||||||
Allows to configure custom shell commands to turn a value for a sensor.
|
Allows to configure custom shell commands to turn a value for a sensor.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.command_sensor.html
|
https://home-assistant.io/components/sensor.command_sensor/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.cpuspeed
|
||||||
Shows the current CPU speed.
|
Shows the current CPU speed.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.cpuspeed.html
|
https://home-assistant.io/components/sensor.cpuspeed/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.dht
|
||||||
Adafruit DHT temperature and humidity sensor.
|
Adafruit DHT temperature and humidity sensor.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.dht.html
|
https://home-assistant.io/components/sensor.dht/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ Monitors home energy use as measured by an efergy engage hub using its
|
||||||
(unofficial, undocumented) API.
|
(unofficial, undocumented) API.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.efergy.html
|
https://home-assistant.io/components/sensor.efergy/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from requests import get, RequestException
|
from requests import get, RequestException
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.forecast
|
||||||
Forecast.io weather service.
|
Forecast.io weather service.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.forecast.html
|
https://home-assistant.io/components/sensor.forecast/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.glances
|
||||||
Gathers system information of hosts which running glances.
|
Gathers system information of hosts which running glances.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.glances.html
|
https://home-assistant.io/components/sensor.glances/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.isy994
|
||||||
Support for ISY994 sensors.
|
Support for ISY994 sensors.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/isy994.html
|
https://home-assistant.io/components/isy994/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.modbus
|
||||||
Support for Modbus sensors.
|
Support for Modbus sensors.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.modbus.html
|
https://home-assistant.io/components/sensor.modbus/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.mqtt
|
||||||
Allows to configure a MQTT sensor.
|
Allows to configure a MQTT sensor.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.mqtt.html
|
https://home-assistant.io/components/sensor.mqtt/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.mysensors
|
||||||
Support for MySensors sensors.
|
Support for MySensors sensors.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.mysensors.html
|
https://home-assistant.io/components/sensor.mysensors/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.openweathermap
|
||||||
OpenWeatherMap (OWM) service.
|
OpenWeatherMap (OWM) service.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.openweathermap.html
|
https://home-assistant.io/components/sensor.openweathermap/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.rest
|
||||||
The rest sensor will consume JSON responses sent by an exposed REST API.
|
The rest sensor will consume JSON responses sent by an exposed REST API.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.rest.html
|
https://home-assistant.io/components/sensor.rest/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.rfxtrx
|
||||||
Shows sensor values from RFXtrx sensors.
|
Shows sensor values from RFXtrx sensors.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.rfxtrx.html
|
https://home-assistant.io/components/sensor.rfxtrx/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.rpi_gpio
|
||||||
Allows to configure a binary state sensor using RPi GPIO.
|
Allows to configure a binary state sensor using RPi GPIO.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.rpi_gpio.html
|
https://home-assistant.io/components/sensor.rpi_gpio/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.sabnzbd
|
||||||
Monitors SABnzbd NZB client API.
|
Monitors SABnzbd NZB client API.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.sabnzbd.html
|
https://home-assistant.io/components/sensor.sabnzbd/
|
||||||
"""
|
"""
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -5,7 +5,7 @@ The Swiss public transport sensor will give you the next two departure times
|
||||||
from a given location to another one. This sensor is limited to Switzerland.
|
from a given location to another one. This sensor is limited to Switzerland.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.swiss_public_transport.html
|
https://home-assistant.io/components/sensor.swiss_public_transport/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.systemmonitor
|
||||||
Shows system monitor values such as: disk, memory, and processor use.
|
Shows system monitor values such as: disk, memory, and processor use.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.systemmonitor.html
|
https://home-assistant.io/components/sensor.systemmonitor/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.tellstick
|
||||||
Shows sensor values from Tellstick sensors.
|
Shows sensor values from Tellstick sensors.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.tellstick.html
|
https://home-assistant.io/components/sensor.tellstick/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.temper
|
||||||
Support for getting temperature from TEMPer devices.
|
Support for getting temperature from TEMPer devices.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.temper.html
|
https://home-assistant.io/components/sensor.temper/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
|
@ -4,7 +4,7 @@ homeassistant.components.sensor.time_date
|
||||||
Date and Time service.
|
Date and Time service.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/sensor.time_date.html
|
https://home-assistant.io/components/sensor.time_date/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue