Commit Graph

68 Commits (72ad1d8d7c49172fa80676174a9c22fea89845a5)

Author SHA1 Message Date
Paulus Schoutsen 8081fe794e Add panel custom to load any webcomponent (#2747) 2016-08-08 17:35:46 -07:00
Teagan M. Glenn 26526ca57a Add unit system support
Add unit symbol constants

Initial unit system object

Import more constants

Pydoc for unit system file

Import constants for configuration validation

Unit system validation method

Typing for constants

Inches are valid lengths too

Typings

Change base class to dict - needed for remote api call serialization

Validation

Use dictionary keys

Defined unit systems

Update location util to use metric instead of us fahrenheit

Update constant imports

Import defined unit systems

Update configuration to use unit system

Update schema to use unit system

Update constants

Add imports to core for unit system and distance

Type for config

Default unit system

Convert distance from HASS instance

Update temperature conversion to use unit system

Update temperature conversion

Set unit system based on configuration

Set info unit system

Return unit system dictionary with config dictionary

Auto discover unit system

Update location test for use metric

Update forecast unit system

Update mold indicator unit system

Update thermostat unit system

Update thermostat demo test

Unit tests around unit system

Update test common hass configuration

Update configuration unit tests

There should always be a unit system!

Update core unit tests

Constants typing

Linting issues

Remove unused import

Update fitbit sensor to use application unit system

Update google travel time to use application unit system

Update configuration example

Update dht sensor

Update DHT temperature conversion to use the utility function

Update swagger config

Update my sensors metric flag

Update hvac component temperature conversion

HVAC conversion for temperature

Pull unit from sensor type map

Pull unit from sensor type map

Update the temper sensor unit

Update yWeather sensor unit

Update hvac demo unit test

Set unit test config unit system to metric

Use hass unit system length for default in proximity

Use the name of the system instead of temperature

Use constants from const

Unused import

Forecasted temperature

Fix calculation in case furthest distance is greater than 1000000 units

Remove unneeded constants

Set default length to km or miles

Use constants

Linting doesn't like importing just for typing

Fix reference

Test is expecting meters - set config to meters

Use constant

Use constant

PyDoc for unit test

Should be not in

Rename to units

Change unit system to be an object - not a dictionary

Return tuple in conversion

Move convert to temperature util

Temperature conversion is now in unit system

Update imports

Rename to units

Units is now an object

Use temperature util conversion

Unit system is now an object

Validate and convert unit system config

Return the scalar value in template distance

Test is expecting meters

Update unit tests around unit system

Distance util returns tuple

Fix location info test

Set units

Update unit tests

Convert distance

DOH

Pull out the scalar from the vector

Linting

I really hate python linting

Linting again

BLARG

Unit test documentation

Unit test around is metric flag

Break ternary statement into if/else blocks

Don't use dictionary - use members

is metric flag

Rename constants

Use is metric flag

Move constants to CONST file

Move to const file

Raise error if unit is not expected

Typing

No need to return unit since only performing conversion if it can work

Use constants

Line wrapping

Raise error if invalid value

Remove subscripts from conversion as they are no longer returned as tuples

No longer tuples

No longer tuples

Check for numeric type

Fix string format to use correct variable

Typing

Assert errors raised

Remove subscript

Only convert temperature if we know the unit

If no unit of measurement set - default to HASS config

Convert only if we know the unit

Remove subscription

Fix not in clause

Linting fixes

Wants a boolean

Clearer if-block

Check if the key is in the config first

Missed a couple expecting tuples

Backwards compatibility

No like-y ternary!

Error handling around state setting

Pretty unit system configuration validation

More tuple crap

Use is metric flag

Error handling around min/max temp

Explode if no unit

Pull unit from config

Celsius has a decimal

Unused import

Check if it's a temperature before we try to convert it to a temperature

Linting says too many statements - combine lat/long in a fairly reasonable manner

Backwards compatibility unit test

Better doc
2016-08-04 22:02:19 -07:00
Paulus Schoutsen d5e652d244 Update panel.html 2016-07-29 09:28:15 -07:00
Paulus Schoutsen 55624bcff9 Add custom panel example using React (#2651) 2016-07-29 00:49:58 -07:00
Fabian Affolter 80feb322f9 A mini update (#2418) 2016-07-02 10:05:19 -07:00
Daniel Høyer Iversen 7a8c5a0709 Add frontend to the example config (#2367) 2016-06-24 21:40:02 -07:00
Paulus Schoutsen 2e79e9d5bb Correct celcius to celsius (#1860) 2016-04-19 20:30:44 -07:00
Fabian Affolter 85901d60c4 Update file header and fix typos 2016-04-13 13:50:28 +02:00
Fabian Affolter b3a6ac74fa Fix typos and update freegeoip URL 2016-04-06 22:30:05 +02:00
Fabian Affolter 5ba9ac6465 Fix PEP257 issues 2016-03-07 20:18:48 +01:00
Fabian Affolter a47d6c944e Update docstrings to match PEP257 2016-02-23 21:31:38 +01:00
Ryan Kraus 5830da63b1 Moved service decorator to service helpers
Moved the service decorator to the service helpers module and moved the
associated tests.
2016-01-24 22:46:30 -05:00
Ryan Kraus 2fa98167c2 Updated example.py component
Cleaned up example.py to better handle failed loads.
2016-01-24 20:05:40 -05:00
Ryan Kraus 57725136c0 Many updates regarding event decorators
1. Added HASS to the arguments for callbacks that are created with
event decorators.
2. Added a service decorator.
3. Updated example.py in the example config to use the event decorators.
2016-01-24 19:52:22 -05:00
Carlo Costanzo 17865c78c4 Added # comment for Sensor
Comments for unique sensor labels.
2015-10-07 17:02:07 -04:00
Paulus Schoutsen 9292891836 Update documentation 2015-10-04 01:40:38 -07:00
Carlo Costanzo 5f98705100 Changed the automation example
Changed the automation example to match the examples on the website.
2015-09-25 11:03:16 -04:00
Carlo Costanzo fa71d5fac9 Update configuration.yaml.example 2015-09-24 15:57:23 -04:00
Carlo Costanzo 21fd53b05d Added some additional examples.
- Added an eample of Groups within Groups.
- Took away the Automation 2 and used the new -Alias format.
- Added a second sensor to demonstrate sensor:, sensor 2: format.
2015-09-24 15:56:26 -04:00
Carlo Costanzo 7443f4faf8 Minor comment about weather components & LONG:LAT.
Super Small edit adding in a # about the weather related information.
2015-09-22 15:53:16 -04:00
Fabian Affolter f18928d85b Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:23:24 +02:00
Paulus Schoutsen c8b54d7468 Update MQTT component and add example 2015-08-09 11:29:50 -07:00
Michaël Arnauts 8b7a406fe7 Use xy_color instead of color in the configuration example 2015-07-07 22:33:40 +02:00
Fabian Affolter 9792089b57 fix typo 2015-06-11 22:40:03 +02:00
Fabian Affolter 047ab10dde add comment 2015-06-11 22:33:55 +02:00
Fabian Affolter f066c63900 add config details 2015-06-11 22:29:01 +02:00
Fabian Affolter dd05d6878c add config details 2015-06-11 22:29:01 +02:00
jamespcole 80f0c42844 Refactored session handling into a separate class 2015-05-19 03:57:35 +10:00
jamespcole be0f11b1a5 Updated example config with new session config option 2015-05-18 23:56:22 +10:00
Fabian Affolter fdb46d80ba Update documentation 2015-05-13 19:06:17 -07:00
Fabian Affolter 21e2898868 fix typo 2015-05-11 17:27:25 +02:00
Fabian Affolter 69cc3c8261 add ddwrt 2015-05-11 17:26:18 +02:00
Paulus Schoutsen 9b643d57f0 ps: Add a global config object to Home Assistant 2015-03-18 23:02:58 -07:00
Paulus Schoutsen 19a43cea26 Add scene component 2015-03-15 23:36:42 -07:00
andythigpen 046efe3acb Adds script component.
A script is composed of a sequence of actions (currently service calls)
that are executed in order.  Individual actions can also be delayed by a
given timedelta.
2015-03-14 21:29:55 -05:00
Paulus Schoutsen 948a5c97ec Fix a config bug in Automation 2015-03-14 19:18:41 -07:00
theolind 43f0014200 Added process watching functionality to sensor.systemmonitor 2015-03-07 20:54:52 +01:00
theolind dd92173576 Made example config more YAMLy 2015-03-07 15:27:31 +01:00
theolind 97258747c7 Renamed device to resource 2015-03-07 15:22:03 +01:00
theolind 19964e914a Added a system monitoring platform to the sensor component 2015-03-07 14:54:08 +01:00
Paulus Schoutsen 80ffe74af6 Group component now supports lists in the config 2015-02-28 19:22:16 -08:00
Paulus Schoutsen 28059bda7f Configuration example tweaks 2015-02-28 19:14:00 -08:00
theolind 8da1fb1d74 Added example yaml config file, removed old example config, fixed style violation in bootstrap.py 2015-02-28 18:59:45 +01:00
Paulus Schoutsen b73700d139 Remove no longer supported options from example 2015-02-24 21:39:46 -08:00
Paulus Schoutsen ade833a70a Fix automation example 2015-01-25 12:32:50 -08:00
Paulus Schoutsen 6588ca6520 Update example config with correct wink config 2015-01-22 00:29:47 -08:00
Paulus Schoutsen ff230cefe3 Disable pylint unused-argument check 2015-01-19 23:40:51 -08:00
Paulus Schoutsen 9ffe35756b Component Automation - initial version 2015-01-15 23:32:27 -08:00
Paulus Schoutsen 86e4fb9655 Merge branch 'component-wink' into dev
* component-wink:
  Wink component bug fixes
  Bugfixes to make Wink component work
  Added wink component to auto-load other needed components
  Initial version wink component by @loghound
  changed bearer_token to access_token in conf file
  Wink Hub integration of it's switches & lights

Conflicts:
	homeassistant/components/switch/__init__.py
	homeassistant/const.py
2015-01-11 23:22:40 -08:00
Paulus Schoutsen 6cd53f2ddf Added wink component to auto-load other needed components 2015-01-10 23:47:23 -08:00