Commit Graph
12300 Commits
Author SHA1 Message Date
Simon Nørager SørensenandPaulus Schoutsen dd7bffc28c Add the Xiaomi TV platform. (#12359)
* Added the Xiaomi TV platform.

* Implemented a more efficient default name.

* Fixed a few style errors that slipped past the eye.

* Indicate that state is assumed.
2018-02-16 15:09:20 -08:00
Paulus Schoutsen 26340fd9df Bump frontend to 20180216.0 2018-02-16 15:06:46 -08:00
Otto WinterandPaulus Schoutsen fe5626b927 Make WUnderground async (#12385)
* 🐎 Async WUnderground

* ∞ Them lines be too long

* Fix pylint warnings

* Changes according to comments

* Remove STATE_UNKNOWN

* 🔬 Fix tests

* Improve tests
2018-02-16 14:54:11 -08:00
Paulus SchoutsenandGitHub b3a47722f0 Initial support for Config Entries (#12079)
* Introduce Config Entries

* Rebase fail

* Address comments

* Address more comments

* RequestDataValidator moved
2018-02-16 14:07:38 -08:00
Ryan McLeanandPaulus Schoutsen 2053c8a908 Fix for contentRating error (#12445)
* Fix for contentRating

* Use getattr instead of hasattr

* Lint
2018-02-16 11:51:19 -08:00
AndreyandPaulus Schoutsen 13d6e56106 Fix light template to return brightness as int (#12447) 2018-02-16 09:32:11 -08:00
Sebastian MuszynskiandPaulus Schoutsen 1f041d54d9 Fake the state for a short period and skip the next update. (#12446)
On state change the device doesn't provide the new state immediately.

Flag the device as unavailable if no communication is possible.
2018-02-15 22:01:34 -08:00
Jesse HillsandPaulus Schoutsen 8d48272cbd Add effects to iGlo Lights (#12365)
* Add effects to iGlo Lights
Simplify state variables to library

* Fix lint issues
2018-02-15 21:57:58 -08:00
TabakhaseandPaulus Schoutsen facd833e6d Vagrant - sendfile python3.5 debian-stretch (#12454)
* vagrant dev - force hass-AIOHTTP to not use sendfile
Ref: https://www.virtualbox.org/ticket/9069
strongly needed for `home-assistant-polymer`

* vagrant dev - python 3.4 to 3.5 by upgrade to debian-stretch
2018-02-15 21:53:10 -08:00
Anders MelchiorsenandPaulus Schoutsen 0e2d98dbf5 Optimize recorder purge (#12448) 2018-02-15 20:22:57 -08:00
Diogo GomesandPaulus Schoutsen d43a8e593a [SQL Sensor] always close session (#12452)
* close aborted session

* blank line
2018-02-15 20:20:45 -08:00
Aaron BachandPaulus Schoutsen c7c0df53aa AirVisual: Entity Registry updates and cleanup (#12319)
* AirVisual: Entity Registry updates and cleanup

* Small cleanup

* Owner-requested changes

* Changed hashing function

* Put a better class instatiation mechanism in place

* Small cleanup

* Reverting unintended breaking change

* Removing hashing as part of creating the unique ID

* Attempting to jumpstart Travis
2018-02-15 14:52:47 -08:00
Igor BernsteinandPaulus Schoutsen 612dd30201 Stop mapping zigbee switches to lights & switches. (#12280)
Zigbee switches only contain client clusters that are meant to control server clusters on a different device/endpoint.
This device type -> cluster mapping can be found in https://www.nxp.com/docs/en/user-guide/JN-UG-3076.pdf.
The intended usage is of connecting client clusters to server clusters is described in https://products.currentbyge.com/sites/products.currentbyge.com/files/document_file/DT200-GE-Zigbee-Primer-Whitepaper.pdf

The lack of server clusters on switches has been verified using a GE ZigBee Lighting Switch 45856GE and a 45857GE dimmer.

Output from a 45856GE:
Device:
  NWK: 0x0cd8
  IEEE: 00:22:a3:00:00:1f:37:68
  Endpoints:
    1: profile=0x104, device_type=DeviceType.ON_OFF_LIGHT
      Input Clusters:
        Basic (0)
        Identify (3)
        Groups (4)
        Scenes (5)
        On/Off (6)
        Metering (1794)
        Diagnostic (2821)
      Output Clusters:
        Time (10)
        Ota (25)
    2: profile=0x104, device_type=DeviceType.ON_OFF_LIGHT_SWITCH
      Input Clusters:
        Basic (0)
        Identify (3)
        Diagnostic (2821)
      Output Clusters:
        Identify (3)
        On/Off (6)
2018-02-15 14:51:54 -08:00
Sergio ViudesandPaulus Schoutsen f0d9e5d7ff Fix: timeout data attribute now is parsed to float (#12432) 2018-02-15 14:49:46 -08:00
Diogo GomesandPaulus Schoutsen d18709df5b Update CODEOWNERS (#12440)
As contributor of the components
2018-02-15 13:40:30 -08:00
Paulus SchoutsenandPascal Vizeli f32911d036 Cleanup http (#12424)
* Clean up HTTP component

* Clean up HTTP mock

* Remove unused import

* Fix test

* Lint
2018-02-15 22:06:14 +01:00
Russell CloranandPascal Vizeli ad8fe8a93a zha: Add unique_id to entities (#12331)
* zha: Add unique_id to entities

* Lint

* fix comments

* Update __init__.py

* Update __init__.py
2018-02-15 13:38:56 +01:00
Daniel Høyer IversenandFabian Affolter b4dbfe9bbd Update the Tibber sensor at startup (#12428) 2018-02-15 12:33:49 +01:00
Julius MittenzweiandPaulus Schoutsen ae32d208d9 Cleanup of knx component (#12408) 2018-02-14 22:10:12 -08:00
Julius MittenzweiandPaulus Schoutsen f5d1f53fab Small code cleanup: (#12409)
- should_poll of base class already returns False
- there is no is_on within Scene
2018-02-14 22:07:04 -08:00
Julius MittenzweiandPaulus Schoutsen 96bd153c80 Added support for colored KNX lights (#12411) 2018-02-14 22:06:36 -08:00
cdce8pandPaulus Schoutsen 7e2e82d956 Print every changed file on new line (#12412) 2018-02-14 22:01:30 -08:00
Otto WinterandPaulus Schoutsen 5d4b1ecd3b Fix MQTT payload decode returning prematurely (#12420)
* Fix MQTT returning prematurely

* Add test
2018-02-14 22:00:49 -08:00
Greg LaabsandPaulus Schoutsen c25c4c85d6 Fixed 3 small issues in isy994 component (#12421)
1. FanLincs have two nodes: one light and one fan motor. In order for each node to get detected as different Hass entity types, I removed the device-type check for FanLinc. The logic will now fall back on the uom checks which should work just fine. (An alternative approach here would be to special case FanLincs and handle them directly - but seeing as the newer 5.x ISY firmware already handles this much better using NodeDefs, I think this quick and dirty approach is fine for the older firmware.) Fixes #12030
2. Some non-dimming switches were appearing as `light`s in Hass due to an duplicate NodeDef being in the light domain filter. Removed! Fixes #12340
3. The `unqiue_id` property was throwing an error for certain entity types that don't have an `_id` property from the ISY. This issue has always been present, but was exposed by the entity registry which seems to be the first thing to actually try reading the `unique_id` property from the isy994 component.
2018-02-14 21:58:49 -08:00
Paulus SchoutsenandPascal Vizeli 78c44180f4 Extract data validator to own file and add tests (#12401) 2018-02-14 21:06:03 +01:00
Fabian AffolterandGitHub 416f64fc70 Upgrade sphinx-autodoc-typehints to 1.2.5 (#12404) 2018-02-14 15:01:39 +01:00
Julius MittenzweiandMartin Hjelmare f25d56d666 Code cleanup of velux scene (#12390)
* Code cleanup of velux scene

* fixed review comments

* fixed review comments
2018-02-14 15:00:45 +01:00
Paulus Schoutsen 6f043f3c5c Merge branch 'master' into dev 2018-02-13 23:19:39 -08:00
Frederik BoldingandPaulus Schoutsen 6500cb7915 File Path fixes for RPi Camera (#12338)
* Checked file path with is_allowed_path() for RPi Camera

* Used cv.isfile to verify file path instead of manual checks

* Changed default file path for RPiCamera to config_dir/image.jpg

* Used tempfiles for storing RPi Camera images, if no other path is defined

* Stopped checking for whitelisted paths on temporary files
2018-02-13 23:07:50 -08:00
Paulus SchoutsenandGitHub d85ed8d0fe Merge pull request #12402 from home-assistant/release-0-63-2
0.63.2
0.63.2
2018-02-13 23:00:45 -08:00
Anders MelchiorsenandPaulus Schoutsen c82ca62820 Downgrade limitlessled to 1.0.8 (#12403) 2018-02-13 22:58:49 -08:00
Anders MelchiorsenandPaulus Schoutsen 28964806c5 Downgrade limitlessled to 1.0.8 (#12403) 2018-02-13 22:58:31 -08:00
Sean DagueandPaulus Schoutsen c414ecd4f0 Introduce zone_id to identify player+zone (#12382)
The yamaha component previously used a property named unique_id to
ensure that exactly 1 media_player was discovered per zone per
control_url. This was introduced so that hard coded devices wouldn't
be duplicated by automatically discovered devices.

In HA 0.63 unique_id became a reserved concept as part of the new
device registry, and the property was removed from the component. But
the default returns None, which had the side effect of only ever
registering a single unit + zone, the first one discovered. This was
typically the Main_Zone of the unit, but there is actually no
guaruntee of that.

This fix brings back the logic under a different property called
zone_id. This is not guarunteed to be globally stable like unique_id
is supposed to be, but it is suitable for the deduplication for yamaha
media players.
2018-02-13 22:11:05 -08:00
citruzandPaulus Schoutsen 72f100723f Updated beacontools (#12368) 2018-02-13 22:11:04 -08:00
Otto WinterandPaulus Schoutsen 9e4da37022 Fix WUnderground names (#12346)
* 📝 Fix WUnderground names

* 👻 Fix using event loop callback
2018-02-13 22:11:03 -08:00
Rene NulschandPaulus Schoutsen e5f000f976 Fix MercedesMe - add check for unsupported features (#12342)
* Add check for unsupported features

* Lint fix

* change to guard clause
2018-02-13 22:11:03 -08:00
Paulus Schoutsen e2408cc804 Version bump to 0.63.2 2018-02-13 22:03:06 -08:00
Patrik EkströmandPaulus Schoutsen 9bfeb3b5af Changed pyvera version to 0.2.41 (#12391)
* Changed pyvera version to 0.2.41

Changed required pyvera version to 0.2.41 from 0.2.39.
The 0.2.41 supports the VeraSecure built in siren. Siren is treated as switch and can now be turned on and off. Before it was armable but generated error in Vera controller.  This allows for both detecting status of Siren if triggered from within Vera and also outside controll from HA.

* Added pyvera 0.2.41 library
2018-02-13 21:55:50 -08:00
Aaron BachandPaulus Schoutsen c5c409bed3 Pollen.com: Entity Registry updates and cleanup (#12361)
* Updated Pollen sensors to be entity registry-friendly

* Pollen.com: Entity Registry updates and cleanup

* Small cleanup

* Owner-requested changes
2018-02-13 16:25:10 -08:00
Kane610andPaulus Schoutsen 8bff813014 Improve service by allowing to reference entity id instead of deconz id (#11862)
* Improve service by allowing to reference entity id instead of deconz id

* Change from having access to full entities to only store entity id together with deconz id

* Don't use eval, there is a dict type for voluptuous

* Use entity registry instead of keeping a local registry over entity ids

* Removed old code

* Add test for get_entry

* Bump dependency to v28
Fixed call to protected member

* Use chain to iterate over dict values

* Cleanup

* Fix hound comment

* Cleanup

* Follow refactoring of entity

* Revert to using a local registry

* Remove unused import

* self.hass is automatically available when entity is registered in hass
2018-02-13 16:23:03 -08:00
Sebastian MuszynskiandFabian Affolter a4944da68f python-miio version bumped. (Closes: #12389, Closes: #12298) (#12392) 2018-02-14 00:17:47 +01:00
Fabian AffolterandGitHub bc64053214 Add attributes (fixes #12332) (#12377)
* Add attributes (fixes #12332)

* Fix pylint issue
2018-02-13 23:47:59 +01:00
Paulus SchoutsenandFabian Affolter c7416c8986 Remove usage of deprecated assert method (#12379) 2018-02-13 23:25:06 +01:00
Fabian AffolterandGitHub 429628ec1d Upgrade youtube_dl to 2018.02.11 (#12383) 2018-02-13 23:24:18 +01:00
Sean DagueandFabian Affolter 16dafaa5af Introduce zone_id to identify player+zone (#12382)
The yamaha component previously used a property named unique_id to
ensure that exactly 1 media_player was discovered per zone per
control_url. This was introduced so that hard coded devices wouldn't
be duplicated by automatically discovered devices.

In HA 0.63 unique_id became a reserved concept as part of the new
device registry, and the property was removed from the component. But
the default returns None, which had the side effect of only ever
registering a single unit + zone, the first one discovered. This was
typically the Main_Zone of the unit, but there is actually no
guaruntee of that.

This fix brings back the logic under a different property called
zone_id. This is not guarunteed to be globally stable like unique_id
is supposed to be, but it is suitable for the deduplication for yamaha
media players.
2018-02-13 23:24:03 +01:00
Paulus SchoutsenandFabian Affolter f0231c1f29 Specify algorithms for webpush jwt verification (#12378) 2018-02-13 23:23:34 +01:00
Johann KellermanandGitHub 5995c2f313 SMA sensor add SSL and upgrade to pysma 0.2 (#12354) 2018-02-13 22:03:56 +02:00
Diogo GomesandFabian Affolter 80d2c76e85 Upgrade panasonic_viera to 0.3.1 (#12370)
* Bump panasonic_viera library to 0.3.1

Fixes media_play in hassio environment

* update requirements
2018-02-13 17:06:30 +01:00
Paulus SchoutsenandPascal Vizeli d2cea84254 Allow disabling entities in the registry (#12360) 2018-02-13 13:33:15 +01:00
citruzandPascal Vizeli a4b88fc31b Updated beacontools (#12368) 2018-02-13 11:32:44 +01:00