Move components to folders (#20774)

* Move all components into folders

* Move component tests into folders

* Fix init moving

* Move tests

* Lint

* Update coverage

* Fix service descriptions

* Update CODEOWNERS
This commit is contained in:
Paulus Schoutsen 2019-02-05 19:31:15 -08:00 committed by GitHub
parent d13b2ca6ef
commit b8cc547fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
275 changed files with 512 additions and 684 deletions

View File

@ -10,11 +10,8 @@ omit =
homeassistant/helpers/signal.py
# omit pieces of code that rely on external devices being present
homeassistant/components/ads/*
homeassistant/components/ihc/*
homeassistant/components/knx/*
homeassistant/components/lcn/*
homeassistant/components/abode/*
homeassistant/components/ads/*
homeassistant/components/air_quality/nilu.py
homeassistant/components/air_quality/opensensemap.py
homeassistant/components/alarm_control_panel/alarmdotcom.py
@ -30,7 +27,7 @@ omit =
homeassistant/components/amcrest/*
homeassistant/components/android_ip_webcam/*
homeassistant/components/apcupsd/*
homeassistant/components/apiai.py
homeassistant/components/apiai/*
homeassistant/components/apple_tv/*
homeassistant/components/aqualogic/*
homeassistant/components/arduino/*
@ -52,7 +49,7 @@ omit =
homeassistant/components/blink/*
homeassistant/components/bloomsky/*
homeassistant/components/bmw_connected_drive/*
homeassistant/components/browser.py
homeassistant/components/browser/*
homeassistant/components/calendar/caldav.py
homeassistant/components/calendar/todoist.py
homeassistant/components/camera/bloomsky.py
@ -85,8 +82,8 @@ omit =
homeassistant/components/climate/touchline.py
homeassistant/components/climate/venstar.py
homeassistant/components/climate/zhong_hong.py
homeassistant/components/cloudflare.py
homeassistant/components/coinbase.py
homeassistant/components/cloudflare/*
homeassistant/components/coinbase/*
homeassistant/components/comfoconnect/*
homeassistant/components/cover/aladdin_connect.py
homeassistant/components/cover/brunt.py
@ -139,10 +136,10 @@ omit =
homeassistant/components/device_tracker/trackr.py
homeassistant/components/device_tracker/ubus.py
homeassistant/components/digital_ocean/*
homeassistant/components/dominos.py
homeassistant/components/dominos/*
homeassistant/components/doorbird/*
homeassistant/components/dovado/*
homeassistant/components/downloader.py
homeassistant/components/downloader/*
homeassistant/components/dweet/*
homeassistant/components/ecoal_boiler/*
homeassistant/components/ecobee/*
@ -151,7 +148,7 @@ omit =
homeassistant/components/egardia/*
homeassistant/components/eight_sleep/*
homeassistant/components/elkm1/*
homeassistant/components/emoncms_history.py
homeassistant/components/emoncms_history/*
homeassistant/components/emulated_hue/upnp.py
homeassistant/components/enocean/*
homeassistant/components/envisalink/*
@ -167,15 +164,15 @@ omit =
homeassistant/components/fan/wemo.py
homeassistant/components/fastdotcom/*
homeassistant/components/fibaro/*
homeassistant/components/folder_watcher.py
homeassistant/components/foursquare.py
homeassistant/components/folder_watcher/*
homeassistant/components/foursquare/*
homeassistant/components/freebox/*
homeassistant/components/fritzbox/*
homeassistant/components/gc100/*
homeassistant/components/goalfeed.py
homeassistant/components/goalfeed/*
homeassistant/components/google/*
homeassistant/components/googlehome/*
homeassistant/components/greeneye_monitor.py
homeassistant/components/greeneye_monitor/*
homeassistant/components/habitica/*
homeassistant/components/hangouts/__init__.py
homeassistant/components/hangouts/*
@ -191,26 +188,29 @@ omit =
homeassistant/components/homeworks/*
homeassistant/components/huawei_lte/*
homeassistant/components/hydrawise/*
homeassistant/components/idteck_prox.py
homeassistant/components/idteck_prox/*
homeassistant/components/ifttt/*
homeassistant/components/ihc/*
homeassistant/components/image_processing/dlib_face_detect.py
homeassistant/components/image_processing/dlib_face_identify.py
homeassistant/components/image_processing/qrcode.py
homeassistant/components/image_processing/seven_segments.py
homeassistant/components/image_processing/tensorflow.py
homeassistant/components/insteon_local.py
homeassistant/components/insteon_plm.py
homeassistant/components/insteon_local/*
homeassistant/components/insteon_plm/*
homeassistant/components/insteon/*
homeassistant/components/ios/*
homeassistant/components/iota/*
homeassistant/components/isy994/*
homeassistant/components/joaoapps_join/*
homeassistant/components/juicenet/*
homeassistant/components/keyboard_remote.py
homeassistant/components/keyboard.py
homeassistant/components/keyboard_remote/*
homeassistant/components/keyboard/*
homeassistant/components/kira/*
homeassistant/components/knx/*
homeassistant/components/konnected/*
homeassistant/components/lametric/*
homeassistant/components/lcn/*
homeassistant/components/lifx/*
homeassistant/components/light/avion.py
homeassistant/components/light/blinksticklight.py
@ -244,7 +244,7 @@ omit =
homeassistant/components/light/zengge.py
homeassistant/components/lightwave/*
homeassistant/components/linode/*
homeassistant/components/lirc.py
homeassistant/components/lirc/*
homeassistant/components/lock/kiwi.py
homeassistant/components/lock/lockitron.py
homeassistant/components/lock/nello.py
@ -257,10 +257,10 @@ omit =
homeassistant/components/lutron/*
homeassistant/components/mailbox/asterisk_cdr.py
homeassistant/components/mailgun/notify.py
homeassistant/components/map.py
homeassistant/components/map/*
homeassistant/components/matrix/*
homeassistant/components/maxcube/*
homeassistant/components/media_extractor.py
homeassistant/components/media_extractor/*
homeassistant/components/media_player/anthemav.py
homeassistant/components/media_player/aquostv.py
homeassistant/components/media_player/bluesound.py
@ -317,7 +317,7 @@ omit =
homeassistant/components/mochad/*
homeassistant/components/modbus/*
homeassistant/components/mychevy/*
homeassistant/components/mycroft.py
homeassistant/components/mycroft/*
homeassistant/components/mysensors/*
homeassistant/components/neato/*
homeassistant/components/nest/*
@ -364,7 +364,7 @@ omit =
homeassistant/components/notify/twilio_sms.py
homeassistant/components/notify/twitter.py
homeassistant/components/notify/xmpp.py
homeassistant/components/nuimo_controller.py
homeassistant/components/nuimo_controller/*
homeassistant/components/octoprint/*
homeassistant/components/opencv/*
homeassistant/components/opentherm_gw/*
@ -374,10 +374,10 @@ omit =
homeassistant/components/pilight/*
homeassistant/components/plum_lightpad/*
homeassistant/components/point/*
homeassistant/components/prometheus.py
homeassistant/components/prometheus/*
homeassistant/components/qwikswitch/*
homeassistant/components/rachio/*
homeassistant/components/rainbird.py
homeassistant/components/rainbird/*
homeassistant/components/raincloud/*
homeassistant/components/rainmachine/__init__.py
homeassistant/components/rainmachine/binary_sensor.py
@ -390,7 +390,7 @@ omit =
homeassistant/components/remote/itach.py
homeassistant/components/rfxtrx/*
homeassistant/components/roku/*
homeassistant/components/route53.py
homeassistant/components/route53/*
homeassistant/components/rpi_gpio/*
homeassistant/components/rpi_pfio/*
homeassistant/components/sabnzbd/*
@ -572,15 +572,15 @@ omit =
homeassistant/components/sensor/xbox_live.py
homeassistant/components/sensor/zamg.py
homeassistant/components/sensor/zestimate.py
homeassistant/components/shiftr.py
homeassistant/components/shiftr/*
homeassistant/components/simplisafe/__init__.py
homeassistant/components/simplisafe/alarm_control_panel.py
homeassistant/components/sisyphus/*
homeassistant/components/skybell/*
homeassistant/components/smappee/*
homeassistant/components/sonos/*
homeassistant/components/spc/*
homeassistant/components/speedtestdotnet/*
homeassistant/components/spc.py
homeassistant/components/spider/*
homeassistant/components/switch/acer_projector.py
homeassistant/components/switch/anel_pwrctrl.py
@ -616,7 +616,7 @@ omit =
homeassistant/components/tellstick/*
homeassistant/components/tesla/*
homeassistant/components/thethingsnetwork/*
homeassistant/components/thingspeak.py
homeassistant/components/thingspeak/*
homeassistant/components/thinkingcleaner/*
homeassistant/components/tibber/*
homeassistant/components/toon/*
@ -640,7 +640,7 @@ omit =
homeassistant/components/w800rf32/*
homeassistant/components/water_heater/econet.py
homeassistant/components/waterfurnace/*
homeassistant/components/watson_iot.py
homeassistant/components/watson_iot/*
homeassistant/components/weather/bom.py
homeassistant/components/weather/buienradar.py
homeassistant/components/weather/darksky.py
@ -655,7 +655,7 @@ omit =
homeassistant/components/xiaomi_aqara/*
homeassistant/components/xiaomi_miio/*
homeassistant/components/zabbix/*
homeassistant/components/zeroconf.py
homeassistant/components/zeroconf/*
homeassistant/components/zha/__init__.py
homeassistant/components/zha/api.py
homeassistant/components/zha/binary_sensor.py

View File

@ -7,34 +7,34 @@ setup.py @home-assistant/core
homeassistant/*.py @home-assistant/core
homeassistant/helpers/* @home-assistant/core
homeassistant/util/* @home-assistant/core
homeassistant/components/api.py @home-assistant/core
homeassistant/components/api/* @home-assistant/core
homeassistant/components/auth/* @home-assistant/core
homeassistant/components/automation/* @home-assistant/core
homeassistant/components/cloud/* @home-assistant/core
homeassistant/components/config/* @home-assistant/core
homeassistant/components/configurator.py @home-assistant/core
homeassistant/components/configurator/* @home-assistant/core
homeassistant/components/conversation/* @home-assistant/core
homeassistant/components/frontend/* @home-assistant/core
homeassistant/components/group/* @home-assistant/core
homeassistant/components/history.py @home-assistant/core
homeassistant/components/history/* @home-assistant/core
homeassistant/components/http/* @home-assistant/core
homeassistant/components/input_*.py @home-assistant/core
homeassistant/components/introduction.py @home-assistant/core
homeassistant/components/logger.py @home-assistant/core
homeassistant/components/introduction/* @home-assistant/core
homeassistant/components/logger/* @home-assistant/core
homeassistant/components/lovelace/* @home-assistant/core
homeassistant/components/mqtt/* @home-assistant/core
homeassistant/components/panel_custom.py @home-assistant/core
homeassistant/components/panel_iframe.py @home-assistant/core
homeassistant/components/panel_custom/* @home-assistant/core
homeassistant/components/panel_iframe/* @home-assistant/core
homeassistant/components/onboarding/* @home-assistant/core
homeassistant/components/persistent_notification/* @home-assistant/core
homeassistant/components/scene/__init__.py @home-assistant/core
homeassistant/components/scene/hass.py @home-assistant/core
homeassistant/components/script.py @home-assistant/core
homeassistant/components/shell_command.py @home-assistant/core
homeassistant/components/sun.py @home-assistant/core
homeassistant/components/updater.py @home-assistant/core
homeassistant/components/script/* @home-assistant/core
homeassistant/components/shell_command/* @home-assistant/core
homeassistant/components/sun/* @home-assistant/core
homeassistant/components/updater/* @home-assistant/core
homeassistant/components/weblink/* @home-assistant/core
homeassistant/components/websocket_api.py @home-assistant/core
homeassistant/components/websocket_api/* @home-assistant/core
homeassistant/components/zone/* @home-assistant/core
# Home Assistant Developer Teams
@ -67,8 +67,8 @@ homeassistant/components/device_tracker/quantum_gateway.py @cisasteelersfan
homeassistant/components/device_tracker/tile.py @bachya
homeassistant/components/device_tracker/traccar.py @ludeeus
homeassistant/components/device_tracker/bt_smarthub.py @jxwolstenholme
homeassistant/components/history_graph.py @andrey-git
homeassistant/components/influx.py @fabaff
homeassistant/components/history_graph/* @andrey-git
homeassistant/components/influx/* @fabaff
homeassistant/components/light/lifx_legacy.py @amelchio
homeassistant/components/light/tplink.py @rytilahti
homeassistant/components/light/yeelight.py @rytilahti
@ -84,7 +84,7 @@ homeassistant/components/media_player/mpd.py @fabaff
homeassistant/components/media_player/sonos.py @amelchio
homeassistant/components/media_player/xiaomi_tv.py @fattdev
homeassistant/components/media_player/yamaha_musiccast.py @jalmeroth
homeassistant/components/no_ip.py @fabaff
homeassistant/components/no_ip/* @fabaff
homeassistant/components/notify/file.py @fabaff
homeassistant/components/notify/flock.py @fabaff
homeassistant/components/notify/instapush.py @fabaff
@ -93,7 +93,7 @@ homeassistant/components/notify/smtp.py @fabaff
homeassistant/components/notify/syslog.py @fabaff
homeassistant/components/notify/xmpp.py @fabaff
homeassistant/components/notify/yessssms.py @flowolf
homeassistant/components/plant.py @ChristianKuehnel
homeassistant/components/plant/* @ChristianKuehnel
homeassistant/components/remote/harmony.py @ehendrix23
homeassistant/components/scene/lifx_cloud.py @amelchio
homeassistant/components/sensor/airvisual.py @bachya
@ -138,8 +138,8 @@ homeassistant/components/sensor/time_data.py @fabaff
homeassistant/components/sensor/version.py @fabaff
homeassistant/components/sensor/waqi.py @andrey-git
homeassistant/components/sensor/worldclock.py @fabaff
homeassistant/components/shiftr.py @fabaff
homeassistant/components/spaceapi.py @fabaff
homeassistant/components/shiftr/* @fabaff
homeassistant/components/spaceapi/* @fabaff
homeassistant/components/switch/switchbot.py @danielhiversen
homeassistant/components/switch/switchmate.py @danielhiversen
homeassistant/components/switch/tplink.py @rytilahti
@ -149,11 +149,11 @@ homeassistant/components/weather/darksky.py @fabaff
homeassistant/components/weather/demo.py @fabaff
homeassistant/components/weather/met.py @danielhiversen
homeassistant/components/weather/openweathermap.py @fabaff
homeassistant/components/xiaomi_aqara.py @danielhiversen @syssi
homeassistant/components/xiaomi_aqara/* @danielhiversen @syssi
# A
homeassistant/components/ambient_station/* @bachya
homeassistant/components/arduino.py @fabaff
homeassistant/components/arduino/* @fabaff
homeassistant/components/*/arduino.py @fabaff
homeassistant/components/*/arest.py @fabaff
homeassistant/components/*/axis.py @kane610
@ -161,64 +161,64 @@ homeassistant/components/*/axis.py @kane610
# B
homeassistant/components/blink/* @fronzbot
homeassistant/components/*/blink.py @fronzbot
homeassistant/components/bmw_connected_drive.py @ChristianKuehnel
homeassistant/components/bmw_connected_drive/* @ChristianKuehnel
homeassistant/components/*/bmw_connected_drive.py @ChristianKuehnel
homeassistant/components/*/broadlink.py @danielhiversen
# C
homeassistant/components/cloudflare.py @ludeeus
homeassistant/components/cloudflare/* @ludeeus
homeassistant/components/counter/* @fabaff
# D
homeassistant/components/daikin.py @fredrike @rofrantz
homeassistant/components/daikin/* @fredrike @rofrantz
homeassistant/components/*/daikin.py @fredrike @rofrantz
homeassistant/components/*/deconz.py @kane610
homeassistant/components/digital_ocean.py @fabaff
homeassistant/components/digital_ocean/* @fabaff
homeassistant/components/*/digital_ocean.py @fabaff
homeassistant/components/dweet.py @fabaff
homeassistant/components/dweet/* @fabaff
homeassistant/components/*/dweet.py @fabaff
# E
homeassistant/components/ecovacs.py @OverloadUT
homeassistant/components/ecovacs/* @OverloadUT
homeassistant/components/*/ecovacs.py @OverloadUT
homeassistant/components/*/edp_redy.py @abmantis
homeassistant/components/edp_redy.py @abmantis
homeassistant/components/eight_sleep.py @mezz64
homeassistant/components/edp_redy/* @abmantis
homeassistant/components/eight_sleep/* @mezz64
homeassistant/components/*/eight_sleep.py @mezz64
homeassistant/components/esphome/*.py @OttoWinter
# G
homeassistant/components/googlehome.py @ludeeus
homeassistant/components/googlehome/* @ludeeus
homeassistant/components/*/googlehome.py @ludeeus
# H
homeassistant/components/hive.py @Rendili @KJonline
homeassistant/components/hive/* @Rendili @KJonline
homeassistant/components/*/hive.py @Rendili @KJonline
homeassistant/components/homekit/* @cdce8p
homeassistant/components/huawei_lte.py @scop
homeassistant/components/huawei_lte/* @scop
homeassistant/components/*/huawei_lte.py @scop
# K
homeassistant/components/knx.py @Julius2342
homeassistant/components/knx/* @Julius2342
homeassistant/components/*/knx.py @Julius2342
homeassistant/components/konnected.py @heythisisnate
homeassistant/components/konnected/* @heythisisnate
homeassistant/components/*/konnected.py @heythisisnate
# L
homeassistant/components/lifx.py @amelchio
homeassistant/components/lifx/* @amelchio
homeassistant/components/*/lifx.py @amelchio
homeassistant/components/luftdaten/* @fabaff
homeassistant/components/*/luftdaten.py @fabaff
# M
homeassistant/components/matrix.py @tinloaf
homeassistant/components/matrix/* @tinloaf
homeassistant/components/*/matrix.py @tinloaf
homeassistant/components/melissa.py @kennedyshead
homeassistant/components/melissa/* @kennedyshead
homeassistant/components/*/melissa.py @kennedyshead
homeassistant/components/*/mystrom.py @fabaff
# N
homeassistant/components/ness_alarm.py @nickw444
homeassistant/components/ness_alarm/* @nickw444
homeassistant/components/*/ness_alarm.py @nickw444
# O
@ -229,7 +229,7 @@ homeassistant/components/point/* @fredrike
homeassistant/components/*/point.py @fredrike
# Q
homeassistant/components/qwikswitch.py @kellerza
homeassistant/components/qwikswitch/* @kellerza
homeassistant/components/*/qwikswitch.py @kellerza
# R
@ -243,13 +243,13 @@ homeassistant/components/smartthings/* @andrewsayre
homeassistant/components/spider/* @peternijssen
# T
homeassistant/components/tahoma.py @philklei
homeassistant/components/tahoma/* @philklei
homeassistant/components/*/tahoma.py @philklei
homeassistant/components/tellduslive/*.py @fredrike
homeassistant/components/*/tellduslive.py @fredrike
homeassistant/components/tesla.py @zabuldon
homeassistant/components/tesla/* @zabuldon
homeassistant/components/*/tesla.py @zabuldon
homeassistant/components/thethingsnetwork.py @fabaff
homeassistant/components/thethingsnetwork/* @fabaff
homeassistant/components/*/thethingsnetwork.py @fabaff
homeassistant/components/tibber/* @danielhiversen
homeassistant/components/*/tibber.py @danielhiversen
@ -257,17 +257,17 @@ homeassistant/components/tradfri/* @ggravlingen
homeassistant/components/*/tradfri.py @ggravlingen
# U
homeassistant/components/unifi.py @kane610
homeassistant/components/unifi/* @kane610
homeassistant/components/switch/unifi.py @kane610
homeassistant/components/upcloud.py @scop
homeassistant/components/upcloud/* @scop
homeassistant/components/*/upcloud.py @scop
# V
homeassistant/components/velux.py @Julius2342
homeassistant/components/velux/* @Julius2342
homeassistant/components/*/velux.py @Julius2342
# W
homeassistant/components/wemo.py @sqldiablo
homeassistant/components/wemo/* @sqldiablo
homeassistant/components/*/wemo.py @sqldiablo
# X

View File

@ -0,0 +1,13 @@
capture_image:
description: Request a new image capture from a camera device.
fields:
entity_id: {description: Entity id of the camera to request an image., example: camera.downstairs_motion_camera}
change_setting:
description: Change an Abode system setting.
fields:
setting: {description: Setting to change., example: beeper_mute}
value: {description: Value of the setting., example: '1'}
trigger_quick_action:
description: Trigger an Abode quick action.
fields:
entity_id: {description: Entity id of the quick action to trigger., example: binary_sensor.home_quick_action}

View File

@ -0,0 +1,12 @@
toggle:
description: Toggle alert's notifications.
fields:
entity_id: {description: Name of the alert to toggle., example: alert.garage_door_open}
turn_off:
description: Silence alert's notifications.
fields:
entity_id: {description: Name of the alert to silence., example: alert.garage_door_open}
turn_on:
description: Reset alert's notifications.
fields:
entity_id: {description: Name of the alert to reset., example: alert.garage_door_open}

View File

@ -0,0 +1,5 @@
apple_tv_authenticate:
description: Start AirPlay device authentication.
fields:
entity_id: {description: Name(s) of entities to authenticate with., example: media_player.apple_tv}
apple_tv_scan: {description: Scan for Apple TV devices.}

View File

@ -0,0 +1,6 @@
heat_set:
description: Set heating level for eight sleep.
fields:
duration: {description: Duration to heat at the target level in seconds., example: 3600}
entity_id: {description: Entity id of the bed state to adjust., example: sensor.eight_left_bed_state}
target: {description: Target heating level from 0-100., example: 35}

View File

@ -0,0 +1,15 @@
restart:
description: Send a restart command to a ffmpeg based sensor.
fields:
entity_id: {description: Name(s) of entities that will restart. Platform dependent.,
example: binary_sensor.ffmpeg_noise}
start:
description: Send a start command to a ffmpeg based sensor.
fields:
entity_id: {description: Name(s) of entities that will start. Platform dependent.,
example: binary_sensor.ffmpeg_noise}
stop:
description: Send a stop command to a ffmpeg based sensor.
fields:
entity_id: {description: Name(s) of entities that will stop. Platform dependent.,
example: binary_sensor.ffmpeg_noise}

View File

@ -0,0 +1,29 @@
checkin:
description: Check a user into a Foursquare venue.
fields:
alt: {description: 'Altitude of the user''s location, in meters. [Optional]',
example: 0}
altAcc: {description: 'Vertical accuracy of the user''s location, in meters.',
example: 1}
broadcast: {description: 'Who to broadcast this check-in to. Accepts a comma-delimited
list of values: private (off the grid) or public (share with friends), facebook
share on facebook, twitter share on twitter, followers share with followers
(celebrity mode users only), If no valid value is found, the default is public.
[Optional]', example: 'public,twitter'}
eventId: {description: 'The event the user is checking in to. [Optional]', example: UHR8THISVNT}
ll: {description: 'Latitude and longitude of the user''s location. Only specify
this field if you have a GPS or other device reported location for the user
at the time of check-in. [Optional]', example: '33.7,44.2'}
llAcc: {description: 'Accuracy of the user''s latitude and longitude, in meters.
[Optional]', example: 1}
mentions: {description: 'Mentions in your check-in. This parameter is a semicolon-delimited
list of mentions. A single mention is of the form "start,end,userid", where
start is the index of the first character in the shout representing the mention,
end is the index of the first character in the shout after the mention, and
userid is the userid of the user being mentioned. If userid is prefixed with
"fbu-", this indicates a Facebook userid that is being mention. Character
indices in shouts are 0-based. [Optional]', example: '5,10,HZXXY3Y;15,20,GZYYZ3Z;25,30,fbu-GZXY13Y'}
shout: {description: 'A message about your check-in. The maximum length of this
field is 140 characters. [Optional]', example: There are crayons! Crayons!}
venueId: {description: 'The Foursquare venue where the user is checking in. [Required]',
example: IHR8THISVNU}

View File

@ -0,0 +1,37 @@
addon_install:
description: Install a HassIO docker addon.
fields:
addon: {description: Name of addon., example: smb_config}
version: {description: Optional or it will be use the latest version., example: '0.2'}
addon_start:
description: Start a HassIO docker addon.
fields:
addon: {description: Name of addon., example: smb_config}
addon_stop:
description: Stop a HassIO docker addon.
fields:
addon: {description: Name of addon., example: smb_config}
addon_uninstall:
description: Uninstall a HassIO docker addon.
fields:
addon: {description: Name of addon., example: smb_config}
addon_update:
description: Update a HassIO docker addon.
fields:
addon: {description: Name of addon., example: smb_config}
version: {description: Optional or it will be use the latest version., example: '0.2'}
homeassistant_update:
description: Update HomeAssistant docker image.
fields:
version: {description: Optional or it will be use the latest version., example: 0.40.1}
host_reboot: {description: Reboot host computer.}
host_shutdown: {description: Poweroff host computer.}
host_update:
description: Update host computer.
fields:
version: {description: Optional or it will be use the latest version., example: '0.3'}
supervisor_reload: {description: Reload HassIO supervisor addons/updates/configs.}
supervisor_update:
description: Update HassIO supervisor.
fields:
version: {description: Optional or it will be use the latest version., example: '0.3'}

View File

@ -0,0 +1,32 @@
power_on: {description: Power on all devices which supports it.}
select_device:
description: Select HDMI device.
fields:
device: {description: 'Address of device to select. Can be entity_id, physical
address or alias from confuguration.', example: '"switch.hdmi_1" or "1.1.0.0"
or "01:10"'}
send_command:
description: Sends CEC command into HDMI CEC capable adapter.
fields:
att:
description: Optional parameters.
example: [0, 2]
cmd: {description: 'Command itself. Could be decimal number or string with hexadeximal
notation: "0x10".', example: 144 or "0x90"}
dst: {description: 'Destination for command. Could be decimal number or string
with hexadeximal notation: "0x10".', example: 5 or "0x5"}
raw: {description: 'Raw CEC command in format "00:00:00:00" where first two digits
are source and destination, second byte is command and optional other bytes
are command parameters. If raw command specified, other params are ignored.',
example: '"10:36"'}
src: {desctiption: 'Source of command. Could be decimal number or string with
hexadeximal notation: "0x10".', example: 12 or "0xc"}
standby: {description: Standby all devices which supports it.}
update: {description: Update devices state from network.}
volume:
description: Increase or decrease volume of system.
fields:
down: {description: Decreases volume x levels., example: 3}
mute: {description: 'Mutes audio system. Value should be on, off or toggle.',
example: toggle}
up: {description: Increases volume x levels., example: 3}

View File

@ -0,0 +1,12 @@
toggle:
description: Toggles an input boolean.
fields:
entity_id: {description: Entity id of the input boolean to toggle., example: input_boolean.notify_alerts}
turn_off:
description: Turns off an input boolean
fields:
entity_id: {description: Entity id of the input boolean to turn off., example: input_boolean.notify_alerts}
turn_on:
description: Turns on an input boolean.
fields:
entity_id: {description: Entity id of the input boolean to turn on., example: input_boolean.notify_alerts}

View File

@ -0,0 +1,16 @@
decrement:
description: Decrement the value of an input number entity by its stepping.
fields:
entity_id: {description: Entity id of the input number the should be decremented.,
example: input_number.threshold}
increment:
description: Increment the value of an input number entity by its stepping.
fields:
entity_id: {description: Entity id of the input number the should be incremented.,
example: input_number.threshold}
set_value:
description: Set the value of an input number entity.
fields:
entity_id: {description: Entity id of the input number to set the new value.,
example: input_number.threshold}
value: {description: The target value the entity should be set to., example: 42}

View File

@ -0,0 +1,22 @@
select_next:
description: Select the next options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the next value
for., example: input_select.my_select}
select_option:
description: Select an option of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the value., example: input_select.my_select}
option: {description: Option to be selected., example: '"Item A"'}
select_previous:
description: Select the previous options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to select the previous
value for., example: input_select.my_select}
set_options:
description: Set the options of an input select entity.
fields:
entity_id: {description: Entity id of the input select to set the new options
for., example: input_select.my_select}
options: {description: Options for the input select entity., example: '["Item
A", "Item B", "Item C"]'}

View File

@ -0,0 +1,6 @@
set_value:
description: Set the value of an input text entity.
fields:
entity_id: {description: Entity id of the input text to set the new value., example: input_text.text1}
value: {description: The target value the entity should be set to., example: This
is an example text}

View File

@ -0,0 +1,5 @@
group_write:
description: Turn a light on.
fields:
address: {description: Group address(es) to write to., example: 1/1/0}
data: {description: KNX data to send., example: 1}

View File

@ -4,7 +4,7 @@ LIRC interface to receive signals from an infrared remote control.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/lirc/
"""
# pylint: disable=no-member
# pylint: disable=no-member, import-error
import threading
import time
import logging

View File

@ -0,0 +1,6 @@
set_default_level:
description: Set the default log level for components.
fields:
level: {description: 'Default severity level. Possible values are notset, debug,
info, warn, warning, error, fatal, critical', example: debug}
set_level: {description: Set log level for components.}

View File

@ -0,0 +1,28 @@
create_group:
description: Create a new person group.
fields:
name: {description: Name of the group., example: family}
create_person:
description: Create a new person in the group.
fields:
group: {description: Name of the group, example: family}
name: {description: Name of the person, example: Hans}
delete_group:
description: Delete a new person group.
fields:
name: {description: Name of the group., example: family}
delete_person:
description: Delete a person in the group.
fields:
group: {description: Name of the group., example: family}
name: {description: Name of the person., example: Hans}
face_person:
description: Add a new picture to a person.
fields:
camera_entity: {description: Camera to take a picture., example: camera.door}
group: {description: Name of the group., example: family}
person: {description: Name of the person., example: Hans}
train_group:
description: Train a person group.
fields:
group: {description: Name of the group, example: family}

View File

@ -0,0 +1,12 @@
write_coil:
description: Write to a modbus coil.
fields:
address: {description: Address of the register to read., example: 0}
state: {description: State to write., example: false}
unit: {description: Address of the modbus unit., example: 21}
write_register:
description: Write to a modbus holding register.
fields:
address: {description: Address of the holding register to write to., example: 0}
unit: {description: Address of the modbus unit., example: 21}
value: {description: Value to write., example: 0}

View File

@ -1,37 +1,16 @@
# Describes the format for available Nest services
set_mode:
description: 'Set the home/away mode for a Nest structure. Set to away mode will
also set Estimated Arrival Time if provided. Set ETA will cause the thermostat
to begin warming or cooling the home before the user arrives. After ETA set other
Automation can read ETA sensor as a signal to prepare the home for the user''s
arrival.
set_away_mode:
description: Set the away mode for a Nest structure.
'
fields:
away_mode:
description: New mode to set. Valid modes are "away" or "home".
example: "away"
structure:
description: Name(s) of structure(s) to change. Defaults to all structures if not specified.
example: "Apartment"
set_eta:
description: Set or update the estimated time of arrival window for a Nest structure.
fields:
eta:
description: Estimated time of arrival from now.
example: "00:10:30"
eta_window:
description: Estimated time of arrival window. Default is 1 minute.
example: "00:05"
trip_id:
description: Unique ID for the trip. Default is auto-generated using a timestamp.
example: "Leave Work"
structure:
description: Name(s) of structure(s) to change. Defaults to all structures if not specified.
example: "Apartment"
cancel_eta:
description: Cancel an existing estimated time of arrival window for a Nest structure.
fields:
trip_id:
description: Unique ID for the trip.
example: "Leave Work"
structure:
description: Name(s) of structure(s) to change. Defaults to all structures if not specified.
example: "Apartment"
eta: {description: Optional Estimated Arrival Time from now., example: '0:10'}
eta_window: {description: Optional ETA window. Default is 1 minute., example: '0:5'}
home_mode: {description: home or away, example: home}
structure: {description: Optional structure name. Default set all structures managed
by Home Assistant., example: My Home}
trip_id: {description: Optional identity of a trip. Using the same trip_ID will
update the estimation., example: trip_back_home}

View File

@ -0,0 +1,5 @@
send_command:
description: Send device command through RFLink.
fields:
command: {description: The command to be sent., example: 'on'}
device_id: {description: RFLink device ID., example: newkaku_0000c6c2_1}

View File

@ -1,488 +1,5 @@
# Describes the format for available component services
foursquare:
checkin:
description: Check a user into a Foursquare venue.
fields:
venueId:
description: The Foursquare venue where the user is checking in. [Required]
example: IHR8THISVNU
eventId:
description: The event the user is checking in to. [Optional]
example: UHR8THISVNT
shout:
description: A message about your check-in. The maximum length of this field is 140 characters. [Optional]
example: There are crayons! Crayons!
mentions:
description: Mentions in your check-in. This parameter is a semicolon-delimited list of mentions. A single mention is of the form "start,end,userid", where start is the index of the first character in the shout representing the mention, end is the index of the first character in the shout after the mention, and userid is the userid of the user being mentioned. If userid is prefixed with "fbu-", this indicates a Facebook userid that is being mention. Character indices in shouts are 0-based. [Optional]
example: 5,10,HZXXY3Y;15,20,GZYYZ3Z;25,30,fbu-GZXY13Y
broadcast:
description: "Who to broadcast this check-in to. Accepts a comma-delimited list of values: private (off the grid) or public (share with friends), facebook share on facebook, twitter share on twitter, followers share with followers (celebrity mode users only), If no valid value is found, the default is public. [Optional]"
example: public,twitter
ll:
description: Latitude and longitude of the user's location. Only specify this field if you have a GPS or other device reported location for the user at the time of check-in. [Optional]
example: 33.7,44.2
llAcc:
description: Accuracy of the user's latitude and longitude, in meters. [Optional]
example: 1
alt:
description: Altitude of the user's location, in meters. [Optional]
example: 0
altAcc:
description: Vertical accuracy of the user's location, in meters.
example: 1
microsoft_face:
create_group:
description: Create a new person group.
fields:
name:
description: Name of the group.
example: 'family'
delete_group:
description: Delete a new person group.
fields:
name:
description: Name of the group.
example: 'family'
train_group:
description: Train a person group.
fields:
group:
description: Name of the group
example: 'family'
create_person:
description: Create a new person in the group.
fields:
name:
description: Name of the person
example: 'Hans'
group:
description: Name of the group
example: 'family'
delete_person:
description: Delete a person in the group.
fields:
name:
description: Name of the person.
example: 'Hans'
group:
description: Name of the group.
example: 'family'
face_person:
description: Add a new picture to a person.
fields:
person:
description: Name of the person.
example: 'Hans'
group:
description: Name of the group.
example: 'family'
camera_entity:
description: Camera to take a picture.
example: camera.door
verisure:
capture_smartcam:
description: Capture a new image from a smartcam.
fields:
device_serial:
description: The serial number of the smartcam you want to capture an image from.
example: '2DEU AT5Z'
alert:
turn_off:
description: Silence alert's notifications.
fields:
entity_id:
description: Name of the alert to silence.
example: 'alert.garage_door_open'
turn_on:
description: Reset alert's notifications.
fields:
entity_id:
description: Name of the alert to reset.
example: 'alert.garage_door_open'
toggle:
description: Toggle alert's notifications.
fields:
entity_id:
description: Name of the alert to toggle.
example: 'alert.garage_door_open'
hdmi_cec:
send_command:
description: Sends CEC command into HDMI CEC capable adapter.
fields:
raw:
description: 'Raw CEC command in format "00:00:00:00" where first two digits are source and destination, second byte is command and optional other bytes are command parameters. If raw command specified, other params are ignored.'
example: '"10:36"'
src:
desctiption: 'Source of command. Could be decimal number or string with hexadeximal notation: "0x10".'
example: '12 or "0xc"'
dst:
description: 'Destination for command. Could be decimal number or string with hexadeximal notation: "0x10".'
example: '5 or "0x5"'
cmd:
description: 'Command itself. Could be decimal number or string with hexadeximal notation: "0x10".'
example: '144 or "0x90"'
att:
description: Optional parameters.
example: [0, 2]
update:
description: Update devices state from network.
volume:
description: Increase or decrease volume of system.
fields:
up:
description: Increases volume x levels.
example: 3
down:
description: Decreases volume x levels.
example: 3
mute:
description: Mutes audio system. Value should be on, off or toggle.
example: "toggle"
select_device:
description: Select HDMI device.
fields:
device:
description: Address of device to select. Can be entity_id, physical address or alias from confuguration.
example: '"switch.hdmi_1" or "1.1.0.0" or "01:10"'
power_on:
description: Power on all devices which supports it.
standby:
description: Standby all devices which supports it.
ffmpeg:
start:
description: Send a start command to a ffmpeg based sensor.
fields:
entity_id:
description: Name(s) of entities that will start. Platform dependent.
example: 'binary_sensor.ffmpeg_noise'
stop:
description: Send a stop command to a ffmpeg based sensor.
fields:
entity_id:
description: Name(s) of entities that will stop. Platform dependent.
example: 'binary_sensor.ffmpeg_noise'
restart:
description: Send a restart command to a ffmpeg based sensor.
fields:
entity_id:
description: Name(s) of entities that will restart. Platform dependent.
example: 'binary_sensor.ffmpeg_noise'
logger:
set_default_level:
description: Set the default log level for components.
fields:
level:
description: Default severity level. Possible values are notset, debug, info, warn, warning, error, fatal, critical
example: 'debug'
set_level:
description: Set log level for components.
hassio:
host_reboot:
description: Reboot host computer.
host_shutdown:
description: Poweroff host computer.
host_update:
description: Update host computer.
fields:
version:
description: Optional or it will be use the latest version.
example: '0.3'
supervisor_update:
description: Update HassIO supervisor.
fields:
version:
description: Optional or it will be use the latest version.
example: '0.3'
supervisor_reload:
description: Reload HassIO supervisor addons/updates/configs.
homeassistant_update:
description: Update HomeAssistant docker image.
fields:
version:
description: Optional or it will be use the latest version.
example: '0.40.1'
addon_install:
description: Install a HassIO docker addon.
fields:
addon:
description: Name of addon.
example: 'smb_config'
version:
description: Optional or it will be use the latest version.
example: '0.2'
addon_uninstall:
description: Uninstall a HassIO docker addon.
fields:
addon:
description: Name of addon.
example: 'smb_config'
addon_update:
description: Update a HassIO docker addon.
fields:
addon:
description: Name of addon.
example: 'smb_config'
version:
description: Optional or it will be use the latest version.
example: '0.2'
addon_start:
description: Start a HassIO docker addon.
fields:
addon:
description: Name of addon.
example: 'smb_config'
addon_stop:
description: Stop a HassIO docker addon.
fields:
addon:
description: Name of addon.
example: 'smb_config'
eight_sleep:
heat_set:
description: Set heating level for eight sleep.
fields:
entity_id:
description: Entity id of the bed state to adjust.
example: 'sensor.eight_left_bed_state'
target:
description: Target heating level from 0-100.
example: 35
duration:
description: Duration to heat at the target level in seconds.
example: 3600
apple_tv:
apple_tv_authenticate:
description: Start AirPlay device authentication.
fields:
entity_id:
description: Name(s) of entities to authenticate with.
example: 'media_player.apple_tv'
apple_tv_scan:
description: Scan for Apple TV devices.
modbus:
write_register:
description: Write to a modbus holding register.
fields:
unit:
description: Address of the modbus unit.
example: 21
address:
description: Address of the holding register to write to.
example: 0
value:
description: Value to write.
example: 0
write_coil:
description: Write to a modbus coil.
fields:
unit:
description: Address of the modbus unit.
example: 21
address:
description: Address of the register to read.
example: 0
state:
description: State to write.
example: false
wake_on_lan:
send_magic_packet:
description: Send a 'magic packet' to wake up a device with 'Wake-On-LAN' capabilities.
fields:
mac:
description: MAC address of the device to wake up.
example: 'aa:bb:cc:dd:ee:ff'
broadcast_address:
description: Optional broadcast IP where to send the magic packet.
example: '192.168.255.255'
knx:
group_write:
description: Turn a light on.
fields:
address:
description: Group address(es) to write to.
example: '1/1/0'
data:
description: KNX data to send.
example: 1
rflink:
send_command:
description: Send device command through RFLink.
fields:
device_id:
description: RFLink device ID.
example: 'newkaku_0000c6c2_1'
command:
description: The command to be sent.
example: 'on'
abode:
change_setting:
description: Change an Abode system setting.
fields:
setting:
description: Setting to change.
example: 'beeper_mute'
value:
description: Value of the setting.
example: '1'
capture_image:
description: Request a new image capture from a camera device.
fields:
entity_id:
description: Entity id of the camera to request an image.
example: 'camera.downstairs_motion_camera'
trigger_quick_action:
description: Trigger an Abode quick action.
fields:
entity_id:
description: Entity id of the quick action to trigger.
example: 'binary_sensor.home_quick_action'
snips:
say:
description: Send a TTS message to Snips.
fields:
text:
description: Text to say.
example: My name is snips
site_id:
description: Site to use to start session, defaults to default (optional)
example: bedroom
custom_data:
description: custom data that will be included with all messages in this session
example: user=UserName
say_action:
description: Send a TTS message to Snips to listen for a response.
fields:
text:
description: Text to say
example: My name is snips
site_id:
description: Site to use to start session, defaults to default (optional)
example: bedroom
custom_data:
description: custom data that will be included with all messages in this session
example: user=UserName
can_be_enqueued:
description: If True, session waits for an open session to end, if False session is dropped if one is running
example: True
intent_filter:
description: Optional Array of Strings - A list of intents names to restrict the NLU resolution to on the first query.
example: turnOnLights, turnOffLights
feedback_on:
description: Turns feedback sounds on.
fields:
site_id:
description: Site to turn sounds on, defaults to all sites (optional)
example: bedroom
feedback_off:
description: Turns feedback sounds off.
fields:
site_id:
description: Site to turn sounds on, defaults to all sites (optional)
example: bedroom
input_boolean:
toggle:
description: Toggles an input boolean.
fields:
entity_id:
description: Entity id of the input boolean to toggle.
example: 'input_boolean.notify_alerts'
turn_off:
description: Turns off an input boolean
fields:
entity_id:
description: Entity id of the input boolean to turn off.
example: 'input_boolean.notify_alerts'
turn_on:
description: Turns on an input boolean.
fields:
entity_id:
description: Entity id of the input boolean to turn on.
example: 'input_boolean.notify_alerts'
input_text:
set_value:
description: Set the value of an input text entity.
fields:
entity_id:
description: Entity id of the input text to set the new value.
example: 'input_text.text1'
value:
description: The target value the entity should be set to.
example: This is an example text
input_number:
set_value:
description: Set the value of an input number entity.
fields:
entity_id:
description: Entity id of the input number to set the new value.
example: 'input_number.threshold'
value:
description: The target value the entity should be set to.
example: 42
increment:
description: Increment the value of an input number entity by its stepping.
fields:
entity_id:
description: Entity id of the input number the should be incremented.
example: 'input_number.threshold'
decrement:
description: Decrement the value of an input number entity by its stepping.
fields:
entity_id:
description: Entity id of the input number the should be decremented.
example: 'input_number.threshold'
input_select:
select_option:
description: Select an option of an input select entity.
fields:
entity_id:
description: Entity id of the input select to select the value.
example: 'input_select.my_select'
option:
description: Option to be selected.
example: '"Item A"'
set_options:
description: Set the options of an input select entity.
fields:
entity_id:
description: Entity id of the input select to set the new options for.
example: 'input_select.my_select'
options:
description: Options for the input select entity.
example: '["Item A", "Item B", "Item C"]'
select_previous:
description: Select the previous options of an input select entity.
fields:
entity_id:
description: Entity id of the input select to select the previous value for.
example: 'input_select.my_select'
select_next:
description: Select the next options of an input select entity.
fields:
entity_id:
description: Entity id of the input select to select the next value for.
example: 'input_select.my_select'
homeassistant:
check_config:
description: Check the Home Assistant configuration files for errors. Errors will be displayed in the Home Assistant log.
@ -516,77 +33,3 @@ homeassistant:
entity_id:
description: One or multiple entity_ids to update. Can be a list.
example: light.living_room
xiaomi_aqara:
play_ringtone:
description: Play a specific ringtone. The version of the gateway firmware must be 1.4.1_145 at least.
fields:
gw_mac:
description: MAC address of the Xiaomi Aqara Gateway.
example: 34ce00880088
ringtone_id:
description: One of the allowed ringtone ids.
example: 8
ringtone_vol:
description: The volume in percent.
example: 30
stop_ringtone:
description: Stops a playing ringtone immediately.
fields:
gw_mac:
description: MAC address of the Xiaomi Aqara Gateway.
example: 34ce00880088
add_device:
description: Enables the join permission of the Xiaomi Aqara Gateway for 30 seconds. A new device can be added afterwards by pressing the pairing button once.
fields:
gw_mac:
description: MAC address of the Xiaomi Aqara Gateway.
example: 34ce00880088
remove_device:
description: Removes a specific device. The removal is required if a device shall be paired with another gateway.
fields:
gw_mac:
description: MAC address of the Xiaomi Aqara Gateway.
example: 34ce00880088
device_id:
description: Hardware address of the device to remove.
example: 158d0000000000
shopping_list:
add_item:
description: Adds an item to the shopping list.
fields:
name:
description: The name of the item to add.
example: Beer
complete_item:
description: Marks an item as completed in the shopping list. It does not remove the item.
fields:
name:
description: The name of the item to mark as completed.
example: Beer
nest:
set_mode:
description: >
Set the home/away mode for a Nest structure.
Set to away mode will also set Estimated Arrival Time if provided.
Set ETA will cause the thermostat to begin warming or cooling the home before the user arrives.
After ETA set other Automation can read ETA sensor as a signal to prepare the home for
the user's arrival.
fields:
home_mode:
description: home or away
example: home
structure:
description: Optional structure name. Default set all structures managed by Home Assistant.
example: My Home
eta:
description: Optional Estimated Arrival Time from now.
example: 0:10
eta_window:
description: Optional ETA window. Default is 1 minute.
example: 0:5
trip_id:
description: Optional identity of a trip. Using the same trip_ID will update the estimation.
example: trip_back_home

View File

@ -0,0 +1,9 @@
add_item:
description: Adds an item to the shopping list.
fields:
name: {description: The name of the item to add., example: Beer}
complete_item:
description: Marks an item as completed in the shopping list. It does not remove
the item.
fields:
name: {description: The name of the item to mark as completed., example: Beer}

View File

@ -0,0 +1,31 @@
feedback_off:
description: Turns feedback sounds off.
fields:
site_id: {description: 'Site to turn sounds on, defaults to all sites (optional)',
example: bedroom}
feedback_on:
description: Turns feedback sounds on.
fields:
site_id: {description: 'Site to turn sounds on, defaults to all sites (optional)',
example: bedroom}
say:
description: Send a TTS message to Snips.
fields:
custom_data: {description: custom data that will be included with all messages
in this session, example: user=UserName}
site_id: {description: 'Site to use to start session, defaults to default (optional)',
example: bedroom}
text: {description: Text to say., example: My name is snips}
say_action:
description: Send a TTS message to Snips to listen for a response.
fields:
can_be_enqueued: {description: 'If True, session waits for an open session to
end, if False session is dropped if one is running', example: true}
custom_data: {description: custom data that will be included with all messages
in this session, example: user=UserName}
intent_filter: {description: Optional Array of Strings - A list of intents names
to restrict the NLU resolution to on the first query., example: 'turnOnLights,
turnOffLights'}
site_id: {description: 'Site to use to start session, defaults to default (optional)',
example: bedroom}
text: {description: Text to say, example: My name is snips}

Some files were not shown because too many files have changed in this diff Show More