Compare commits

...

3080 Commits

Author SHA1 Message Date
Bram Kragten c1eabeb29f Remove light card for generated mode 2020-01-17 21:53:38 +01:00
Paulus Schoutsen 5ff8fe68ba Alert user when add-on not started (#4485) 2020-01-17 17:02:56 +01:00
David F. Mulcahey a2a039ebc5 Add group binding to the ZHA config panel and misc. cleanup (#4466)
* clean up zha device card and usage

* group binding tile

* add cluster selection to group binding tile

* fix css class name

* fix filtering

* multiselect for clusters in group binding

* pass narrow to cluster table

* fix tables

* fix device page

* address remaing comments from previous PR

* fix bad cherry-pick

* css cleanup

* consistency

* use properties

* translations

* add confirmation dialog to remove button

* fix css

* review comments

* remove noise
2020-01-17 16:39:57 +01:00
Ian Richardson 1064aed1b0 📝 make some Lovelace UI text more clear (#4500) 2020-01-17 09:54:16 +01:00
Ian Richardson 7025592e8e 🐛 fix picture glance card's camera_view option in editor (#4495) 2020-01-17 09:44:57 +01:00
HomeAssistant Azure 4966354b62 [ci skip] Translation update 2020-01-17 00:32:37 +00:00
David F. Mulcahey 68d6faf4af fix selection check (#4488) 2020-01-16 18:19:01 +01:00
Paulus Schoutsen e3346483b9 Hide device trackers from generated lovelace (#4487) 2020-01-16 08:57:41 +01:00
HomeAssistant Azure e8fb79e5ce [ci skip] Translation update 2020-01-16 00:32:40 +00:00
Alexei Chetroi d612162ab1 Fix ZHA add device path. (#4486) 2020-01-15 20:05:05 +01:00
Bram Kragten 86f8ef3a70 Styling focus menus (#4483)
* Styling menus

* Update ha-config-navigation.ts
2020-01-15 19:41:56 +01:00
Bram Kragten 0e43435362 Don't ask to choose view when only 1 view (#4480) 2020-01-15 09:05:01 -08:00
Bram Kragten aaefe0b09f Handle unknown state (#4481) 2020-01-15 09:01:59 -08:00
Bram Kragten bc731a9dc3 Add edit btn to more info for scene, script and automation (#4476) 2020-01-15 09:50:16 +01:00
Bram Kragten da25701dca Disable adoptedStyleSheets in dev (#4474) 2020-01-15 09:25:17 +01:00
Bram Kragten 21ae483dc9 Styling fixes (#4475) 2020-01-15 09:25:04 +01:00
HomeAssistant Azure 38b6e9ca10 [ci skip] Translation update 2020-01-15 00:32:57 +00:00
Bram Kragten d31245866c Add DEPRECATED to states ui (#4463)
* Add DEPRECATED to states ui

* unelevated red

* target

* Add msg in info
2020-01-14 06:35:01 -08:00
Bram Kragten 4e08d8f3b3 Fix zha back btn (#4470) 2020-01-14 07:57:00 -05:00
Bram Kragten 1e717ab33e Catch undefined cloudstatus (#4465) 2020-01-14 13:52:23 +01:00
Bram Kragten 995fb4974e Fix translations (#4469) 2020-01-14 13:20:06 +01:00
HomeAssistant Azure ffb76132f8 [ci skip] Translation update 2020-01-14 00:32:29 +00:00
Bram Kragten acba3af54b Fix back btn for Polymer (#4467) 2020-01-13 18:21:43 +01:00
Paulus Schoutsen 40ac456937 Force refresh tokens if external app (#4461) 2020-01-13 05:47:08 -08:00
Bram Kragten 5c32413bf7 Onboarding core: Display error message when saving fails (#4462) 2020-01-13 05:31:53 -08:00
Bram Kragten 22792c70c5 Change config panel navigation (#4377)
* Change config panel navigation

* Show active + don't show toolbar?

* Update ha-panel-config.ts

* Change color of menu toolbar

* Update ha-config-router.ts

* Review comments
2020-01-12 17:57:38 +01:00
Krisjanis Lejejs a8ed87298a Improved map panel and map card to ignore zones when fitting map. (#4447)
* Improved map panel and map card to ignore zones when fitting map. [#1598](https://github.com/home-assistant/home-assistant-polymer/issues/1598)

* Improved map panel and map card to ignore zones when fitting map. [#1598](https://github.com/home-assistant/home-assistant-polymer/issues/1598)

* Improved map panel and map card to ignore zones when fitting map. [#1598](https://github.com/home-assistant/home-assistant-polymer/issues/1598)

* Changed approach and created a different array for zones

* Removed zone key option for markers
2020-01-12 17:56:55 +01:00
Joakim Sørensen b15270dfe2 Use correct suffix for elevation (#4454)
* Use correct suffix for elevation

* Use correct suffix for elevation
2020-01-12 07:31:59 -08:00
Bram Kragten 58ad949bc8 Virtualize logbook (#4450)
* Virtualize logbook

* Clean

* Update ha-logbook.ts
2020-01-12 13:00:26 +01:00
HomeAssistant Azure adce40de56 [ci skip] Translation update 2020-01-12 00:33:31 +00:00
Ian Richardson 0f487ae4bf Add tabindex to lovelace elements (#4160)
* tabindex

* use action handler

* circular focus test

* address comment

* add focus styling to other elements

* add focus styling to cards

* style glance card entities

* Add back light/thermo changes that were lost in rebase

* Remove unused import

* lint

* lint

* 💄 tweak focus style for glance entities

* 💄 apply styling to focused state-label-badges
2020-01-11 11:50:43 +01:00
Joakim Sørensen 2848e3a63b Adds CCS var usage to person dialog (#4449) 2020-01-11 11:49:57 +01:00
Bram Kragten 5a172a64c5 Make entry flow dialog modal (#4440)
* Make entry flow dialog modal

* Add close button

* Update dialog-data-entry-flow.ts

* Fix aria-label
2020-01-10 16:40:19 -08:00
HomeAssistant Azure 433aa16ea6 [ci skip] Translation update 2020-01-11 00:32:34 +00:00
HomeAssistant Azure 50cb8cf3cc [ci skip] Translation update 2020-01-10 00:32:38 +00:00
Sean Mooney 4e5406b27b Typo fix in issue template (#4445)
fixes small typo, necesarry = necessary
2020-01-09 09:29:42 -06:00
Franck Nijhof 80eb80619a Add configuration for Lock Threads on closed pull requests (#4443) 2020-01-09 11:40:25 +01:00
Ian Richardson bf71b3a869 ♻️ convert ha-attributes to lit-element (#4350)
* ♻️ convert ha-attributes to lit-element

* Address comments

* inline items

* 🐛 Fix attribution display logic
2020-01-09 10:22:23 +01:00
HomeAssistant Azure ff270c4b7d [ci skip] Translation update 2020-01-09 00:32:44 +00:00
David F. Mulcahey 5415068917 Rework the ZHA config panel (#4415)
* convert zha config panel to tabs

* add spacer to prevent combobox from hitting bottom

* break clusters out into their own section

* cleanup buttons

* remove header

* make devices default tab

* convert from tabs to a list view

* convert to table on dashboard

* fix anchor on mobile safari

* cleanup CSS to fix display on mobile

* cleanup card css

* more css cleanup

* fix group page

* remove translations changes

* Update src/panels/config/zha/zha-clusters.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-config-dashboard.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-device-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-groups-dashboard.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* review comments

* fix dangling quote after commit suggestion

* css cleanup

* remove flex rules

* remove flex rules

* css  cleanup

* remove dialog per review comments

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-01-08 18:35:21 +01:00
Bram Kragten 357a67c00d Bumped version to 20200108.0 2020-01-08 18:26:20 +01:00
HomeAssistant Azure cbe4269320 [ci skip] Translation update 2020-01-08 17:25:54 +00:00
Bram Kragten fbd5185ce2 Add ability to remove Lovelace config (#4430)
* Add ability to remove Lovelace config

* Update hc-lovelace.ts
2020-01-08 18:19:10 +01:00
Bram Kragten a33cf97e2c Fix moving actions with data (#4438) 2020-01-08 18:18:53 +01:00
Pascal Vizeli 7e7da26543 Update azure-pipelines-translation.yml for Azure Pipelines 2020-01-08 16:54:09 +01:00
Bram Kragten 79058e893b Add alert when Google sync failed (#4435) 2020-01-08 15:59:22 +01:00
Bram Kragten 2eb548bb74 Merge branch 'master' into dev 2020-01-07 20:53:23 +01:00
Bram Kragten 08baf8a757 Bumped version to 20200107.0 2020-01-07 20:50:51 +01:00
Bram Kragten f02fa6a94b Add multi select to entity registry (#4424)
* Add multi select to entity registry

* Fix filter and sort on status

* Remove unused prop platform

* Review

* Update ha-config-entity-registry.ts
2020-01-07 12:29:42 +01:00
Bram Kragten 2ed6d0e73c Make modal of Lovelace editor dialogs (#4426)
Fixes #4425
2020-01-06 22:25:17 +01:00
David F. Mulcahey 35d9b2ac3c Add the ability to create new Zigbee groups to the ZHA config panel (#4384)
* add group page

* Update src/panels/config/zha/zha-add-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* fix group name handling

* Update src/panels/config/zha/zha-add-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-01-06 07:02:47 -05:00
Bram Kragten 18d09c6f04 Add UI for restored entities (#4414)
* Add UI for restored entities

* Add conformation for removal

* Apply suggestions

* Guard
2020-01-03 12:44:25 +01:00
Joakim Sørensen 70b81de49d Force rerender on update/save (#4396)
* Force rerender on update/save

* Fix linting issue

* Define properties by using @property() instead

* Add styles to disabled save button

* Change to use @customElement, and remove _generation as a property.
2020-01-02 21:15:26 +01:00
David Cramer f0808c1f54 Add ha-subppage toolbar css styles (#4409) 2020-01-02 20:55:43 +01:00
Jay e779f0747e Change TRIGGER to EXECUTE (#4413)
There's been some confusion among new users about what the `TRIGGER` button does in the automation info popup. `EXECUTE` better represents what pressing that button does since it bypasses conditions and simply runs the action like a script. The automation docs at <https://www.home-assistant.io/docs/automation/action/> also say "The action of an automation rule is what is being executed when a rule fires."
2020-01-02 20:16:39 +01:00
David F. Mulcahey bdd18775c3 Add group editing to the ZHA config panel (#4382)
* add group editing

* Update src/panels/config/zha/zha-devices-data-table.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-devices-data-table.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/zha/zha-group-page.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* review comments

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-01-02 15:59:18 +01:00
David F. Mulcahey 711d51c022 Disable ZHA device binding buttons when a device to bind isn't selected (#4407)
* only enable buttons when a device is selected

* review comments
2020-01-02 07:24:40 -05:00
David F. Mulcahey 1b0d8bba29 fix area index on ZHA device card (#4406) 2020-01-02 10:50:19 +01:00
Colin Frei 2988cc512f Fix grammatical error (#4403) 2020-01-02 10:28:36 +01:00
Joakim Sørensen a2f8e5f3e7 Hide protection mode toggle if not usable (#4392) 2020-01-02 10:20:21 +01:00
David F. Mulcahey 680bf06a4b Add group detail view to the ZHA config panel (#4380)
* add group details

* review comments
2019-12-24 10:29:22 -05:00
David F. Mulcahey ff0b1881e2 Add Zigbee group removal to the ZHA config panel (#4376)
* add remove groups function

* add ability to remove groups

* translations

* review comments

* review comments

* review comments
2019-12-24 08:12:02 -05:00
David F. Mulcahey de653e1f7b Add Zigbee group viewing to ZHA config panel (#4365)
* add ability to view zigbee groups

* review comments

* remove selectable until used
2019-12-23 10:46:34 -05:00
Bram Kragten bb41170765 Add language Iban (#4375) 2019-12-23 16:27:41 +01:00
Bram Kragten 0ed2bc93aa Remove uploading translations from Travis (#4374) 2019-12-23 13:39:47 +01:00
Bram Kragten 04770f8ee2 Add language Esperanto (#4373) 2019-12-23 13:39:31 +01:00
Bram Kragten 15a2790b9f Add support to add all device entities to Lovelace (#4356)
* Add support to add all device entities to Lovelace

* Reload config when it was changed while Lovelace was not active

* Localize

* Update ha-panel-lovelace.ts

* Move to device entities card

* Move Lovelace logic to lovelace combine with unused entities

* Unused imports

* Added suggestions and support for YAML mode
2019-12-23 10:39:17 +01:00
Jc2k 83880791b1 Add 'unignore' to DISCOVERY_SOURCES that can be ignored. (#4370) 2019-12-21 17:10:20 +01:00
HomeAssistant Azure 4dca3289f6 [ci skip] Translation update 2019-12-19 16:07:21 +00:00
Pascal Vizeli 083a3ebfc4 Run translation on dev (#4368) 2019-12-19 17:03:05 +01:00
Pascal Vizeli 6117c4e989 Add Auto Translation handling (#4339)
* Add Auto Translation handling

* Cleanup
2019-12-18 16:38:36 +01:00
Bram Kragten 609763e658 Set focus to search when opening add integration dialog (#4357)
* Set focus to search when opening add integration dialog

* Also add to flow form
2019-12-18 16:35:20 +01:00
Bram Kragten 2c57ab60f1 Add ignore discovery button (#4354)
* Add ignore discovery button

* Add seperate list for ignored integrations

* Move translations

* Add zeroconf
2019-12-18 16:22:17 +01:00
Ian Richardson dd17a153d2 Fire custom LL event (#4361) 2019-12-18 07:40:26 +01:00
Bram Kragten c2d551bb7c Merge pull request #4341 from bonanitech/patch-2
Upgrade MDI icons to 4.7.95
2019-12-12 17:20:24 +01:00
Mauricio Bonani e0b1921108 Fix version number 2019-12-09 12:40:11 -05:00
Mauricio Bonani fcf39ceb96 Upgrade MDI icons to 4.7.95 2019-12-09 12:27:03 -05:00
Mauricio Bonani 3cc979a077 Upgrade MDI icons to 4.7.95 2019-12-09 12:24:36 -05:00
Bram Kragten 9972973774 Merge pull request #4338 from home-assistant/rc
20191204.1
2019-12-09 13:41:33 +01:00
Bram Kragten 20ae32bc26 Bumped version to 20191204.1 2019-12-09 13:03:17 +01:00
Bram Kragten a29892023b Revert "Add copy entity ID/state/attributes menu button in dev tools/states" (#4337)
* Revert "Add copy entity ID/state/attributes menu button in dev tools/states (#4259)"

This reverts commit 4b56db5255.

* Update package.json
2019-12-09 13:02:41 +01:00
Bram Kragten b283fec482 Update cloud-google-assistant.ts (#4329) 2019-12-09 13:02:17 +01:00
Bram Kragten e0116a8236 Fix thingtalk automations creation (#4328) 2019-12-09 13:01:56 +01:00
Bram Kragten d1990a4bac Revert "Add copy entity ID/state/attributes menu button in dev tools/states" (#4337)
* Revert "Add copy entity ID/state/attributes menu button in dev tools/states (#4259)"

This reverts commit 4b56db5255.

* Update package.json
2019-12-09 12:59:20 +01:00
Bram Kragten cbba1849e2 Convert script and automation editor to lit (#4327)
* Convert script and automation editor to lit

* Update yarn.lock
2019-12-09 10:59:52 +01:00
Bram Kragten 43393d1647 Update cloud-google-assistant.ts (#4329) 2019-12-09 08:34:36 +01:00
Bram Kragten b47ee1051c Fix thingtalk automations creation (#4328) 2019-12-07 20:46:04 +01:00
Bram Kragten 393adacc9e Convert automation actions/scripts to Lit (#4324)
* Convert automation actions/scripts to Lit

* Update ha-automation-action-row.ts

* Comments
2019-12-06 12:14:45 +01:00
Bram Kragten 073428849e Convert automation conditions to Lit (#4321)
* Convert automation conditions to Lit

* Split condition editor and row

* Comments

* Update automation.ts

* Update automation.ts
2019-12-05 19:48:06 +01:00
Bram Kragten e6ac0258e3 Use dynamicElement directive in ha-form (#4317)
* Use dynamicContentDirective

* Turn around

* Remove attributes

* Rename to dynamicElement
2019-12-04 22:58:35 +01:00
Bram Kragten d7e7798a55 Merge pull request #4318 from home-assistant/dev
20191204.0
2019-12-04 20:02:41 +01:00
Bram Kragten 2557414b11 Merge branch 'master' into dev 2019-12-04 19:30:47 +01:00
Bram Kragten f7065fbce9 Bumped version to 20191204.0 2019-12-04 19:28:47 +01:00
Bram Kragten 016564eee9 Update translations 2019-12-04 19:22:23 +01:00
Bram Kragten ff3087c39c Convert automation trigger to litelement (#4315)
* Convert automation trigger to Lit

* Update ha-automation-trigger-row.ts

* dynamicContentDirective

* update

* Lint

* Implement other types
2019-12-04 09:57:47 -08:00
Bram Kragten 239438ee5d Add entity picker to service call action (#4310)
* Add entity picker to service call action

* Use prop instead of attr
2019-12-03 12:30:51 +01:00
Florian Gareis 5458cda31f Add new confim dialog to automation editor (#4255) 2019-12-03 12:21:51 +01:00
Bram Kragten 36f49e66fd Remove empty defaults from time patern trigger automation (#4307) 2019-12-02 11:11:05 -08:00
Bram Kragten 2bafd38ea8 Allow automation actions/scripts to be moved up/down (#4308)
* Allow automation actions/scripts to be moved up/down

* Update index.tsx
2019-12-02 11:10:44 -08:00
Bram Kragten 73b3262491 Fix editing delay action (#4309) 2019-12-02 11:08:38 -08:00
Bram Kragten 808cde033f Update bug_report.md 2019-12-02 17:39:39 +01:00
Bram Kragten fa8f6b7b91 Add yaml editor to automation actions and scripts (#4306)
* Add yaml editor to automation actions and scripts

* Add types

* Update event.tsx
2019-12-02 14:08:19 +01:00
Bram Kragten 94c120cdb1 Add yaml editor to automation conditions (#4305) 2019-12-02 12:02:35 +01:00
Bram Kragten 7b2be54f8f YAML support for automation triggers (#4289)
* WIP: Add yaml editors to automation

* Fix form overwriting yaml on switching back

* Finish triggers

* prettier
2019-12-02 11:20:09 +01:00
nicop4 4b56db5255 Add copy entity ID/state/attributes menu button in dev tools/states (#4259)
* Added button and js method to copy with copy-to-clipboard library

* Copy entity id working, tooltip added

* copy ok, use ha toast to notify ok

* cleanup code

* add translation

* removed old useless code

* Replaced copy button with menu

* Fix comparison operator & removed commented code

	modifié :         src/panels/developer-tools/state/developer-tools-state.js

* Fix spaces

	modifié :         src/panels/developer-tools/state/developer-tools-state.js

* Improve copy attributes

* only one menu & update translation

* copy attributes in yml format
use paper-icon-item instead of paper-icon-button and add yarn.lock

* removed paper-item
2019-12-02 10:35:49 +01:00
Bram Kragten 93165c9111 Area/multiple devices and name support for thingtalk automations (#4272)
* WIP: Area/multiple devices and name support

* Fix removing devices

* Don't recalc entities for all devices every time

* Use guards

* Update ha-thingtalk-placeholders.ts
2019-12-02 10:30:30 +01:00
Bram Kragten caa604d5ca Add more aria labels (#4293)
* Add aria labels

* Fix polymer binding
2019-12-02 09:29:02 +01:00
Thomas Lovén e7e9e2cf85 Allow setting temperature to 0 degrees (#4300) 2019-12-02 09:23:20 +01:00
Bram Kragten daa04e9973 Fix jumping on iOS when toggle switch (#4275) 2019-11-29 12:41:37 +01:00
Bram Kragten 5355269f5d Check if external app by object (#4280)
* Check if external app by object

* Update core.ts

* Conditional chaining

* add babel optional chaining
2019-11-27 15:44:59 -08:00
Bram Kragten 2665a75250 Don't show hidden scenes (#4285)
* Don't show hidden scenes

* Comments

* computeStateDomain
2019-11-27 15:44:28 -08:00
Bram Kragten 8a39d18323 Bump TypeScript to 3.7 (#4282)
* Bump TypeScript to 3.7

* Update prettier to support ts 3.7

* Prettier

* More prettier

* Even more prettier
2019-11-27 13:51:03 -08:00
Bram Kragten b8a026397b Don't filter attributes when saving scene (#4278)
* Add cover attributes to scene editor

* Add more

* Remove filtering of attributes

* Update ha-scene-editor.ts
2019-11-27 13:43:46 -08:00
Bram Kragten bd5fe302eb Revert "Add specific maskable icons (#4283)" (#4284)
This reverts commit de0f1b2b65.
2019-11-27 20:23:58 +01:00
Bram Kragten de0f1b2b65 Add specific maskable icons (#4283) 2019-11-27 16:43:23 +01:00
Thomas Lovén defaa2b276 Fix missing semicolons in CSS (#4281)
Introduced in #4269
2019-11-27 13:06:02 +01:00
Bram Kragten 60efe00a1f Fix styling of vaadin elements (#4276) 2019-11-26 16:57:29 +01:00
Davide Varricchio fe93b993db Change to thermostat card to reflect step_temp on set-temperature (#4221)
* Minor change to thermostat card to reflect step_temp on set-temperature

* Corrected indentation

* Resolved eslint error
2019-11-25 17:42:38 +01:00
Joakim Sørensen f6afc92d3c Adds "air" at the bottom of the page (#4267)
* Adds "air" at the bottom of the page

* Update src/panels/config/dashboard/ha-config-dashboard.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Add margin to promo
2019-11-25 17:38:08 +01:00
Carlos Gustavo Sarmiento e4c635c855 Added new CSS property for styling of the app-header component (#4269) 2019-11-25 17:37:33 +01:00
Bram Kragten a3e59e168f Bumped version to 20191119.6 2019-11-23 21:31:19 +01:00
Thomas Lovén e56355b406 Bump round-slider version. Fix #4265 (#4266) 2019-11-23 21:30:54 +01:00
Mauricio Bonani 8ef15c50b4 Upgrade MDI icons to 4.6.95 (#4270)
* Upgrade MDI icons to 4.6.95

* Upgrade MDI icons to 4.6.95
2019-11-23 21:26:32 +01:00
Marius 81588469b8 Add secondary-info: last-triggered (#4222)
* Add secondary-info: last-triggered

add last-triggered to the currently available options 'entity-id' and 'last-changed' see:https://www.home-assistant.io/lovelace/entities/#secondary_info

* corrected omission 'attributes'

* added test for attributes.last_triggered

* Update hui-generic-entity-row.ts

* Update hui-generic-entity-row.ts
2019-11-23 21:19:26 +01:00
Joakim Sørensen 70a920af3c Add initial bg color to panels (#4268) 2019-11-23 21:18:54 +01:00
Thomas Lovén 1329e60c89 Bump round-slider version. Fix #4265 (#4266) 2019-11-23 21:12:48 +01:00
Bram Kragten 9b7c095080 Bumped version to 20191119.5 2019-11-21 17:25:50 +01:00
Bram Kragten 654ff99cd1 Bumped version to 20191119.4 2019-11-21 17:04:43 +01:00
Bram Kragten 0511bc360e iOS 9 doesn't support append (#4260) 2019-11-21 17:04:36 +01:00
Bram Kragten ea9e8cc392 iOS 9 doesn't support append (#4260) 2019-11-21 17:03:35 +01:00
Bram Kragten 8433678371 Bumped version to 20191119.3 2019-11-21 15:22:07 +01:00
Bram Kragten 757bc00854 Fix thermostat card (#4258)
* Fix thermostat card

* Change styling

* Remove margin on mode buttons
2019-11-21 15:21:45 +01:00
Bram Kragten 2551393821 Fix light card (#4257)
* Fix light card

* Remove unused class

* Fix for when entity is not available

* Fix active state
2019-11-21 15:21:20 +01:00
Bram Kragten 0acd41b7f0 Fix thermostat card (#4258)
* Fix thermostat card

* Change styling

* Remove margin on mode buttons
2019-11-21 15:18:16 +01:00
Bram Kragten 85ca73db84 Fix light card (#4257)
* Fix light card

* Remove unused class

* Fix for when entity is not available

* Fix active state
2019-11-21 15:17:55 +01:00
Bram Kragten 444cbd00d9 Update README.md 2019-11-21 15:05:42 +01:00
Bram Kragten 15b500886c Bumped version to 20191119.2 2019-11-20 11:02:01 +01:00
Thomas Lovén 3aac834e72 Version bump round-slider. Fix bad rendering in IE/Edge (#4249) 2019-11-20 11:01:32 +01:00
Thomas Lovén 6edf23b91f Version bump round-slider. Fix bad rendering in IE/Edge (#4249) 2019-11-20 10:55:06 +01:00
Bram Kragten e445251b02 Bumped version to 20191119.1 2019-11-19 21:08:29 +01:00
Bram Kragten 693151b590 Fix ha-form on edge (#4248) 2019-11-19 21:08:15 +01:00
Bram Kragten 1249c0eea9 Fix ha-form on edge (#4248) 2019-11-19 21:06:52 +01:00
Bram Kragten 3133118870 Update vaadin components (#3571)
* Update vaadin components

* Remove resolution

* Migrate person detail dialog to mwc-dialog

* Fix imports

* Update dialog-person-detail.ts
2019-11-19 11:35:37 -06:00
Bram Kragten de5c1a0545 Merge pull request #4246 from home-assistant/dev
20191119.0
2019-11-19 13:37:07 +01:00
Bram Kragten c61e2fb459 Bumped version to 20191119.0 2019-11-19 13:19:33 +01:00
Bram Kragten 64a2a19da3 Update translations 2019-11-19 13:19:27 +01:00
Bram Kragten 74fe1f820c Fix error when no entities (#4244) 2019-11-19 13:16:55 +01:00
Bram Kragten 69929f5dc3 Fix thermostat unavailable (#4245) 2019-11-19 13:16:38 +01:00
Bram Kragten fcd793fc9e Fix device filtering on mobile (#4243) 2019-11-19 11:41:56 +01:00
Bram Kragten 8a3b1d76a1 Fix removing entity in scene editor (#4241)
Fixes https://github.com/home-assistant/home-assistant-polymer/issues/4237
2019-11-19 00:35:16 +01:00
Thomas Lovén 9f520d7628 Use new scaling features of round-slider (#4172)
* Refresh light card.

* Refresh thermostat card

* Fix paddings

* Fix #4175

* Use action handler

* Address review comments

* Lint

* Padding on percentage

* Remove typo
2019-11-19 00:32:23 +01:00
Bram Kragten 258cfddc3f Remove alias from scene action (#4240)
Fixes https://github.com/home-assistant/home-assistant-polymer/issues/4239
2019-11-19 00:28:35 +01:00
Bram Kragten 3697500402 Fix min value in editor (#4236) 2019-11-19 00:28:08 +01:00
springstan b4942ad27e Fixed two-part pin code input in Manual Alarm Control Panel (#4213)
* Consolidated code input via clicking GUI pads and using a physical keyboard

* Replaced the querySelector with the query decorator

* Run the query selector once, store its result and reuse it multiple times
2019-11-19 00:27:48 +01:00
Ville Skyttä 1e217e8d2f Support email and url form input types (#4186)
* Support email and url form input types

* Lint

* Lint

* Add types
2019-11-18 18:03:19 +01:00
Bram Kragten 0056237d85 Merge pull request #4233 from home-assistant/dev
20191118.0
2019-11-18 13:08:58 +01:00
Bram Kragten 920ee741f3 Bumped version to 20191118.0 2019-11-18 12:50:11 +01:00
Bram Kragten 6ecc60423f Fix actions not working on touch devices (#4231) 2019-11-18 11:27:44 +01:00
MatthewFlamm 09e7638c89 fix evaluating to false and remove ; (#4228) 2019-11-18 09:00:50 +01:00
Bram Kragten b82b4a639e Merge pull request #4227 from home-assistant/demo-manifest
Add maskable icon directive to demo manifest
2019-11-18 08:54:07 +01:00
Paulus Schoutsen d08aa51c16 Add maskable icon directive to demo manifest 2019-11-16 12:09:29 +01:00
Bram Kragten 385ffe6d8f Merge pull request #4226 from home-assistant/dev
20191115.0
2019-11-15 20:21:09 +01:00
Bram Kragten 564e6d4073 Bumped version to 20191115.0 2019-11-15 20:06:35 +01:00
Bram Kragten a4bd816eb5 Fix localise escaping issue (#4225) 2019-11-15 19:59:47 +01:00
Bram Kragten 13c18a9bb7 Merge pull request #4224 from iantrich/fix-filter-badge
Fix entity-filter-badge update
2019-11-15 19:59:25 +01:00
Ian Richardson 562d7a7cf4 use lastChild 2019-11-15 11:10:47 -06:00
Ian Richardson 89f33a1730 Fix entity-filter-badge update 2019-11-15 09:45:50 -06:00
Bram Kragten ff7309f5c4 Merge pull request #4218 from home-assistant/dev
20191114.0
2019-11-14 13:47:21 +01:00
Bram Kragten 1c614c855f Bumped version to 20191114.0 2019-11-14 13:28:28 +01:00
Bram Kragten 6a3238951d Updated translations 2019-11-14 13:28:06 +01:00
Bram Kragten 0dab5828fb Add Thingtalk automation generation (#4216)
* thingtalk

* works

* Add device_class support and get placeholders from api

* Update
2019-11-14 13:22:44 +01:00
Joakim Sørensen d0b9c09f8f Fix person dialog issues (#4210)
* Fix person dialog issues

* Remove repo (should not have been committed...)

* Trigger Travis
2019-11-12 20:30:11 +01:00
Josh McCarty 55f4629256 Wrap the dialog title when using Entity Registry (#4174)
* Wrap the dialog title when using Entity Registry

* Move updated styles to styles()
2019-11-12 14:52:56 +01:00
Joakim Sørensen 004565217e Restructure/reorder configuration dashboard (#4202)
* Reoreder config dashboard

* Changes base translation for config dashboard items to be pleural

* Convert to lit/ts

* remove unneded stuff

* fix child property passes

* Export page configuration

* Apply suggestion

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Change property to CloudStatus
2019-11-10 23:25:13 +01:00
Bram Kragten c07b39ebde Fix device and entity pickers clear (#4206)
* Fix device and entity pickers clear

* Prevent combobox to open on clear
2019-11-10 13:25:07 -08:00
Bram Kragten 8b17b6ed1c Add attribution and onboarding to voice (#4190)
* Add attribution and onboarding to voice

* Align with backend changes

* Layout + switch to ws for process

* Don't mutate window

* Move speechRecognition

* Add border

* Update ha-voice-command-dialog.ts
2019-11-10 11:30:41 -08:00
Paulus Schoutsen 1d16bdbe54 Merge pull request #4201 from home-assistant/lokalise
Update lokalise cli to version 2 + fix replacing localise vars
2019-11-10 11:30:08 -08:00
Joakim Sørensen 9e2a0c77d5 Adds clear value handler (#4205)
* Adds clear value handler

* Add the same to device picker
2019-11-10 19:23:27 +01:00
Joakim Sørensen 4f41508110 Adds timestamp device_class for sensor (#4204) 2019-11-10 18:41:33 +01:00
Joakim Sørensen eaedb2e5ae Checked button colors (#4203)
* split switch-checked-color into 2 vars like the unchecked variant

* Apply new css vars

* revert accidental delete

* revert demo changes

* revert property change
2019-11-10 18:40:36 +01:00
Bram Kragten 75ad1f51a9 Update translations_upload_base 2019-11-09 23:49:26 +01:00
Bram Kragten 142175c6ab Update lokalise cli to version 2 + fix replacing localise vars 2019-11-09 23:47:58 +01:00
Joakim Sørensen f1980d6bcf Fixes history graph card defaults (#4198) 2019-11-09 17:30:08 +01:00
Joakim Sørensen 5a7b5200fe Change correct localization string (#4197)
* Change correct localization string

* Update en.json
2019-11-09 17:29:14 +01:00
Joakim Sørensen d284d53b93 Reload buttons (#4194)
* Change base translation for ui.panel.config.server_control.section.reloading.core

* Give each btn a new card-action div
2019-11-08 14:39:21 -08:00
Bram Kragten bc01df42d8 Merge pull request #4193 from home-assistant/dev
20191108.0
2019-11-08 17:41:58 +01:00
Bram Kragten 901752bec3 Update translations (#4192) 2019-11-08 17:12:48 +01:00
Bram Kragten e3ef3cfae1 Bumped version to 20191108.0 2019-11-08 17:12:28 +01:00
Paulus Schoutsen ab476d2f1b Add conversation ID to voice dialog (#4189) 2019-11-07 12:21:37 -08:00
Bram Kragten 5ca82fd39c Fix mobile support for voice dialog (#4154)
* Fix mobile support for voice dialog

* Update ha-voice-command-dialog.ts

* typo

* Add extra data functions

* Start listening for choice

* Remove extra data logic
2019-11-04 12:34:59 -08:00
Bram Kragten da35c263d2 Add scene editor (#4164)
* Add scene editor

* Update ha-config-scene.ts

* Update en.json

* Update ha-scene-editor.ts

* Partial comments

* Types

* 1 more

* Comments

* Lint

* Update ha-device-picker.ts

* Update ha-device-card.ts
2019-11-04 12:07:09 -08:00
Bram Kragten 2a617a9639 Revert "Add Netatmo specific states" (#4171) 2019-11-01 20:35:35 +01:00
springstan c730aab28f Translated config flow form and steps (#4140)
* Translated config flow form and steps

* Moved translation from config_entry to config_flow

* Renamed translation key from not_all_fields_required to not_all_required_fields
2019-11-01 20:34:10 +01:00
Ian Richardson 274c2016c0 action-handler (#4115)
* action-handler

* comments

* address comments

* finish conversion

* move haptics

* address comments

* lint

* keyup

* double enter

* address comments

* keyup
2019-11-01 13:15:11 -05:00
Bram Kragten 9b3891f778 Fix state-label-badge override name (#4166) 2019-11-01 12:54:14 -05:00
Bram Kragten b705de956e Fix hassio build (#4167) 2019-11-01 17:42:36 +01:00
Ian Richardson e37201f84f enter is registering as double_tap (#4161)
* enter is registering as double_tap

* Update long-press-directive.ts

* Update long-press-directive.ts
2019-11-01 16:39:53 +01:00
springstan f53eea81c4 Translated a bunch of strings (#4137)
* Translated customization page
 - added translation key-value pairs to en.json
 - translated form-customize, customize-icon and its key-value

* Translated mutliple pages:
 - devices
 - entity-registry
 - config-entry
 - dashboard -> hint to advanced mode toggle

* Translated custom panel confirm message

* Added translation for no entries in logbook

* Updated translation keys, tested and removed ha-types file translations

* Removed setting an if to true for testing

* Use template literal instead of string concatenation
2019-11-01 16:12:49 +01:00
springstan 0fa8db1682 Translated unused entities, device registry page and domain toggler dialog (#4141)
* Translated device registry and domain toggler dialog

* Translated unused entities page

* Extracted unused_entities keys and created new section for domain_toggler

* Moved unknow_error and area_picker_label into devices section
2019-11-01 16:07:18 +01:00
Bram Kragten 46f5224e70 Migrate voice command dialog (#4150)
* Migrate voice command dialog

* Cleanup

* Correct types

* Added animation when listening and we should talk back right? :'-)

* Set recognition to english

* Comments

* Update on change of hass
2019-10-29 14:59:35 -07:00
Bram Kragten 12be2a9775 Merge branch 'master' into dev 2019-10-29 15:14:04 +01:00
springstan 6196bbdc5e Translated hui-editor and hui-root pages (#4142) 2019-10-29 13:15:47 +01:00
Marianne Hval b41f4777d4 More descriptive delete/move buttons + red delete (#4145) 2019-10-29 13:13:30 +01:00
springstan f2812bc706 Translated automation and script editor (#4146) 2019-10-29 13:12:35 +01:00
Bram Kragten 04500bc237 Merge pull request #4148 from springstan/addTitleAttributeConfigUIMode
Added title attributes and translated them in Configure UI Mode
2019-10-29 13:07:43 +01:00
Bram Kragten 2a6b877cf1 Bumped version to 20191025.1 2019-10-29 12:58:20 +01:00
Bram Kragten c3896a4613 Only do haptic on entity interactions 2019-10-29 12:56:52 +01:00
Bram Kragten c6fb896fe4 Merge pull request #4152 from home-assistant/haptics
Only do haptic on entity interactions
2019-10-29 12:53:44 +01:00
Bram Kragten 669fbb7e77 Only do haptic on entity interactions 2019-10-29 12:37:25 +01:00
springstan 971865e4f9 Added title attributes and translated them in Configure UI Mode 2019-10-28 20:13:24 +01:00
Paulus Schoutsen 9078e41855 Clarify tslint disable 2019-10-28 10:45:58 -07:00
Bram Kragten 466c48a7d0 Merge pull request #4128 from Twanislas/netatmo-states-translation
Add Netatmo specific states
2019-10-28 15:51:42 +01:00
Bram Kragten 31a047ce9e Merge pull request #4136 from home-assistant/dev
20191025.0
2019-10-25 17:44:34 +02:00
Bram Kragten bd24ffa5d0 Bumped version to 20191025.0 2019-10-25 17:12:30 +02:00
Bram Kragten 99f4bd7398 Updated translations 2019-10-25 17:12:22 +02:00
Bram Kragten 417177b097 Merge pull request #4135 from home-assistant/entity-reg-1-col
Change entity reg table to full width
2019-10-25 17:08:43 +02:00
Bram Kragten c407cab501 Change entity reg table to full width 2019-10-25 16:54:42 +02:00
Bram Kragten 044cf22f47 Fix variable column widths (#4127) 2019-10-24 09:43:28 -07:00
Bram Kragten 75aa940d44 Merge pull request #4129 from home-assistant/delete-view-btn
Fix styling delete view btn
2019-10-24 17:32:04 +02:00
Bram Kragten 7be8080726 Fix styling delete view btn 2019-10-24 12:32:59 +02:00
Antoine Rahier 13fbc813cd Add Netatmo thermostat states 2019-10-24 11:20:06 +02:00
Antoine Rahier 44d1458229 Revert "Add Netatmo specific states"
Wrong file !

This reverts commit f06f3ee2e5.
2019-10-24 11:16:41 +02:00
Antoine Rahier f06f3ee2e5 Add Netatmo specific states 2019-10-24 11:09:42 +02:00
Bram Kragten a889a02e15 Merge pull request #4123 from iantrich/aria-ts-translations
translated most aria-labels in ts files
2019-10-24 10:34:46 +02:00
Ian Richardson 6bf3d6a689 lint 2019-10-23 23:20:54 -05:00
Ian Richardson 1d7dcca495 translated most aria-labels in ts files 2019-10-23 23:02:58 -05:00
Bram Kragten ad8f049570 Merge pull request #4117 from home-assistant/dev
20191023.0
2019-10-23 21:36:21 +02:00
Bram Kragten 73c56a68b6 Bumped version to 20191023.0 2019-10-23 21:16:25 +02:00
Bram Kragten b34b52f305 Update translations 2019-10-23 21:16:03 +02:00
Ian Richardson 39d052273d support actions on rows (#4023)
* support actions on rows

* address comments

* add type

* pointer events

* move action area to row name to avoid handler competition

* add action to state-badge as well

* correct type

* address comments

* handle 'enter' in long-press and make entities state-badge selecatable
2019-10-23 10:30:09 -07:00
Bram Kragten e435b9153b Clean up device card (#4108) 2019-10-22 16:11:56 -07:00
Bram Kragten 0792278927 Fix more integrations message (#4106)
* Fix more integrations message

* Period outside link
2019-10-22 16:10:42 -07:00
Josh McCarty 06d59b3cde Adds a white background to the QR code for MFA (#4107) 2019-10-23 00:04:09 +02:00
Josh McCarty 1e7497ad33 Revise hassio update card design (#4041)
* Revise hassio update card design

See https://github.com/home-assistant/home-assistant-polymer/issues/3916

* Remove available text; use secondary text color instead of yellow/orange

* Less bold text for update header
2019-10-22 23:06:18 +02:00
Ian Richardson 49d0f2359b add sensor card to first demo (#4035)
* add sensor card to first demo

* Change to temperature sensor
2019-10-22 14:43:34 -05:00
Timmo bb73039205 Confirmation Dialog (#4053)
*  Add confirmation dialog

*  Add confirmation dialog to service calls

* 🔨 Change returned value

*  Add confirmation dialog to integration remove

*  Add to entity registry

*  Add to delete card and add translation

*  Add to views deletion

* 🔨 Remove async

* 🔨 Fix min-width for smaller screens

* 🔨 Remove async

* Fix wrong merge

* Update ha-config-entry-page.ts
2019-10-22 21:20:41 +02:00
Bram Kragten d4d6b7e2ce Fix delete button styling in hui-edit-view (#4102) 2019-10-22 21:17:55 +02:00
Drake Loud 7b5201599d added title to view configuation (#4037)
* added title to view configuation

* replacing let with const

* added localization change

* updated view config title

* linter updates

* Prettier updates
2019-10-22 10:27:36 +02:00
springstan 11c08e9a69 Added view title to heading of Lovelace Add Card picker (#4083)
* Added view title to heading of Lovelace Add Card picker

* Fixed building error, cleaned up code

* Changed _view to _viewConfig and added check for undefined _cardConfig

* Added else if for undefined _cardConfig, added else for manual cards

* Used template literal instead of string concatenation
2019-10-22 10:24:25 +02:00
aquarium 731bb176f7 Fix link to translation documentation (#4098) 2019-10-22 08:43:14 +02:00
Phi Dong b0fce93de8 Fix issue where long states do not wrap (#4101) 2019-10-22 08:39:37 +02:00
Paulus Schoutsen fdbe89e87e Fix develop build 2019-10-21 16:51:54 -07:00
Ian Richardson a8d0a2293f revert lovelace selectable text (#4095) 2019-10-21 16:45:15 -07:00
Paulus Schoutsen 8ac278bc59 Remove unused deps 2019-10-21 16:33:03 -07:00
Paulus Schoutsen 70d6c6b902 Refactor Webpack build scripts (#4093)
* Refactor Webpack build scripts

* Add Gallery too

* Fix icons

* Update travis
2019-10-21 15:02:54 -07:00
Drake Loud 0621218e16 Changed button to text (#4067)
* Changed button to text

* Moved styles to hui-edit-view

* prettier updates
2019-10-21 23:32:15 +02:00
Bram Kragten 2424376fba Change ha-device-picker to combo box + improve name handling + show area (#4089)
* Change ha-device-picker to combo box + improve name handling + show area

* unused import
2019-10-21 12:40:16 -07:00
Bram Kragten 3973374f3f Add positive_time_period_dict to ha-form (#4090)
* Add positive_time_period_dict to ha-form

* select input on focus

* Update ha-form-positive_time_period_dict.ts
2019-10-21 12:36:26 -07:00
Ian Richardson c25a38b82f add actions to state-badge element and state-label-badge (default Lovelace badge type) (#4028)
* add actions to state-badge element

* address comments

state-label-badge no longer handles clicks
added actions to hui-state-label-badge
moved ha-badges-card to Lit
2019-10-21 14:03:01 -05:00
Ian Richardson 3c0ba1d7eb Convert more-info-sun to Lit (#4075)
* Convert more-info-sun to Lit

* address comments
2019-10-21 13:04:22 -05:00
Ian Richardson be678b02c5 Convert more-info-weather to LitElement (#4073)
* Convert more-info-weather to LitElement

* address comments

* add shouldUpdate
2019-10-21 13:04:08 -05:00
Ian Richardson 0078b48e3c card level themes (#4057)
* card level themes

weather-forecast
shopping-list
plant-status
markdown
alarm-panel

* fix markdown

* address comments

also added picture cards

* update updated

* address comments

* address comments
2019-10-21 12:38:06 -05:00
springstan 540f1d9bce Fix for Zone icon visibility on Map panel and Lovelace Map card (#4085)
* Set icon color to black in ha-panel-map.js

* Changed icon color depending on dark mode in lovelace map card

* Fixed build error by swapping var for let and const

* Replaced hardcoded style with the light and dark classes
2019-10-21 17:45:40 +02:00
Bram Kragten 5e3cb812ec Fix yaml name collision in card editor (#4079)
* Fix `yaml` name collision

* Add types for js-yaml change to named imports
2019-10-21 17:36:09 +02:00
aquarium 6d10a5dd4c Split data table background color into separate theme variable (#4031)
* Split data table background color into separate theme variable

* Remove reference to MDC in data table theme variable name
2019-10-21 09:27:06 +02:00
Sean Mooney 96d14b7ab7 Changed outdated "GUI editor" reference to "visual editor" (#4068)
Changed warning text from "GUI editor" to "visual editor" to match the updated naming being used in card editors.
2019-10-20 15:10:07 +02:00
Phi Dong b96b026905 Add hovers (title attrs) to buttons on integrations config entry (#4059)
* Add integration specific titles to config buttons

* Rename tranlation var to integration, move button labels inline
2019-10-20 15:02:11 +02:00
Paulus Schoutsen c25f2d3941 Move compression from Webpack to Gulp (#4074) 2019-10-20 14:42:20 +02:00
Paulus Schoutsen 785453aa79 Clean up mixins (#4076)
* Clean up mixins

* Lint
2019-10-20 14:31:58 +02:00
Phi Dong 4dbf5327bd Update snapshot actions to be a list (#4045)
* Update snapshot actions to be a list

* Update text of delete button to warning color
2019-10-19 18:03:22 +02:00
springstan 603240c467 Translated developer tools info page (#4054)
* Translated developer tools info page

* Added set or remove as a variable in translation of key default_ui
2019-10-19 17:59:57 +02:00
Paulus Schoutsen bbc3e7d93f Make updateHass not async (#4060) 2019-10-19 17:18:56 +02:00
Ian Richardson fbee4937a0 add icon option to entities card name (#4024)
* add icon option to entities card name

* account for only icon

* address comments
2019-10-19 14:25:14 +02:00
Phi Dong 0a77728652 Move Home Assistant and version on info page into h2 (#4061) 2019-10-19 14:24:28 +02:00
Phi Dong e3ed0cf436 Hide save on card configuration if no card is picked (#4062) 2019-10-19 14:18:59 +02:00
Bram Kragten d05dc2e4dc Bring back babel (#3974)
* Bring back babel

* bump preset env

* Remove empty TS properties in mixins
2019-10-19 14:06:04 +02:00
Paulus Schoutsen c437cd3865 Use only decorators (#4058)
* Use only decorators

* Remove unused imports
2019-10-18 22:50:27 -07:00
springstan 442171169b Translated developer tools template page (#4050) 2019-10-18 23:05:07 +02:00
springstan cc12dbb6ee Translated developer tools services page (#4049)
* Translated developer tools services page

* Changed translation parameter from error to data
2019-10-18 23:04:43 +02:00
springstan 60b3a960ae Translated developer tools mqtt page (#4052) 2019-10-18 23:04:26 +02:00
shbatm 5a957c3c9e Add width property to light card to fix #3964 (#3972)
* Add width property to light card to fix #3964

* Update Light Card Name CSS

* Update css per review
2019-10-18 22:58:25 +02:00
Ian Richardson be4d431dc3 more-info dialog for counter (#4038)
* more-info dialog for counter

* address comments
2019-10-18 14:55:53 -05:00
Ian Richardson 0005c75091 fix double tap on glance entity (#4051) 2019-10-18 21:08:12 +02:00
springstan 880b382a16 Translated developer tools logs page (#4046)
* Translated developer tools logs page

* Changed translation key from load_log to load_full_log
2019-10-18 17:43:04 +02:00
Ian Richardson d012512a79 add feature request template (#4026) 2019-10-18 17:01:41 +02:00
springstan e2ac842690 Translated developer tools state page (#4039)
* Translated developer tools state page

* Fixed merge error by updating used icon in developer-tools-state.js
2019-10-18 16:33:11 +02:00
Ian Richardson 67d8d48855 translate view editor and explain panel mode (#4043) 2019-10-18 16:28:31 +02:00
Bram Kragten 00f2d36cb5 Migrate ha-form to lit (#4000)
* Migrate ha-form to lit

* Fix import path

* Update

* add default, change suffix, fix import

* Fix select
2019-10-18 16:08:34 +02:00
springstan 035057b185 Made thermostat history graph localizable (#4004)
* Made thermostat history graph localizable

* Changed string concatenation with white spaces from .join() to template literal

* Used variables in translations instead of template literals

* Update src/translations/en.json

Removed unnecessary space in heating value

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>
2019-10-17 23:28:12 +02:00
springstan 982966c8d9 Translated developer tools events page (#4033)
* Translated developer tools events page

* Implemented translations (alert on empty event type, notification on firing an event), Removed unnecessary translation key-value pairs

* Added falsely removed key-value pairs
2019-10-17 23:17:39 +02:00
Ian Richardson f5e3a9ad40 Convert thermostat to round-slider (#3734)
* Convert to round-slider

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3622
Closes https://github.com/home-assistant/home-assistant-polymer/issues/2756

* scaling

* address review comments

* css tweaks

* remove jquery

* address comments

* simplify set-temperature

* handle long name

* remove increased handleSize

* address comments

* address comments

* address comments

* address comment

* need coffee
2019-10-17 21:00:39 +02:00
Ian Richardson 141c3f1ea4 add confirmation option to actions (#4006)
* add confirmation option to actions

* address comments
2019-10-16 11:03:36 -05:00
Ian Richardson 4ea483e3de Switch theme (#4017)
* introduce ha-switch theming

* fix typo

* remove comment
2019-10-16 17:08:28 +02:00
Josh McCarty 8eca956cd1 Uses information-outline icon for entity more info link (#4016) 2019-10-16 16:53:25 +02:00
Ian Richardson c9242a5075 Custom badges (#3867)
* custom badges

* incremental

* functional

* cleanup

* cleanup

* address review comments

* address more comments

* address review comments

* address review comments

* cleanup

* address review comments

* address comments

* address comments

* fix entity-filter

* set hass once

* hass
2019-10-16 16:09:13 +02:00
Ian Richardson df29a5becb Add double tap action (#3879)
* add dbltap_action

* apply to picture-glance

* types and boolean

* fix typo

* simplify double tap logic

* extract hasDoubleClick functionality

* address comments

* address comments

* double_tap_action
2019-10-16 08:57:05 -05:00
Ian Richardson fb589337f8 display card errors with yaml config (#4018) 2019-10-16 09:22:57 +02:00
Ian Richardson ea5ee6189d filter system users from Person editor (#3958)
* filter system users from Person editor

* address review comments

* address comments

* address comments
2019-10-15 19:19:46 -05:00
Josh McCarty a39e47cced Updates alarm more-info dialog button styles to match lovelace card (#3955)
* Updates alarm more-info dialog button styles to match lovelace card

* Use flex for controlling button size

* Limit max-width of alarm buttons

This matches the width of the code input field
2019-10-15 21:04:29 +02:00
Ian Richardson 49d69f65ad add show_state option for picture-glance entities (#3937)
* add states option below picture-glance entities

* address review comments
2019-10-15 09:49:03 +02:00
Marcus Fredlund 424d677bcb Alarm Panel card: number buttons outline and adjusted padding and font-size fixing #2812 (#3991)
* outline on alarm panel buttons

* Fix for font-size before mwc-button is working.

* suggested edits from review

* changed to just outline

* Remove base-unit
2019-10-14 21:29:37 +02:00
springstan 59e4cdc62a Added integration name to System Options dialog (#3996)
* Added integration name to System Options dialog

* Passed integration name into translation string

* Translated integration name

* Added option for no translation
2019-10-14 21:28:44 +02:00
Bram Kragten 9d3dfad98c Update integration-badge.ts (#4001) 2019-10-14 21:28:13 +02:00
Erik Montnemery 555b746f4b Allow device actions to specify extra fields (#4002)
* Allow device actions to specify extra fields

* Typing etc.

* Use deviceAutomationsEqual to compare automations
2019-10-14 21:27:51 +02:00
Bram Kragten ce6a97d065 Merge pull request #3995 from scop/customize-yaml-message
Improve customize.yaml non-inclusion warning message
2019-10-14 21:27:07 +02:00
Ville Skyttä 88567df36d Prettier 2019-10-14 22:03:28 +03:00
Bram Kragten f55cbd9e9a Merge pull request #3999 from home-assistant/dev
20191014.0
2019-10-14 11:01:07 +02:00
Bram Kragten 7d00cc1eff Merge branch 'master' into dev 2019-10-14 10:28:17 +02:00
Bram Kragten 29301ddee7 Bumped version to 20191014.0 2019-10-14 10:22:13 +02:00
Bram Kragten 978b773968 Update translations 2019-10-14 10:21:56 +02:00
springstan 4f30cae6aa Translated Advanced mode toggle (#3997) 2019-10-13 22:39:08 +02:00
Ville Skyttä 5f29b66a8d Further tweak the message 2019-10-13 21:15:06 +03:00
springstan b94da1bd19 Added note about more integrations to bottom of Set up new integration dialog (#3992)
* Added note about more integrations to bottom of Set up new integration dialog

* Fixed note about more integration by encapsulating it in one paragraph
2019-10-13 15:57:24 +02:00
Franck Nijhof f9b0a0fc13 Fixes documentation URL for HTML5 push notifications (#3993) 2019-10-13 13:34:34 +02:00
Sven 300ffdae04 Add no devices available hint to person editor (#3906)
* Add no devices available hint to person editor (#3731)

* Fix device_tracker check and adjust messages

* fix lint

* Add location, fix memoize usage, hide entity picker and update text

* Move links to a list
2019-10-13 13:22:37 +02:00
Tom Raithel 476525e0d4 Remove 'Pick script to edit' headline from script editor (#3873)
Fixes #3829
2019-10-13 13:18:43 +02:00
Ville Skyttä edecf9d58f Improve customize.yaml non-inclusion warning message
Link to relevant docs, note that changes won't be applied after a
restart if the include isn't in place (changes _do_ actually affect the
current runtime configuration and are persisted in customize.yaml).
2019-10-13 14:07:02 +03:00
Sean Mooney 38bf2e116b Update ISSUE_TEMPLATE.md (#3987)
Now that ui-schema repo is merged here and there's a feature request label, I think this line is no longer necessary.

 `- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests`
2019-10-12 23:14:51 -07:00
Paulus Schoutsen 0719c4d1ae Add cache headers to demo and cast (#3982)
* Add cache headers to demo and cast

* Demo only to copy static from frontend public folder

* Update headers

* Update demo headers

* Update cast headers

* Update _headers

* Update _headers
2019-10-12 23:12:01 -07:00
Bram Kragten 12840231be Add code mirror editors to the dev-tools data fields (#3981)
* Add yaml code mirror editor to the dev-tools yaml fields

* Add jinja2 editor on dev template

* Migrate to UpdatingElement, review comments

* update cm, add types

* types

* dev tools mqtt
2019-10-12 12:33:51 -07:00
Bram Kragten 4728c12225 Update google cloud card (#3978)
* Update google cloud card

* Oops
2019-10-11 08:48:56 -07:00
Bram Kragten 90526ac563 Migrate entity registry to data-table (#3965)
* Migrate entity registry to data-table

* icons

* Styling

* Review comments

* fix not selector

* typos + move columns out of class

* Localize + comments

* Fucked up the rebase
2019-10-11 14:55:45 +02:00
Hayley McIldoon 6f7ea03e35 Remove redundant text in Cloud panel #3824 (#3967) 2019-10-11 14:55:12 +02:00
Erik Montnemery 78900e05ad Allow device conditions to specify extra fields (#3973) 2019-10-11 13:16:54 +02:00
Ian Richardson 495f4aa19c ability to hide tabs (#3811)
* ability to hide tabs

* address review comments

* address review comments

* address review comments

* review comments
2019-10-11 13:14:34 +02:00
Bram Kragten 88c480759f Convert YAMLTextArea to code mirror editor (#3980)
* Convert YAMLTextArea to code mirror editor

* Review comments

* Clean up
2019-10-10 21:58:21 +02:00
Josh McCarty ab75365636 Move alexa state reporting switch position for consistency (#3953) 2019-10-10 10:51:58 +02:00
Tom Raithel 0266617c71 Remove overflow attribute from view column (#3971)
Fixes #3253
2019-10-10 10:50:46 +02:00
Mauricio Bonani aef45c5043 Upgrade MDI icons to 4.5.95 (#3977)
* Upgrade MDI icons to 4.5.95

* Upgrade MDI icons to 4.5.95
2019-10-10 09:44:10 +02:00
Hayley McIldoon deeb0146c7 Renamed Toggle Editor button #3617 (#3968) 2019-10-09 23:03:46 +02:00
Bram Kragten 5dea674f20 Merge pull request #3975 from home-assistant/rc
20191002.2
2019-10-09 22:19:34 +02:00
Bram Kragten 646fe34d09 Bumped version to 20191002.2 2019-10-09 21:57:58 +02:00
Ian Richardson c67907aa58 simplify 2019-10-09 21:54:58 +02:00
Ian Richardson e78f4c5ace picture-glance: check for entity state change 2019-10-09 21:54:34 +02:00
Bram Kragten e891fdc3eb Save orig value + some cleanup 2019-10-09 21:53:48 +02:00
Erik 95a258c2a5 Allow device triggers to specify extra fields 2019-10-09 21:53:30 +02:00
Bram Kragten f1fabd09a6 Merge pull request #3970 from emontnemery/automation_device_action_form
Allow device triggers to specify extra fields
2019-10-09 21:48:57 +02:00
Bram Kragten 0d77bdaf32 Merge pull request #3949 from iantrich/fix-glance-state_image
picture-glance: check for entity state change
2019-10-09 21:48:05 +02:00
Bram Kragten 320be2e5d9 Convert integration entry page to data table (#3963)
* Convert integration entry page to data table

* Simplify device-card

In a future PR this has to be changed further

* Center no devices text

* Review comments
2019-10-09 08:48:41 -07:00
Bram Kragten 6a098ad0b5 Save orig value + some cleanup 2019-10-09 13:34:34 +02:00
Erik e895e91a11 Allow device triggers to specify extra fields 2019-10-09 07:41:25 +02:00
Paulus Schoutsen fc3f7ca4b2 Mark Persian as right to left. 2019-10-08 10:24:21 -07:00
Bram Kragten 1f09d848c5 Merge pull request #3961 from home-assistant/rc
20191002.1
2019-10-08 17:55:43 +02:00
Bram Kragten 4d794f6088 Hide empty blocks on device page (#3950)
* Hide empty blocks on device page

* lint

* Rename entities on device rename

* check if entity_id is valid

* clarify var name

* Review comments

* Use regex to replace not allowed chars

* Align with backend
2019-10-08 17:54:17 +02:00
Bram Kragten 9ad7f0dbac Hide empty blocks on device page (#3950)
* Hide empty blocks on device page

* lint

* Rename entities on device rename

* check if entity_id is valid

* clarify var name

* Review comments

* Use regex to replace not allowed chars

* Align with backend
2019-10-08 08:53:31 -07:00
Bram Kragten 9f39610153 Update translations 2019-10-08 16:13:52 +02:00
Bram Kragten 12d8a04c15 Update translations 2019-10-08 16:13:06 +02:00
Bram Kragten 73b0f5949e Fix updating entity id in entity-registry-dialog (#3962) 2019-10-08 12:28:49 +02:00
Bram Kragten 0f7a3887a7 Fix updating entity id in entity-registry-dialog (#3962) 2019-10-08 12:27:29 +02:00
Bram Kragten ac75ce038a Bumped version to 20191002.1 2019-10-08 10:33:16 +02:00
Bram Kragten 8de9a73741 Add report state toggle for Google (#3855) 2019-10-08 10:28:37 +02:00
Bram Kragten ef51f29e28 Add report state toggle for Google (#3855) 2019-10-08 10:25:57 +02:00
Ian Richardson b61bbee35a fix media row secondary info (#3957) 2019-10-08 10:10:37 +02:00
Markus Nigbur 64dd8c463d Changed the states-ui toggle button to unobstrusive text link. (#3959) 2019-10-08 10:01:51 +02:00
akargl d2a95e9f06 Add default text to Markdown card editor (#3960) 2019-10-08 09:58:37 +02:00
Timmo 0cb0525516 Add localized names to card editor (#3941)
* 🔨 Add localized names to card editor

* ✏️ Rename alarm_panel to alarm-panel

* ✏️ Proper case

* 🔨 Move to else

* 🔨 Remove name and object from card picker
2019-10-07 20:17:12 +02:00
Ian Richardson dcaf4fdfe2 add title option to stack cards (#3839) 2019-10-07 10:17:52 +02:00
ottersen 0c13757910 Correct usage of Zigbee vs ZigBee #1 (#3938)
ref clarification by Zigbee Alliance of correct usage of "Zigbee" vs "ZigBee"

https://twitter.com/Frenck/status/1178239254713061377
2019-10-07 09:55:31 +02:00
ottersen 0cdcd74c9d Correct usage of Zigbee vs ZigBee #2 (#3939)
ref clarification by Zigbee Alliance of correct usage of "Zigbee" vs "ZigBee"

https://twitter.com/Frenck/status/1178239254713061377
2019-10-07 09:55:18 +02:00
Phi Dong db3968399f Add intro to OZW log z-wave config section (#3935) 2019-10-07 09:53:37 +02:00
Malte Franken 7494a49238 Normalize longitude to the range between -180 to +180 degrees (#3872)
* normalize longitude to the range between -180 to +180 degrees

* only normalize longitude if out of valid range
2019-10-07 09:49:00 +02:00
Ian Richardson 55d2a3c8b1 simplify 2019-10-06 23:16:14 -05:00
Ian Richardson be4e45c22c picture-glance: check for entity state change 2019-10-06 23:08:14 -05:00
Matthew Donoughe efb28d337a editor support for scene script action (#3942)
Script support added in home-assistant/home-assistant#27223
2019-10-05 15:14:37 -07:00
Phi Dong edd77e1f32 Exclude persistent_notifications domain when computing unused entities (#3936) 2019-10-05 14:01:00 +02:00
Bram Kragten 848dd7e071 Fixes to script localization (#3930)
* Fixes

* fix toast
2019-10-04 21:46:32 +02:00
Bram Kragten 59d4a4247a Fix whitespace error in services (#3880) 2019-10-04 17:21:43 +02:00
Jens Vanhooydonck ba79633758 HA Cloud overflow wrap (#3905)
* Overflow of Remote Control URL

* Overflow wrap of certificate information

Closes #2982

* Changed styling to class break-word

* Changed break-work to class

* Update src/panels/config/cloud/account/cloud-remote-pref.ts

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>
2019-10-04 16:46:01 +02:00
Charles Garwood 860973bdbd Add localization to ZHA panel (#3881)
* Add localization for ZHA config panel

* Additional ZHA panel localization
2019-10-04 14:07:49 +02:00
Sven d4d897e79e Make cloud account panel translatable (#3875)
* Add localization to cloud login & register (#3844)

* Add localization to cloud account (#3844)

* Add localization to cloud forgot password (#3844)

* fix lint errors

* Update src/panels/config/cloud/account/cloud-account.js

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* Update src/panels/config/cloud/register/cloud-register.js

Co-Authored-By: Bram Kragten <mail@bramkragten.nl>

* fix issues pointed out in review

* fix code style issue

* Add localization for dialogs, alexa and google

* fix exposed entities name
2019-10-04 13:14:53 +02:00
Bram Kragten 4850f3d588 Fix whitespace error in services (#3880) 2019-10-04 12:35:49 +02:00
Bram Kragten 8bc53c235f Fix styling system options (#3877) 2019-10-04 12:04:27 +02:00
Charles Garwood c74793b1d5 Add link to Z-Wave panel docs (#3874) 2019-10-03 20:51:37 +02:00
Marcel Brückner 56bac8a8c1 Make script editor translatable (#3866)
* Make script editor's script picker translatable (home-assistant/home-assistant-polymer#3848)

* Make script editor translatable (home-assistant/home-assistant-polymer#3848)

* Fix linting errors (home-assistant/home-assistant-polymer#3866)

* Fix linting errors (home-assistant/home-assistant-polymer#3866)

* Move unsaved_confirm translation key to common section (home-assistant/home-assistant-polymer#3866)

Instead of adding the same text multiple times for every section, add a common section to indicate reusable translations.

* Add variable to localization text

* Use JavaScript instead of Polymer data binding
2019-10-03 20:31:53 +02:00
Sven 184575fd54 Add localization to persons config page (#3846) (#3871) 2019-10-03 14:38:34 +02:00
Sven e148559d3e Add localization to user config page (#3845) (#3869) 2019-10-03 12:22:45 +02:00
Phi Dong 95b76dbb85 Fix issue where help icon overlapped with header text on mobile devices (#3868) 2019-10-03 11:50:36 +02:00
Bram Kragten 496bb9dc39 Merge pull request #3864 from home-assistant/dev
20191002.0
2019-10-02 22:46:27 +02:00
Bram Kragten 351ba3e701 Merge branch 'master' into dev 2019-10-02 22:31:00 +02:00
Bram Kragten 260f428bc6 Bumped version to 20191002.0 2019-10-02 22:25:49 +02:00
Bram Kragten 3622514131 Fix dark switch for map card editor (#3856) 2019-10-02 21:26:48 +02:00
Bram Kragten 391b2dcf6a Align background with tiles (#3858) 2019-10-02 21:25:59 +02:00
Bram Kragten a02bf1fd48 Allow yaml in dev states (#3859)
* Allow yaml in dev states

* remove json
2019-10-02 21:25:38 +02:00
Bram Kragten 4cf9472bf4 Allow yaml in dev services (#3860)
* Allow yaml in dev services

* remove json
2019-10-02 21:23:37 +02:00
Bram Kragten 74d1de7313 Allow yaml in dev events (#3861)
* Allow yaml in dev events

* remove json
2019-10-02 21:22:06 +02:00
Bram Kragten cd6fd6a46c Allow yaml in script and automation (#3862)
* Allow yaml in script and automation

* Restore defaults

* Rename class

* Catch errors in constructor

* Update yaml_textarea.tsx
2019-10-02 21:21:13 +02:00
Bram Kragten a6dda90b13 Default hide disabled entities from entity registry (#3863)
* Default hide disabled entities from entity registry

* localize

* Use memoize
2019-10-02 21:20:47 +02:00
Bram Kragten 7add8a2ea0 Guard for null badges (#3841)
* Guard for null badges

* Check for null badges on load and save
2019-10-02 09:29:36 -07:00
Bram Kragten b927a3ef29 Add entity registry functions to device page (#3843)
* Add entity registry functions to device page

* Move update/remove logic to dialog

* Hide disabled entities by default
2019-10-02 09:23:42 -07:00
Ian Richardson 76d3218130 Allow user selection of text in Lovelace (#3605)
* Allow user selection of text in Lovelace

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2110

* set negative tabindex

This appears to work locally, but pushing it up to try on the demo to be sure

* toggle class for android

* apply suggestions
2019-10-02 13:33:16 +02:00
Franck Nijhof 8b6d8f9086 Update documentation link URL for integrations (#3857) 2019-10-02 13:23:41 +02:00
Bram Kragten ffaecb29b7 Update translations 2019-10-02 12:58:11 +02:00
Ian Richardson fa74295c0b add actions to picture-glance entities (#3807)
* add actions to picture-glance

* remove unnecessary entity property

* Update hui-picture-glance-card.ts
2019-10-02 11:22:33 +02:00
Bram Kragten ea50d486da Fix some styling of ha-switch (#3842)
If content is slotted it will get some margin to the toggle like the old switch.
2019-10-01 11:17:10 -07:00
Bram Kragten 3cf4b890b6 Remove local mdc-datatable (#3840)
With version 3.2.0 of mdc-datatable they removed the ts files from the published package, so we can now use it again.
2019-10-01 11:34:25 +02:00
Sean Mooney 313b984a53 Add missing domain icons (#3836)
`persistent_notification` and `zone` were both missing domain icons.
2019-10-01 10:11:44 +02:00
Bram Kragten 7d09e29d60 Use filter worker in data-table (#3808)
* Filter worker

Doesn't work

* Remove template for worker

* Move files

* Sort to worker + debounce filter

* Improve performance

* Update ha-data-table.ts
2019-09-30 15:53:48 -07:00
Ian Richardson 7e979f0cf1 add image option to entities card (#3832) 2019-09-30 22:25:09 +02:00
Ian Richardson 64366dc99a fix alignment of switches positioned absolutely (#3812)
* fix alignment of switches positioned absolutely

* wrap switches

* remove !important
2019-09-30 21:27:19 +02:00
Ian Richardson c69585db98 add state_filter to picture cards (#3791) 2019-09-30 09:49:11 +02:00
Bram Kragten 2dd5cd586b Add a setting for vibration (#3813)
* Add a setting for vibration

* Update en.json
2019-09-27 10:23:30 +02:00
Bram Kragten 05a258c886 Add hassio supervisor and os update notice (#3798)
* Add hassio supervisor and os update notice

* Cleanup

* Update hassio-dashboard.ts

* Fix styling

* Check if system has HassOs

* Remove unused import
2019-09-26 13:47:34 +02:00
Bram Kragten f4bd42dfd4 Add name to picture entity struct (#3809) 2019-09-25 23:37:54 +02:00
Bram Kragten 41e5e7c1ae Update yarn.lock 2019-09-25 22:41:17 +02:00
Ian Richardson 95dfcafce3 UI Editor for picture-glance card (#3709)
* UI Editor for picture-glance card

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3700

* address review comments

* address review comments

* fallback to yaml if state image used

* push default changes

* default image for config

* Update hui-picture-glance-card-editor.ts
2019-09-25 15:38:26 -05:00
Bram Kragten 111d1afc21 Fix firefox overflow (#3806)
* Fix firefox overflow

MIght fix...

* Add comment

* Align
2019-09-25 21:52:21 +02:00
Ian Richardson 886c6dd88c Expand entity-filter options (#3692)
* Expand entity-filter options

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3543

Adds the following to `state_filter`:
- `operator` option. Specify operator to use in comparison.
- `value` option. Specify value to compare against.
- `attribute` option.  Specify attribute to use instead of state in comparison.

e.g.
```yaml
type: entity-filter
state_filter:
  - "on"
  - operator: ">"
    value: 90
entities:
  - sensor.water_leak
  - sensor.outside_temp
  - entity: sensor.humidity_and_temp
    state_filter:
      operator: ">"
      value: 50
      attribute: humidity
```

* Update evaluate-filter.ts

* verify state_filter exists on card or each entity

* address review comments

* apply Bram's suggestion

* address review comments

* cleanup
2019-09-24 10:34:57 +02:00
On Freund 38b817bd67 Green shade in climate history for platforms that don't support hvac_action (#3787)
* Green shade in climate history for platforms that don't support HVAC_ACTION

* The presence of hvac_action can change over time

* Move static condition out of anon function
2019-09-24 10:34:13 +02:00
Ian Richardson c59b6626f2 UI editor for history-graph (#3782)
* UI editor for history-graph

* add translations
2019-09-24 10:00:52 +02:00
Ian Richardson 2cc196e3fb cleanup editors (#3786)
* cleanup editors

* address review comments
2019-09-23 17:11:45 -05:00
Erik Montnemery a08884fed6 Add support for and and or conditions to the automation editor. (#3724)
* Add support for `and` and `or` conditions in automations

* Remove debug prints, fix lint errors

* Fix

* Merge `and` and `or` conditions

* Add missing file
2019-09-23 14:07:57 -07:00
Bram Kragten 2fe4a02b6b Add support for panels to cast (#3796)
* Add panel support to cast

* Set background
2019-09-23 14:03:45 -07:00
Paulus Schoutsen 7c793c1cdb Bumped version to 20190919.1 2019-09-23 13:17:48 -07:00
Bram Kragten a0b848acc4 Bring back babel for ES5 builds (#3797)
* Bring back babel for ES5 builds

* Remove ts from babel
2019-09-23 13:17:44 -07:00
Bram Kragten a1b9a092d0 Bring back babel for ES5 builds (#3797)
* Bring back babel for ES5 builds

* Remove ts from babel
2019-09-23 13:15:12 -07:00
Bram Kragten 993d390ea5 Add device automation options to device page (#3776)
* Add device automation options to device page

* Update

* Fill automation editor with data

* Update ha-automation-editor.ts

* Remove dupe deps

* Fix imports
2019-09-23 14:13:44 +02:00
Ian Richardson 1f4d359050 Replace all default exports in common/ with named exports (#3790) 2019-09-23 10:57:47 +02:00
Ian Richardson f871387fa6 new action: url (#3773)
* new action: url

Takes a `url_path` option.
Closes https://github.com/home-assistant/ui-schema/issues/249
I'm experience the issue described here with my string values in the action-editor: https://github.com/home-assistant/home-assistant-polymer/issues/2645. Have not been able to track down where the issue is.

* Fix losing config on init

* fix action-editor
2019-09-22 21:56:29 +02:00
Ian Richardson 9a92ed31f6 picture entity editor fix (#3783)
* forgot to push commit

* resolve broken build
2019-09-21 22:42:46 -05:00
Ian Richardson 37129adfab UI Editor for picture-entity card (#3708)
* UI Editor for picture-entity card

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3699

* address review comments

* translations
2019-09-21 22:15:30 -05:00
Paulus Schoutsen ec52e71c71 Upgrade some deps (#3780)
* Upgrade TS

* Remove unused uglifyjs webpack plugin

* Upgrade some webpack stuff
2019-09-21 11:59:51 +02:00
Ian Richardson 5e28e1b320 Switch paper-toggle-button to mwc-switch (#3683)
* Switch paper-toggle-button to mwc-switch

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3352

* ha-switch

* apply not-checked theming

Thanks @bramkragten!

* address review comments
2019-09-21 11:59:27 +02:00
Ian Richardson 9a7eb3d406 light-card: icon option (#3771)
* light-card: icon option

closes https://github.com/home-assistant/home-assistant-polymer/issues/3768

* add theme select label property

* address review comments
2019-09-20 16:10:14 -05:00
Erik Montnemery eee0c2e53f Add support for automation description (#3723)
* Add support for automation annotation

* Update label and add placeholder

* Rename annotation to description

* Adress review comments, fix lint errors
2019-09-20 08:19:38 -07:00
Bram Kragten 145259e82f Add Language Urdu (#3750)
* Add Urdu

* Changed name to native name
2019-09-19 16:27:54 -07:00
Bram Kragten d0cc4c2715 Move views to own folder + use update vs updated in panel view (#3761)
* Move views to own folder + use update vs updated in panel view

* updated -> update
2019-09-19 09:10:02 -07:00
Paulus Schoutsen 4d97a47e08 Merge pull request #3770 from home-assistant/dev
20190919.0
2019-09-19 09:01:35 -07:00
Paulus Schoutsen 4ef5a8da70 Bumped version to 20190919.0 2019-09-19 08:59:57 -07:00
Paulus Schoutsen cdfd0afdf4 Update translations 2019-09-19 08:59:23 -07:00
Bram Kragten d250a931e6 fix continue integration flow (#3766)
* fix continue integration flow

* Remove test button
2019-09-19 08:57:17 -07:00
Bram Kragten cd2b92a449 Show toast on success save entity settings (#3763) 2019-09-19 08:53:16 -07:00
Bram Kragten c617cb5b12 Align behaviour state badge (#3767) 2019-09-19 08:53:00 -07:00
Paulus Schoutsen e7ac95e314 Merge pull request #3757 from home-assistant/dev
20190918.1
2019-09-18 13:02:58 -07:00
Paulus Schoutsen 7bab9cb464 Remove unused templates attributes from demo 2019-09-18 13:02:45 -07:00
Paulus Schoutsen bb5ab958c1 Bumped version to 20190918.1 2019-09-18 12:52:25 -07:00
Paulus Schoutsen 2d92ffaa4d Update translations 2019-09-18 12:52:20 -07:00
Mauricio Bonani 7a7a0f772a Upgrade MDI icons to 4.4.95 (#3755)
* Upgrade MDI icons to 4.4.95

* Upgrade MDI icons to 4.4.95
2019-09-18 12:38:45 -07:00
Paulus Schoutsen c898db5010 Fixes to device page (#3756)
* Fixes to device page

* Cache page with data page
2019-09-18 12:38:27 -07:00
Bram Kragten b6fbf4da3a Cast: Show error message instead of number (#3752)
* Cast: Show error message instead of number

* Update hc-main.ts
2019-09-18 09:33:58 -07:00
Bram Kragten 0bfc61629e Fix save button more info settings (#3751)
Would be blue on blue on mobile
2019-09-18 09:23:09 -07:00
Ian Richardson e594fcfc42 lower unavailable font-size (#3746)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3745
2019-09-18 17:19:42 +02:00
Bram Kragten 84ed6d8fb3 Merge pull request #3748 from home-assistant/dev
20190918.0
2019-09-18 14:22:53 +02:00
Bram Kragten 31ae115062 Fix set theme on panel (#3749) 2019-09-18 14:12:54 +02:00
Bram Kragten fca885a17a Bumped version to 20190918.0 2019-09-18 13:56:01 +02:00
Bram Kragten 29dff42de4 Make panel-view it's own component (#3747)
* Make panel-view it's own component

* Convert to updatingelement
2019-09-18 13:54:21 +02:00
Bram Kragten f5b3a82922 Merge pull request #3742 from home-assistant/dev
20190917.2
2019-09-17 21:13:48 +02:00
Bram Kragten 54beaad7e5 Bumped version to 20190917.2 2019-09-17 21:00:13 +02:00
Bram Kragten e30f9d4a66 Add device config page (#3695)
* Add device config page

* Remove unused imports

* Revert a lot

Make the PR smaller

* Change columns add battery level

* memoize

* don't bubble

* Add mobile view

* fix filter mobile

* Comments
2019-09-17 20:59:43 +02:00
Bram Kragten 27264b27a9 Fix (#3741) 2019-09-17 09:50:51 -07:00
Bram Kragten 2b1f9460a8 Fix styling mwc-button (#3740) 2019-09-17 09:06:53 -07:00
Bram Kragten 4641cd65ca Merge pull request #3739 from home-assistant/dev
20190917.1
2019-09-17 14:18:45 +02:00
Bram Kragten 1f6fe5dfcf Bumped version to 20190917.1 2019-09-17 14:12:46 +02:00
Bram Kragten 058b4ba658 Fix theme rgb creation (#3738) 2019-09-17 14:08:48 +02:00
Bram Kragten 24baa87b18 Merge pull request #3736 from home-assistant/dev
20190917.0
2019-09-17 08:00:51 +02:00
Bram Kragten fad2f1790f Update translations (#3735) 2019-09-17 07:50:38 +02:00
Bram Kragten 8fd8274d15 Bumped version to 20190917.0 2019-09-17 07:49:52 +02:00
Bram Kragten f4f1e24ad5 Generate rgb theme vars (#3728)
* Create rgb theme vars

* Check if key is rgb and revert paper

* Update apply_themes_on_element.ts

* paper-card > card
2019-09-17 07:46:53 +02:00
Paulus Schoutsen 42626ba2f8 Upgrade set-value (#3733) 2019-09-17 07:46:22 +02:00
Bram Kragten 29ab04fc7a Add subscribe mixin (#3710)
* Add subscribe mixin

* Update src/mixins/subscribe-mixin.ts

Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>

* Update src/mixins/subscribe-mixin.ts

Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>

* Update subscribe-mixin.ts

* Update subscribe-mixin.ts

* Add properties

* Fix
2019-09-17 07:45:56 +02:00
Bram Kragten 722e9bcda7 Hide columns in unused entities on mobile (#3719)
* Hide columns in unused entities on mobile

* Update hui-unused-entities.ts

* Fix

* Update hui-unused-entities.ts
2019-09-17 07:45:21 +02:00
Paulus Schoutsen 065e42c8fd Fix Cast race condition (#3732) 2019-09-17 07:42:25 +02:00
Bram Kragten bf343647d4 Fix background on panel (#3713)
* Fix background on panel

* Make themes work on panel

* fix for tabs-hidden

* and still not gone...
2019-09-16 15:03:16 -06:00
Bram Kragten 3b51e55f2d Update logs on activate tab (#3716)
* Update logs on activate tab

* Only update if we already loaded data
2019-09-16 13:56:22 -06:00
Bram Kragten 125616aa99 Merge pull request #3727 from PDekker/patch-1
Update cover_icon.ts
2019-09-16 20:50:16 +02:00
Bram Kragten 1341fe9ae9 Open more info in unused entities (#3714)
* Open more info in unused entities

* Only make entity column open more info
2019-09-16 11:09:07 -06:00
Bram Kragten b195df0bfa Merge pull request #3704 from iantrich/light-min
Set minimum brightness of slider to 1%
2019-09-16 15:53:11 +02:00
Bram Kragten 1109d18576 Merge pull request #3718 from DB-CL/dev
Update slider's min/max when thermostat gets updated
2019-09-16 15:45:17 +02:00
Bram Kragten b1a6580afb Merge pull request #3720 from SeanPM5/patch-1
Add documentation link on Events panel
2019-09-16 14:08:46 +02:00
PDekker 1d95b9d779 Update src/common/entity/cover_icon.ts
Co-Authored-By: Bram Kragten <mail@bramkragten.nl>
2019-09-16 14:01:47 +02:00
PDekker 202782e741 Update cover_icon.ts
Add new icons for existing device types
2019-09-16 11:39:09 +02:00
Sean Mooney a4663d438c prettier fix, hopefully third time's a charm? 2019-09-15 00:53:28 -04:00
Sean Mooney eab3e6091a Update developer-tools-event.js 2019-09-15 00:31:36 -04:00
Sean Mooney 6627a96a05 Add documentation link on Events panel
adds a link to events documentation which contains helpful information for using this tool.
2019-09-14 23:32:13 -04:00
Erik Montnemery 16ae52c321 Fix regression in device automation from #3643 (#3717) 2019-09-14 07:02:43 -06:00
Bram Kragten 9792572370 chnage order dev tools (#3715) 2019-09-14 07:00:44 -06:00
Bram Kragten 4bb65b8ae1 Make data table and checkbox themeable (#3712)
Added rgb vars, not sure we want to go that way, but otherwise we will get a lot of styles...
2019-09-14 06:56:16 -06:00
DBCL 2f3b399450 Please the linter 2019-09-13 23:27:28 +02:00
DBCL 3e98b8e4f1 Add min/max changes on thermostat update 2019-09-13 22:58:43 +02:00
Ian Richardson 493198f530 Set minimum brightness of slider to 1%
Closes #3693
2019-09-12 13:38:18 -05:00
Paulus Schoutsen ce9e3ae9e9 Merge pull request #3690 from home-assistant/dev
20190911.1
2019-09-11 13:04:39 -06:00
Paulus Schoutsen a2c2f6a1e2 Bumped version to 20190911.1 2019-09-11 13:00:59 -06:00
Bram Kragten b46c9406ff Add ha-data-table (#3647)
* Work in progress

* add sorting

implemented in unused entities to try it

* implement sorting

* fix

* Refactor

* Default sort, filterable, id

* Fix

* Add local mdc-data-table + comments + fixes

* Move mdc-data-tabel

So our linters won't complain...
2019-09-11 12:59:27 -06:00
Ian Richardson 9f213cf055 Don't display slider if light doesn't support brightness (#3684)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3542
2019-09-11 12:47:48 -06:00
Bram Kragten 3254478d05 Remove wct-browser-legacy (#3686) 2019-09-11 12:46:57 -06:00
Bram Kragten e78fb35593 Merge pull request #3688 from home-assistant/dev
20190911.0
2019-09-11 13:43:09 +02:00
Bram Kragten 321b852079 Bumped version to 20190911.0 2019-09-11 13:00:33 +02:00
Bram Kragten 8b44998e1f Update translations (#3687) 2019-09-11 12:59:53 +02:00
Paulus Schoutsen 4aeca70f49 Upgrade HAWS to 4.4.0 (#3682) 2019-09-10 21:27:44 -07:00
gregod 7912f0bf9e Set rel noopener and noreferrer on external links in markdown (#3666)
* Set rel noopener and noreferrer on external links in markdown

* Update ha-markdown.ts

* Update ha-markdown.ts
2019-09-10 13:44:02 -07:00
Paulus Schoutsen abc849f623 Remove Polymer CLI (#3681) 2019-09-10 13:08:21 -07:00
Bram Kragten e6671299fe Filter html from translations (#3665)
* Filter html from translations

* Error when html found
2019-09-10 20:18:57 +02:00
Bram Kragten 8c5beb0042 Replace paper-fab with ha-fab (#3678)
* Replace paper-fab with ha-fab

...which is based on mwc-fab

* comment
2019-09-10 20:17:11 +02:00
Thomas Lovén eba3c535bf Fix unclickable light in light-card. Fix #3679 (#3680) 2019-09-10 10:22:26 -07:00
Ian Richardson 34d50f0c90 Add image option to glance card entities (#3673)
* Add image option to glance card entities

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3021

* properly order override
2019-09-09 22:14:12 -07:00
Ian Richardson 9eae637814 Only allow admin to edit UI config (#3674)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3084
2019-09-09 22:13:45 -07:00
Ian Richardson a29d598027 revert stop effect change (#3672)
Appears to be platform specific
2019-09-09 20:39:21 -07:00
Erik Montnemery 5448cbf1c5 Add device actions to automation editor. (#3637)
* Add device actions to automation editor.

* Copy automation on selection

* Fix types

* Remove device from device action schema
2019-09-09 12:01:58 -07:00
Ian Richardson f2999c30f3 Filter null badges (#3645)
* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* Revert "Convert weather-forecast to LitElement"

This reverts commit e1893b0a83.

* Filter out null badges

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2974

* address review comments

* Update hui-view.ts
2019-09-09 11:31:20 -05:00
Ian Richardson 8a710202f1 Stop effect in more-info-light (#3636)
* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* Revert "Convert weather-forecast to LitElement"

This reverts commit e1893b0a83.

* Add stop effect button

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3619

* address review comments

* cleanup
2019-09-09 14:10:20 +02:00
Bram Kragten 11f917d5f8 Add vibration (#3588)
* Add vibration

I don't have a device that supports vibrate, and can't find a list of patterns, maybe someone can make some nice patterns?

* listen event

* Mixin

* move logic to mixin
2019-09-09 14:08:52 +02:00
Bram Kragten 2d8d6119bd Merge pull request #3663 from home-assistant/remove-babel
Remove babel
2019-09-09 09:54:17 +02:00
Paulus Schoutsen 1a5ae99c42 Update ESLint 2019-09-08 23:51:30 -07:00
Paulus Schoutsen c4d888f060 Whitelist tags/attributes instead of allow-all (#3657) 2019-09-08 23:47:28 -07:00
Paulus Schoutsen 594ee7ce9b Update build scripts 2019-09-08 23:39:37 -07:00
Paulus Schoutsen 7f10bcbfd1 Drop Babel 2019-09-08 23:39:22 -07:00
Paulus Schoutsen fe31f532b6 Update ESLint (#3664) 2019-09-08 23:38:58 -07:00
Bram Kragten 7e7158b816 Pick unused entities for lovelace cards (#3614)
* Pick unused entities for lovelace cards

* Type

* Table layout for unused entities

* properties

* remove unused import

* mwc-button

Need to find a way to set the color

* add icons to pick view dialog

* Comments

* Lint

* Restore unused entities for yaml mode

* Remove _elements

* decorators, types, comments

* flexbox + comments

* remove unused import
2019-09-08 13:43:28 -07:00
dependabot[bot] e19c210af2 Bump jquery from 3.3.1 to 3.4.0 (#3652)
Bumps [jquery](https://github.com/jquery/jquery) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.3.1...3.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:58:11 -07:00
dependabot[bot] a2f23c068b Bump lodash.mergewith from 4.6.1 to 4.6.2 (#3654)
Bumps [lodash.mergewith](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:55:12 -07:00
dependabot[bot] 205e12150f Bump lodash.template from 4.4.0 to 4.5.0 (#3653)
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:55:03 -07:00
dependabot[bot] b7ea66c30f Bump eslint-utils from 1.3.1 to 1.4.2 (#3651)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:54:37 -07:00
Paulus Schoutsen 11ac8e4b08 Convert preact to tsx (#3643) 2019-09-08 11:54:17 -07:00
Bram Kragten d5f0ae8ae2 Merge pull request #3655 from home-assistant/dev
20190908.0
2019-09-08 20:53:20 +02:00
Bram Kragten 4c37c76a8f Merge branch 'dev' 2019-09-08 20:48:25 +02:00
Thomas Lovén cdfc3f8faf Use new round sliders for light card (#3634)
* Use new round sliders for light card

* Remove _roundSliderstyle
2019-09-08 11:47:36 -07:00
dependabot[bot] 44ca37c1dc Bump mixin-deep from 1.3.1 to 1.3.2 (#3650)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:44:34 -07:00
dependabot[bot] 535308bf96 Bump js-yaml from 3.13.0 to 3.13.1 (#3649)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-08 11:44:27 -07:00
Bram Kragten 6328f15032 Bumped version to 20190908.0 2019-09-08 20:16:10 +02:00
Erik Montnemery 2f96a096f7 Device automations: Rename name to entity_name, introduce subtype (#3644) 2019-09-08 20:12:56 +02:00
Ian Richardson cbd01f2d68 Create more-for timer with action buttons (#3621)
* Create more-for timer with action buttons

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3594

* center actions

* Address review comments

* address review comments
2019-09-06 22:13:05 -05:00
Paulus Schoutsen 2ff4d0fa4b Do not allow SVG by default (#3640) 2019-09-06 17:36:28 -07:00
Shahen Hovhannisyan 3aba2e3408 feat(translations): Added Armenian language (#3616)
* feat(translations): Added Armenian language

* fix(translations): Corrected nativeName

* fix(armenian/hy): Corrected language code

* chore(translationsMetadata): Sorted by alphabetic order
2019-09-06 14:11:27 -07:00
Mauricio Bonani b473c9c2aa Upgrade MDI icons to 4.3.95 (#3639)
* Upgrade MDI icons to 4.3.95

* Upgrade MDI icons to 4.3.95
2019-09-06 14:37:51 -05:00
Bram Kragten b97e24283c Clarify title of the dialog (#3629)
* Clarify title of the dialog

* translate
2019-09-06 16:36:58 +02:00
Ian Richardson c8d3293ae9 Throttle updates for entity-filter (#3551)
* Throttle updates for entity-filter

* throttle element config sets

* apply changes

* apply review changes
2019-09-06 11:48:39 +02:00
Ian Richardson 8e0c39e451 Convert weather-forecast to LitElement (#3623)
* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* Revert "Convert weather-forecast to LitElement"

This reverts commit e1893b0a83.

* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* address review comments and add types

* address review comments
2019-09-05 20:26:35 -07:00
Ian Richardson 46968bb565 Timestamp unavailable (#3635)
* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* Revert "Convert weather-forecast to LitElement"

This reverts commit e1893b0a83.

* Don't try to show unavailable timestamp

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2956
2019-09-05 16:01:24 -07:00
Erik Montnemery 011219b727 Add device conditions to automation editor. (#3595)
* Add device conditions to automation editor.

* Fix inheritance shizzle

* Make device automation lists simple lists, not dicts

* Really make device automation lists simple lists

* Add few types

* Fix types
2019-09-05 15:43:14 -07:00
Bram Kragten 9205837b67 Create hui-views-list component (#3631)
And use for move card view
2019-09-05 11:17:19 -07:00
Bram Kragten 4eed3508ce Update cloud-google-pref.ts (#3628) 2019-09-05 09:47:39 -07:00
Bram Kragten 460a56aa0a Fill example data for services in dev tools (#3596)
* Fill example data

* Align indents

* Comments
2019-09-05 06:57:17 -07:00
Bram Kragten 3927eb53ac Fix translations (#3626) 2019-09-05 06:53:27 -07:00
Ian Richardson 2a596666c8 Move light brightness below icon (#3607)
* Move light brightness below icon

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3606

* remove border and white text coloring
2019-09-04 12:57:06 -07:00
Bram Kragten 0008a100f4 Fill state details when entity selected (#3615) 2019-09-04 10:05:49 -07:00
David F. Mulcahey 164e433592 ZHA device info dialog (#3529)
* zha device info dialog

* cleanup

* quick hack to make this work

* remove hack

* add mixin for zha device info dialog

* fix potential exception

* cleanup

* review comments

* lint

* remove unused import

* lint

* review coments

* review comments

* translations and css
2019-09-04 09:40:47 -07:00
Bram Kragten abb9190c98 20190904.0 (#3613)
* Alarm codes (#3566)

* Handle alarm codes from keyboard input

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2602

* remove friendly_name changes

* remove unnecessary TS check

* Update azure-pipelines-release.yml for Azure Pipelines

* Don't remove `hvac_action` from history attributes (#3570)

So it can be used to plot a fill when active in the graph.

* Update the map when making config changes (#3568)

* Add haptic feedback to handle click (#3569)

* Filter camera service entities (#3583)

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3582

* Notification drawer RTL support (#3580)

* add exceptional icon (#3572)

* Add options to badges (#3552)

* Add options to badges

name
icon
entity_picture

* lint

* lint

* rename entityPicture to image

* Align styling cast buttons (#3579)

* Align styling cast buttons

* Split dev constants

* Ignore dev_const

* Update README.md

* Move lovelace background settings to theme (#3561)

* Move lovelace background settings to theme

While being backwards compatible

* Also update cast

* Don't allow overwrite of english lang (#3590)

* Update hui-card-options.ts (#3591)

* Fix display of no triggers text if no device is selected or device has no triggers (#3592)

* Fix timing issue in external auth (#3587)

* Fix timing issue in external auth

* add await 0

* Show toast on successfull save (#3576)

* Show toast on successfull save

We need to make a list of places where this could benefit the user experience.

* Helper method

* Rename

* handle unavailable lights (#3549)

* handle unavailable lights

* unavailable overlay

* extract unavailable overlay

* Option to display last changed in glance-card (#3584)

* Option to display last changed in glance-card

Closes https://github.com/home-assistant/ui-schema/issues/110

* move show_last_changed to entity-level

* address review comments

* Filter alerts in services (#3598)

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3597

* Add exceptional in weather to translations (#3599)

* Add MQTT subscribe to dev tools (#3589)

* Add mqtt subscribe to dev tools

* Update mqtt-subscribe-card.ts

* Comments

* type

* Wrap long attributes in more-info-default (#3601)

Can likely be applied in many other places

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2811

* Bumped version to 20190904.0 (#3612)
2019-09-04 14:21:03 +02:00
Bram Kragten c4fca84ded Bumped version to 20190904.0 (#3612) 2019-09-04 13:51:52 +02:00
Ian Richardson 48a010563e Wrap long attributes in more-info-default (#3601)
Can likely be applied in many other places

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2811
2019-09-04 09:37:21 +02:00
Bram Kragten 4378904243 Add MQTT subscribe to dev tools (#3589)
* Add mqtt subscribe to dev tools

* Update mqtt-subscribe-card.ts

* Comments

* type
2019-09-03 15:57:54 -07:00
MatthewFlamm ba66bf88d3 Add exceptional in weather to translations (#3599) 2019-09-03 22:51:46 +02:00
Ian Richardson 5282a6504a Filter alerts in services (#3598)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3597
2019-09-03 22:23:10 +02:00
Ian Richardson 4f3abe1025 Option to display last changed in glance-card (#3584)
* Option to display last changed in glance-card

Closes https://github.com/home-assistant/ui-schema/issues/110

* move show_last_changed to entity-level

* address review comments
2019-09-03 22:12:21 +02:00
Ian Richardson 5bcba95c25 handle unavailable lights (#3549)
* handle unavailable lights

* unavailable overlay

* extract unavailable overlay
2019-09-03 14:35:37 -05:00
Bram Kragten a9c9d4ca51 Show toast on successfull save (#3576)
* Show toast on successfull save

We need to make a list of places where this could benefit the user experience.

* Helper method

* Rename
2019-09-03 20:33:10 +02:00
Bram Kragten f00ad84c16 Fix timing issue in external auth (#3587)
* Fix timing issue in external auth

* add await 0
2019-09-03 20:32:43 +02:00
Erik Montnemery 3b2e02562c Fix display of no triggers text if no device is selected or device has no triggers (#3592) 2019-09-03 10:55:42 -07:00
Bram Kragten 7bc947ffb0 Update hui-card-options.ts (#3591) 2019-09-03 10:26:26 -07:00
Bram Kragten 15564a1b26 Don't allow overwrite of english lang (#3590) 2019-09-03 10:26:04 -07:00
Bram Kragten 753e069323 Move lovelace background settings to theme (#3561)
* Move lovelace background settings to theme

While being backwards compatible

* Also update cast
2019-09-03 13:13:29 +02:00
Bram Kragten b37a0e2d43 Align styling cast buttons (#3579)
* Align styling cast buttons

* Split dev constants

* Ignore dev_const

* Update README.md
2019-09-03 12:56:11 +02:00
Ian Richardson 87b35010e0 Add options to badges (#3552)
* Add options to badges

name
icon
entity_picture

* lint

* lint

* rename entityPicture to image
2019-09-03 11:33:07 +02:00
MatthewFlamm 4e383e3e67 add exceptional icon (#3572) 2019-09-03 11:31:54 +02:00
Yosi Levy 0e82178973 Notification drawer RTL support (#3580) 2019-09-03 11:31:08 +02:00
Ian Richardson fe2046c6cd Filter camera service entities (#3583)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3582
2019-09-03 10:02:34 +02:00
Bram Kragten af0304bf78 Add haptic feedback to handle click (#3569) 2019-09-02 21:18:47 -07:00
Bram Kragten fcd206e94b Update the map when making config changes (#3568) 2019-09-02 21:17:03 -07:00
Bram Kragten cf7a300614 Don't remove hvac_action from history attributes (#3570)
So it can be used to plot a fill when active in the graph.
2019-09-02 09:10:48 -07:00
Pascal Vizeli a97ce49f0b Update azure-pipelines-release.yml for Azure Pipelines 2019-09-02 14:36:26 +02:00
Ian Richardson 5bfdc98217 Alarm codes (#3566)
* Handle alarm codes from keyboard input

Closes https://github.com/home-assistant/home-assistant-polymer/issues/2602

* remove friendly_name changes

* remove unnecessary TS check
2019-09-01 22:23:37 -07:00
Paulus Schoutsen b022128031 Merge pull request #3567 from home-assistant/dev
20190901.0
2019-09-01 22:18:43 -07:00
Bram Kragten 1bc2e6fc17 Use tslib and importHelpers (#3559) 2019-09-01 22:00:32 -07:00
Ian Richardson 6b5c9efb39 Break long strings in notifications (#3557) 2019-09-01 22:00:14 -07:00
Ian Richardson be0c035ba1 Don't open more-info from integrations dashboard (#3556) 2019-09-01 21:59:57 -07:00
Bram Kragten 12173388a0 Split Logs from info tab in dev tools (#3560)
* Split Logs from info tab in dev tools

* lint

* Remove border above logs
2019-09-01 21:53:12 -07:00
Ian Richardson ba0d7cb156 Present confirmation for server restarts/stops (#3564)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3233
2019-09-01 21:51:35 -07:00
Ian Richardson c3e29e359a Show alarm's friendly_name if set (#3565)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3459
2019-09-01 21:51:01 -07:00
Paulus Schoutsen 6259e45128 Bumped version to 20190901.0 2019-09-01 21:48:41 -07:00
Paulus Schoutsen 6998cce8eb Update translations 2019-09-01 21:48:37 -07:00
Erik Montnemery f43abb5a9d Support device triggers in automation editor (#3514)
* Support device trigger in automation editor

* Fix review comments, improve usability.

* Lint

* Lint

* Improve styling, address review comments

* Fix support for unknown stored automation

* Fix

* Lint

* Lint

* Index trigger by key, not by object

* Fix no trigger case

* Fix typing

* Move trigger translations to backend

* Rename WS command to device_automation/trigger/list

* Tweak

* Update src/data/device_automation.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Address review comments

* Fix..

* Simplify ha-device-trigger-picker

* Fix changing device
2019-09-01 21:45:47 -07:00
Ian Richardson a7fdbc069b Update fan direction (#3547)
* Handle current_direction in more-info-fan

* remove current_direction changes

* add forward/reverse to translations
2019-08-30 17:29:17 -07:00
Paulus Schoutsen b154903691 Merge pull request #3537 from home-assistant/dev
20190828.0
2019-08-28 13:43:20 -07:00
Mauricio Bonani 15a88385c2 Upgrade MDI icons to 4.2.95 (#3533)
* Upgrade MDI icons to 4.2.95

* Upgrade MDI icons to 4.2.95
2019-08-28 13:42:18 -07:00
Paulus Schoutsen 6ddf364093 Bumped version to 20190828.0 2019-08-28 13:41:37 -07:00
Paulus Schoutsen fccb97ede8 Update translations 2019-08-28 13:41:34 -07:00
Sean Mooney cfc6bf4da9 Remove duplicate word from onboarding error (#3535)
Someone shared an error message in Discord and I noticed it mentioned the word "loading" twice in a row. This removes the duplicate word from the alert.
2019-08-28 13:37:58 -07:00
Thomas Lovén 02e250cd04 Fix for double taps in iOS 13 beta (#3523)
See home-assistant/home-assistant-polymer#3510 for more info.
2019-08-28 13:37:30 -07:00
Paulus Schoutsen d29eacb268 Merge pull request #3530 from home-assistant/dev
20190825.0
2019-08-25 22:24:24 -07:00
Paulus Schoutsen 62ae7df097 Bumped version to 20190825.0 2019-08-25 22:20:44 -07:00
Paulus Schoutsen 0d43bef600 Update translations 2019-08-25 22:20:35 -07:00
Paulus Schoutsen 3709c13975 Increase touch target of menu button with notifications (#3527) 2019-08-25 22:08:49 -07:00
Paulus Schoutsen b624b363bd Fix LL menu (#3528) 2019-08-25 21:51:47 -07:00
Paulus Schoutsen d841cc92ef Slightly simplify markdown API 2019-08-24 12:55:40 -07:00
Paulus Schoutsen cdcafe9e6f Run markdown in web worker (#3524)
* Run markdown in web worker

* Set global object
2019-08-24 12:48:57 -07:00
Paulus Schoutsen a66960fa00 Add context to comment 2019-08-24 12:42:38 -07:00
Paulus Schoutsen 38cc7b1090 Fix advanced mode not representing state correctly (#3519) 2019-08-24 09:55:49 -07:00
Paulus Schoutsen ac443c2fa0 Merge pull request #3515 from home-assistant/dev
20190822.0
2019-08-22 15:05:43 -07:00
Paulus Schoutsen ee0388708f Bumped version to 20190822.0 2019-08-22 15:04:09 -07:00
Paulus Schoutsen 0717a3dadd Update translations 2019-08-22 15:04:06 -07:00
Paulus Schoutsen 6b0b66af99 Fix text areas not working in Preact (#3513) 2019-08-22 12:24:42 -07:00
Paulus Schoutsen 7e5f28b3cc Fix required fields with default values (#3512) 2019-08-22 12:21:21 -07:00
Paulus Schoutsen c9307ab76a Merge pull request #3507 from home-assistant/dev
20190821.0
2019-08-21 14:14:38 -07:00
Paulus Schoutsen ecfbfbf56b Bumped version to 20190821.0 2019-08-21 14:13:32 -07:00
Paulus Schoutsen 9b321124bb Update translations 2019-08-21 14:13:27 -07:00
Paulus Schoutsen 512b76f450 Update MDI 2019-08-21 14:12:43 -07:00
Thomas Lovén 5de8c713c8 Lovelace markdown card - fix race condition, add variables to template (#3505)
* Fix connection race, add variables

* Update src/panels/lovelace/cards/hui-markdown-card.ts

* Lint
2019-08-21 14:03:40 -07:00
Paulus Schoutsen 7482059373 Merge pull request #3504 from home-assistant/dev
20190820.1
2019-08-20 16:19:52 -07:00
Paulus Schoutsen f64062d17b Bumped version to 20190820.1 2019-08-20 16:19:16 -07:00
Paulus Schoutsen afd6fddad7 Update translations 2019-08-20 16:19:03 -07:00
Paulus Schoutsen e8ad975212 Fix onboarding (#3503)
* Fix onboarding

* Lint
2019-08-20 16:18:26 -07:00
Paulus Schoutsen 831b23347e Merge pull request #3502 from home-assistant/dev
20190820.0
2019-08-20 00:14:18 -07:00
Paulus Schoutsen 5edee41c5b Add system options UI (#3501)
* Add system options UI

* Tweak translation
2019-08-20 00:09:33 -07:00
Paulus Schoutsen c04a091f59 Bumped version to 20190820.0 2019-08-20 00:07:25 -07:00
Paulus Schoutsen 3bbd45079c Update translations 2019-08-20 00:07:21 -07:00
Paulus Schoutsen 01da25d2d6 Allow disabling entity in entity registry (#3496)
* Allow disabling entitiy in entity registry

* Make strings translatable

* Update dialog-entity-registry-detail.ts

* Change to enabled
2019-08-19 23:59:32 -07:00
Paulus Schoutsen 355e3d7911 Migrate integrations page to TypeScript (#3500) 2019-08-19 15:12:57 -07:00
Thomas Lovén 6c109c15ef Add buttons to move entities (#3499) 2019-08-19 14:17:49 -07:00
Thomas Lovén c542b242fe Fix gui-editor resizing problem (#3498) 2019-08-19 13:19:56 -07:00
Yosi Levy bcb26bd960 Force ltr again in info panel (#3494) 2019-08-15 21:27:36 -07:00
Paulus Schoutsen 3a3c705343 Merge pull request #3492 from home-assistant/dev
20190815.0
2019-08-15 14:03:35 -07:00
Paulus Schoutsen 46f3a38b7c Bumped version to 20190815.0 2019-08-15 13:36:03 -07:00
Paulus Schoutsen 864175bde9 Update translations 2019-08-15 13:36:00 -07:00
Paulus Schoutsen f458bdffe0 Add support for options flows (#3491) 2019-08-15 13:34:26 -07:00
Paulus Schoutsen 200e099035 Refactor config flow dialog to make it reusable (#3488)
* Refactor config flow dialog to make it reusable

* More refactor

* forgot to save

* Render labels correcetly
2019-08-15 09:03:54 -07:00
Mauricio Bonani 07b8518162 Upgrade MDI icons to 4.0.96 (#3490)
* Upgrade MDI icons to 4.0.96

* Upgrade MDI icons to 4.0.96
2019-08-15 08:45:35 -07:00
Paulus Schoutsen b3525abf21 Upgrade lit-html (#3485) 2019-08-15 08:45:17 -07:00
Paulus Schoutsen f7bb85d332 Do not use toggleAttribute (#3484) 2019-08-12 12:52:59 -07:00
Paulus Schoutsen b8a18a27a4 Update release script 2019-08-12 12:48:34 -07:00
Yosi Levy 88bea10b26 Fix ha-sidebar for RTL (#3469)
* Fix menu alignments, icon, profile alignment in collapsed and expanded mode

* Refactor

* Lint exclude

* Refactor + lint ignore

* Fixed RTL calc location

* Refactored ifs
2019-08-12 10:44:51 -07:00
Yosi Levy 807dff99af RTL arrow problems (#3467)
* Updated style check since load sequence must have changed

* Refactored to timeout

* Added comment
2019-08-12 10:31:23 -07:00
Seb Ruiz 9fa8544972 Add relevant device_class icons for Cover entity (#3482)
* Add relevant cover icons for supported device classes

* Remove icon which doesn't have closed/open state

* Remove umbrella icon for awnings
2019-08-12 09:11:59 -07:00
Paulus Schoutsen 806e70b6c9 Merge pull request #3480 from home-assistant/dev
20190811.0
2019-08-11 21:17:04 -07:00
Paulus Schoutsen 204bd803bf Add reload scene button (#3476) 2019-08-11 20:52:58 -07:00
Paulus Schoutsen 52712f65c2 Bumped version to 20190811.0 2019-08-11 20:52:24 -07:00
Paulus Schoutsen 8c3f8656fe Update translations 2019-08-11 20:52:19 -07:00
Thomas Lovén 1f3a5b1396 Template markdown card (#3451)
* Render templates in markdown card

* Add manual entity_id option

* Linting

* Address review comments

* Address review comments

* Address review comments

* Address review comments

* Tweak disconnect function

* Remove cardSize instance variable

* Fix demo
2019-08-10 12:55:32 -07:00
Thomas Lovén c15629b81b Various changes to card editor. (#3265)
* Various changes to card editor.

* Avoid crashing on bad yaml when creating a new card

* Address review comments

* Revert interface change

* Avoid config loops. Nicer error behavior.
2019-08-10 12:14:35 -07:00
Paulus Schoutsen ef3892de92 Re-apply theme if backend theme changes (#3471) 2019-08-10 11:38:39 -07:00
Paulus Schoutsen 47d6bb69b0 Fix setting view background (#3470) 2019-08-09 16:26:33 -07:00
Paulus Schoutsen f10fab7e22 Fix hass.io icon order (#3462) 2019-08-09 15:53:46 -07:00
Bram Kragten e2dfac48d0 Cast View 0 + show active (#3466)
* View 0 + show active

* Fix view 0 receiver

* Type

select doesn't seem to be used?
2019-08-09 15:34:09 -07:00
Paulus Schoutsen 53f5a29151 Remove stale comment 2019-08-09 15:24:28 -07:00
Paulus Schoutsen a042cd2d48 Fix icon build 2019-08-09 13:15:58 -07:00
Paulus Schoutsen 8533f9372f Upgrade MDI icons to 3.9.97 2019-08-09 11:40:23 -07:00
Paulus Schoutsen a4e96a4f3f Update translations 2019-08-09 10:59:13 -07:00
Pascal Vizeli fa40135a27 Build wheels from release & Templates 2019-08-08 11:22:48 +02:00
Paulus Schoutsen d85f9f9021 Convert profile page to Lit/TS (#3449)
* Convert profile page to Lit/TS

* Lint
2019-08-07 14:35:31 -07:00
Thomas Lovén dc2ee2e63f Enable ha-icons in markdown card (#3458)
* Allow ha-icon in markdown

* Please the linter

* Remove allowSvg

* Remove lasts allow-svgs
2019-08-07 14:35:17 -07:00
Paulus Schoutsen f3729759b7 Update FAQ 2019-08-06 16:47:27 -07:00
Frederik Gladhorn f108e279cd Add script/setup (#3437)
script/setup did not exist, despite being mentioned in the readme.
Create it and let it call bootstrap.
2019-08-06 15:36:35 -07:00
Paulus Schoutsen 8dce24ddfc Tweak upload script 2019-08-06 09:56:07 -07:00
Paulus Schoutsen d2e780dda2 Better track pageview 2019-08-06 09:36:22 -07:00
Paulus Schoutsen c382768008 Update GA to always track / 2019-08-06 09:34:45 -07:00
Paulus Schoutsen f369045f35 Set correct GA code 2019-08-06 08:49:57 -07:00
Paulus Schoutsen 17921c18b6 Add GA to receiver 2019-08-06 08:44:47 -07:00
Paulus Schoutsen 42c6cecf89 Merge pull request #3461 from home-assistant/dev
20190805.0
2019-08-05 22:31:25 -07:00
Paulus Schoutsen 4799fdee9c Bumped version to 20190805.0 2019-08-05 22:22:35 -07:00
Paulus Schoutsen 2049687590 Update translations 2019-08-05 22:22:31 -07:00
Paulus Schoutsen aca5ae9f67 Fix Cast demo (#3460) 2019-08-05 22:21:54 -07:00
Paulus Schoutsen de04f60821 Merge pull request #3457 from home-assistant/dev
20190804.0
2019-08-04 22:37:45 -07:00
Paulus Schoutsen 98b882d599 Bumped version to 20190804.0 2019-08-04 22:26:27 -07:00
Paulus Schoutsen 5b02a43c3f Update translations 2019-08-04 22:26:20 -07:00
Paulus Schoutsen 2da844a1fb Home Assistant Cast 2019-08-04 22:25:43 -07:00
Charles Garwood 0544027c38 Fix zwave-node-values component (#3452)
* Fix zwave-node-values

* lint
2019-08-03 11:19:25 -07:00
Paulus Schoutsen 2389f92448 Fix playerObj undefined. Fixes #2915 2019-08-03 11:17:31 -07:00
Paulus Schoutsen 1f13c00937 Merge pull request #3450 from home-assistant/dev
20190801.0
2019-08-01 13:41:22 -07:00
Paulus Schoutsen 2fda2ee742 Suggest a view path when user enters a title when creating a view (#3448)
* Suggest a view path when user enters a title when creating a view

* Lint
2019-08-01 13:33:28 -07:00
Paulus Schoutsen 17a3affb6f Remove conversation because it's not part of default config (#3444) 2019-08-01 13:32:13 -07:00
Paulus Schoutsen f6be398fb9 Bumped version to 20190801.0 2019-08-01 13:31:46 -07:00
Paulus Schoutsen 87e24d658b Update translations 2019-08-01 13:31:41 -07:00
Paulus Schoutsen abf70c3a3e Better deal with YAML updated message (#3447) 2019-08-01 11:52:43 -07:00
Paulus Schoutsen b9afa69ee5 Handle unavailable climate (#3446) 2019-08-01 09:02:20 -07:00
Charles Garwood d9628fd9a2 Convert zwave-node-config to lit/ts (#3434)
* Convert zwave-node-config to lit/ts

* Add translations

* lint round 1

* lint round 2

* . all the properties and fix missing types

* Clean up bad prettier auto-style

* set header property instead of attribute
2019-08-01 08:32:20 -07:00
Paulus Schoutsen a617eac284 Merge pull request #3443 from home-assistant/dev
20190731.0
2019-07-31 11:06:58 -07:00
Paulus Schoutsen 7d90429fa9 Bumped version to 20190731.0 2019-07-31 10:51:22 -07:00
Paulus Schoutsen fa6d0949a2 Update translations 2019-07-31 10:50:26 -07:00
Marijn Pool aab967798a Split General Config and Server Control (#3418)
* Initial split of core and server control config

* Changed Typescript to Javascript

* Show Server controls without Advanced Mode

* Update en.json
2019-07-31 10:41:54 -07:00
Sean Mooney c523bae2c8 Use accent color for notification badge again (#3442)
This fixes https://github.com/home-assistant/home-assistant-polymer/issues/3414 by changing the notification badge to use `accent-color` variable (same behavior as it was prior to 0.96 overhaul). I make extensive use of persistent_notifications and agree with that issue - the color change has made it a little harder to notice now. 

Before and after of how it looks on the default theme:
![badge](https://i.imgur.com/VHnyzQb.png)

The other reason I feel this makes sense, is that `accent-color` is already used in "mobile mode" dot (pic below), so this brings some consistency.
![mobile-badge](https://i.imgur.com/EOvtZGJ.jpg)

If this was an intentional change, feel free to reject/close this.
2019-07-31 09:11:24 -07:00
Thomas Lovén b77372fc9a Display history-graph entries in the order they were specified (#3436) 2019-07-30 11:55:37 -07:00
Paulus Schoutsen 70b06861d1 Add file for custom card support (#3440) 2019-07-30 11:47:01 -07:00
Paulus Schoutsen b158f15d93 Lovelace tweaks (#3439) 2019-07-30 10:37:21 -07:00
Paulus Schoutsen 4edcd5f2ef Simplify demo (#3438) 2019-07-30 10:37:12 -07:00
Paulus Schoutsen 689e37782e Ignore LL updates for a second in YAML mode (#3433) 2019-07-26 20:30:54 -07:00
Paulus Schoutsen dcfed5d7e1 weblink target (#3431) 2019-07-26 15:09:32 -07:00
Paulus Schoutsen 54ea6176aa Extract is navigation click (#3432) 2019-07-26 14:55:08 -07:00
Paulus Schoutsen a91bb3cdbb Add label to ha-entity-picker (#3430) 2019-07-26 14:54:50 -07:00
Paulus Schoutsen 6abbe72e4d Lovelace cleanups (#3427)
* Improvements

* Add types CAF

* Fix demo switching

* Do not set background color in hui-view
2019-07-26 11:06:16 -07:00
Paulus Schoutsen dae0ecce6a Hide preset=none (#3419)
* Hide preset=none

* Add const to commit
2019-07-25 10:14:29 -07:00
Paulus Schoutsen c3118eada9 Show notification indicator in forced mobile mode (#3420) 2019-07-25 10:14:20 -07:00
Paulus Schoutsen 0f6d0b164f Add aria labels to cover controls (#3421) 2019-07-25 10:14:13 -07:00
Paulus Schoutsen 87293e4b15 Add more labels (#3422) 2019-07-25 10:14:05 -07:00
David F. Mulcahey ff80eef25d Update ZHA device card (#3411)
* add ability to subscribe to individual updates

* catch changes on area, device name and entity ids

* subscribe directly

* remove entity registry change

* add type

* remove device subscription
2019-07-24 20:05:33 -07:00
Paulus Schoutsen 973c190bb6 Merge pull request #3408 from home-assistant/dev
20190721.1
2019-07-21 12:57:30 -07:00
Paulus Schoutsen 0cd263c532 Bumped version to 20190721.1 2019-07-21 12:45:27 -07:00
Paulus Schoutsen 3c366b2b85 Move hassio down (#3407) 2019-07-21 12:20:55 -07:00
Paulus Schoutsen a59f0086b5 Fix proper script closing tag (#3405) 2019-07-21 12:20:37 -07:00
Paulus Schoutsen 1f1a3acc03 Fix styling notifications (#3404) 2019-07-21 12:10:47 -07:00
Paulus Schoutsen d09cf9c8ab Close script tag (#3403) 2019-07-21 11:46:40 -07:00
Paulus Schoutsen f32eb971a4 Properly close script tag 2019-07-21 11:30:57 -07:00
Paulus Schoutsen 56c08a1d07 Close the drawer when picking a panel when in forced narrow mode (#3402) 2019-07-21 11:07:26 -07:00
Paulus Schoutsen a44b1d01ed Merge pull request #3401 from home-assistant/dev
20190721.0
2019-07-21 09:55:40 -07:00
Paulus Schoutsen 2fd75742f1 Bumped version to 20190721.0 2019-07-21 09:55:03 -07:00
Paulus Schoutsen 70b18344b6 Update translations 2019-07-21 09:54:59 -07:00
Paulus Schoutsen 5ec58a723e properly store width (#3400) 2019-07-21 09:54:12 -07:00
Paulus Schoutsen 8dd44bca32 Merge pull request #3399 from home-assistant/dev
20190720.0
2019-07-20 17:55:41 -07:00
Paulus Schoutsen dcb975c8ce Bumped version to 20190720.0 2019-07-20 17:34:03 -07:00
Paulus Schoutsen ea0a0f510d Update translations 2019-07-20 17:33:59 -07:00
Paulus Schoutsen 9476557aee Remove automatically including preset None (#3398) 2019-07-20 17:32:35 -07:00
Paulus Schoutsen 4555bd4240 Add a force mobile mode on desktop (#3394)
* Add a force mobile mode

* Fix columns on LL

* Update text

* Move it above the push notifications

* Hide notification count when sidebar expanded and count=0
2019-07-20 17:30:25 -07:00
Paulus Schoutsen 75c7445dd9 Show a tooltip when hovering sidebar items in compact mode (#3393)
* Show a tooltip when hovering sidebar items in compact mode

* Use div for tooltip
2019-07-20 10:31:13 -07:00
Paulus Schoutsen da741238d2 Various climate improvements (#3389)
* Sort HVAC modes

* Add translations for HVAC action

* Show hvac_action if available
2019-07-19 15:51:47 -07:00
Paulus Schoutsen 3d0c994b9a Sidebar iteration (#3392)
* Remove hover effect

* Reuse render panel func

* Show notification badge on the right in expanded mode
2019-07-19 15:51:37 -07:00
Paulus Schoutsen ab4b4796c0 Merge pull request #3388 from home-assistant/dev
20190719.0
2019-07-19 09:42:24 -07:00
Paulus Schoutsen a7077dbcb4 Bumped version to 20190719.0 2019-07-19 09:29:42 -07:00
Paulus Schoutsen a66013ecd7 Update translations 2019-07-19 09:29:38 -07:00
Nikolay Vasilchuk 8265a55838 Fix target_temperature_step (#3386)
* target_temp_step fix

* Fix undefined

* Small fix

* Linter fix

* Linter fix
2019-07-19 09:20:08 -07:00
Paulus Schoutsen 95d6cbd130 Merge pull request #3385 from home-assistant/dev
20190718.0
2019-07-18 14:07:04 -07:00
Paulus Schoutsen 1ee9811644 Bumped version to 20190718.0 2019-07-18 14:06:10 -07:00
Paulus Schoutsen 99c5f2a88a Update translations 2019-07-18 14:06:07 -07:00
Paulus Schoutsen cdfd9cea5c Fix shade for HVAC action on graph (#3380) 2019-07-18 14:03:04 -07:00
Joakim Plate 4f2b82d787 Fix missing end tag (#3378)
* Fix missing end tag

* Prettify file
2019-07-18 09:36:15 -07:00
Charles Garwood 3fd0ee9d75 Convert zwave-values to ts & add translation strings (#3367)
* Convert zwave-values to ts & add translation strings

* lint

* Change some common translation strings to live under "common" instead of "values"

* Cleanup & address review comments
2019-07-17 20:26:45 -07:00
Paulus Schoutsen c7f7e72340 Merge pull request #3377 from home-assistant/dev
20190717.1
2019-07-17 15:10:22 -07:00
Paulus Schoutsen 1205322342 Bumped version to 20190717.1 2019-07-17 15:09:26 -07:00
Joakim Plate 4cefb9715c Make sure sliderType is set first (#3376)
* Make sure sliderType is set first

* No need for a separate name
2019-07-17 15:08:51 -07:00
Paulus Schoutsen 35b38db57f Merge branch 'master' into dev 2019-07-17 15:08:31 -07:00
Paulus Schoutsen 4f72eb5416 Remove check 2019-07-17 13:01:12 -07:00
Paulus Schoutsen f3d1a421f4 Update pipeline 2019-07-17 13:00:34 -07:00
Paulus Schoutsen f3c24dc0b3 Remove tsc check 2019-07-17 12:41:07 -07:00
Paulus Schoutsen e4cbdc29a2 Update azure-pipelines-release.yml 2019-07-17 12:33:46 -07:00
Paulus Schoutsen c985977efc Update pipeline 2019-07-17 12:17:52 -07:00
Paulus Schoutsen 8fb991c5ce Merge remote-tracking branch 'origin/dev' 2019-07-17 12:15:52 -07:00
Paulus Schoutsen 210c63ad14 Bumped version to 20190717.0 2019-07-17 12:15:13 -07:00
Paulus Schoutsen 8167b05cad Update translations 2019-07-17 12:15:12 -07:00
Paulus Schoutsen e5a916032a Merge pull request #3375 from home-assistant/dev
20190717.0
2019-07-17 12:09:36 -07:00
Paulus Schoutsen 56745b3723 Set up CI with Azure Pipelines
[skip ci]
2019-07-17 11:50:07 -07:00
Paulus Schoutsen ddf2c6cc0f Add Azure pipelines for release 2019-07-17 11:48:50 -07:00
Joakim Plate 84df2bd531 Make sure slider type updates with changes to temperatures (#3374) 2019-07-17 11:32:22 -07:00
Paulus Schoutsen 42c3e3e46c Differentiate Heat/Cool (#3371) 2019-07-16 23:51:15 -07:00
Paulus Schoutsen 5141e0e923 Merge pull request #3370 from home-assistant/fixes-yo
Fixes yo
2019-07-16 22:56:10 -07:00
Paulus Schoutsen b87c94e395 Fix typing 2019-07-16 22:41:47 -07:00
Paulus Schoutsen 55aa5a0d12 Scroll device list when goes out of screen. Fixes #3343 2019-07-16 21:43:15 -07:00
Paulus Schoutsen eaaeb10c6d Store width before searching to avoid jumping 2019-07-16 21:34:12 -07:00
Paulus Schoutsen 567769be5a Use hass icons for search input 2019-07-16 21:33:09 -07:00
Paulus Schoutsen 3ebb30bd48 Only show advanced mode toggle for admins. Fixes #3369 2019-07-16 20:43:05 -07:00
Paulus Schoutsen 09a19d2e7f Allow scrolling notification drawer. Fixes 3366 2019-07-16 20:38:35 -07:00
Paulus Schoutsen fabc49d17e Fix theme color in dev index.html 2019-07-16 20:36:40 -07:00
Paulus Schoutsen 00e9155546 Merge pull request #3368 from home-assistant/dev
20190715.0
2019-07-15 13:50:25 -07:00
Paulus Schoutsen 8238b700b0 Update translations uno mas 2019-07-15 13:38:44 -07:00
Paulus Schoutsen 5ff33224ed Remove unused keys 2019-07-15 13:15:50 -07:00
Paulus Schoutsen 07dee9c5bb Update translations 2019-07-15 13:11:37 -07:00
Paulus Schoutsen 9eaeafdd6a Bumped version to 20190715.0 2019-07-15 13:05:11 -07:00
Paulus Schoutsen beb1fe1e64 Update translations 2019-07-15 13:05:06 -07:00
Timmo cdb2a1a424 Integrations - Add Search (#3361)
*  Add search to flow picker

* 🔨 Autofocus

* 🔨 squash extra space

* Update src/dialogs/config-flow/step-flow-pick-handler.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Update src/dialogs/config-flow/step-flow-pick-handler.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
2019-07-14 13:47:33 -07:00
Paulus Schoutsen 8bbc442b7e Correctly check frontend version (#3365) 2019-07-14 13:30:50 -07:00
Sean Mooney 7a12cbf96e Add link to Alexa skill on Cloud page (#3364)
This adds a direct link to the Home Assistant Alexa skill, which is more convenient than telling the user to search for it themselves. On mobile devices it can open the skill directly in the Alexa app which is nice.

Also tweaked the wording from "activate" to "enable" since that is what Amazon uses.
2019-07-12 23:45:27 -07:00
Paulus Schoutsen e36454f08f Fix token card not showing (#3362) 2019-07-12 22:36:36 -07:00
Timmo 3865c1943c 🔨 Fix mqtt dev tools missing class (#3359) 2019-07-12 15:31:38 -07:00
Paulus Schoutsen e7e3edfd97 Merge pull request #3358 from home-assistant/dev
20190712.0
2019-07-12 14:58:22 -07:00
Paulus Schoutsen 4bdc82f0ed Bumped version to 20190712.0 2019-07-12 14:44:22 -07:00
Paulus Schoutsen 8e3b41885d Update translations 2019-07-12 14:44:07 -07:00
Paulus Schoutsen 8f3d5fdb7d Fix scrollbar on Firefox (#3357) 2019-07-12 14:42:56 -07:00
Timmo f258aa2818 Replace standard browser scrollbar for overview and sidebar (#3350)
* 📜 Replace standard browser scrollbar for overview and sidebar

* 🔨 Remove from main
2019-07-12 13:08:51 -07:00
Charles Garwood b4dd971829 Z-Wave Config Panel Updates (#3349)
* Display network status, hide buttons if network is stopped.

* travis/lint updates

* Review comments

* Add translations

* lint

* Missed a translation

* lint again...

* Fix unsubscribe function?

* lint again

* Remove state_str

* Code review comments

* fix for lit re-rendering & possible undefined value
2019-07-12 13:07:50 -07:00
Sean Mooney e99d6f8e6a Fix incorrect tooltip on Add Person button (#3355)
The tooltip for the add person button incorrectly says "Create Area" when hovered. This should fix it, I think.
2019-07-12 12:07:46 -07:00
Paulus Schoutsen cc969e547c Add frontend version to info (#3354) 2019-07-12 11:18:01 -07:00
Paulus Schoutsen 0e1ae3926b Merge pull request #3348 from home-assistant/dev
20190710.0
2019-07-10 10:35:46 -07:00
Charles Garwood 60c2bcc483 Convert Z-Wave panel to TS/Lit (#3345)
* Convert zwave-network to typescript/lit

* Convert zwave-network to ts/lit

* Updates per code review

* missed one (hass? => hass!)

* Remove constructor
2019-07-10 10:26:17 -07:00
Paulus Schoutsen 5d8e34e8be Show menu button when Hassio supervisor UI runs on old HA (#3347) 2019-07-10 10:10:56 -07:00
Paulus Schoutsen 14a430a059 Bumped version to 20190710.0 2019-07-10 09:36:44 -07:00
Paulus Schoutsen 4ae347949a Update translations 2019-07-10 09:36:35 -07:00
Paulus Schoutsen cdd007cc54 Ensure load order (#3346) 2019-07-10 09:27:25 -07:00
Paulus Schoutsen 2929db5ba4 Fix fonts precaching (#3338)
* Fix font urls

* Don't zopfli nonexisting fonts
2019-07-10 08:18:04 -07:00
Paulus Schoutsen 628692b2e9 Do not cache onboarding page (#3337) 2019-07-10 08:17:51 -07:00
Paulus Schoutsen 7cfdc24a8c Fix test translations (#3339) 2019-07-10 08:17:41 -07:00
Paulus Schoutsen 1c69aa122b Merge pull request #3334 from home-assistant/dev
20190705.0
2019-07-05 16:09:33 -07:00
Paulus Schoutsen 25afb73ed7 Bumped version to 20190705.0 2019-07-05 15:25:01 -07:00
Paulus Schoutsen 5b5384032d Update translations 2019-07-05 15:25:01 -07:00
Jérôme W a9d221147f Fix timer stops updating when changing views in LL (#3248)
* Fix timer stops updating when changing views in LL

* Test if _config exists in connectedCallback()

* Update hui-timer-entity-row.ts
2019-07-05 15:22:29 -07:00
Paulus Schoutsen 4fdbec93b3 Migrate for climate 1.0 (#3333)
* Migrate for climate 1.0

* Update demo

* Fix gallery

* Add preset to thermostat card

* Fix climate entity row
2019-07-05 15:13:53 -07:00
Thomas Lovén 0a8703ad0a Allow selecting text in error-card (#3330)
* Allow selecting text in error-card

* Still use default cursor
2019-07-02 20:28:39 -07:00
Paulus Schoutsen ddc11c1b12 Merge pull request #3329 from home-assistant/dev
20190702.0
2019-07-02 10:33:40 -07:00
Paulus Schoutsen 317f43277e Bumped version to 20190702.0 2019-07-02 10:32:43 -07:00
Paulus Schoutsen bf90642c9b Update translations 2019-07-02 10:32:40 -07:00
Paulus Schoutsen 6f77992387 Random fixes (#3328)
* Fix scroll into view on first load

* Do not crash when deleting script/automation

* Disable swipe on notification drawer
2019-07-02 10:31:48 -07:00
David F. Mulcahey deaccd6cd4 Add info to ZHA device card (#3327)
* add zha domain icon

* update device card
2019-07-02 10:13:59 -07:00
Paulus Schoutsen d7371ace6a Sidebar improvements (#3325)
* Do not contract sidebar when undocking sidebar

* Do not hide text until fully contracted

* Cancel hover expanding on tablets

* Open notifications on the left

* Set property before opening

* Fix check for support scroll if needed
2019-07-01 10:35:10 -07:00
Paulus Schoutsen 453b1000c1 Merge branch 'dev' 2019-06-30 23:03:58 -07:00
Paulus Schoutsen 8c1aff7505 Check supported func properly 2019-06-30 23:03:51 -07:00
Paulus Schoutsen adf002c154 Merge branch 'dev' 2019-06-30 23:02:58 -07:00
Paulus Schoutsen ed7b81e7a4 Hide scrollbars on sidebar during expanding 2019-06-30 23:02:48 -07:00
Paulus Schoutsen c0f6ee6a32 Merge branch 'dev' 2019-06-30 22:52:44 -07:00
Paulus Schoutsen 9408df6099 Fix Firefox 2019-06-30 22:52:31 -07:00
Paulus Schoutsen 157bfd6f80 Space out sidebar 2019-06-30 22:21:37 -07:00
Paulus Schoutsen 99da7ebfe6 Merge branch 'dev' 2019-06-30 21:58:32 -07:00
Paulus Schoutsen 6911df9ac4 Fix sidebar in Safari 2019-06-30 21:58:02 -07:00
Paulus Schoutsen 8daeaab40b Merge pull request #3324 from home-assistant/dev
20190630.0
2019-06-30 15:20:33 -07:00
Paulus Schoutsen 45c3c78b31 Bumped version to 20190630.0 2019-06-30 15:15:56 -07:00
Paulus Schoutsen a64a35b861 Update translations 2019-06-30 15:15:52 -07:00
Paulus Schoutsen 5a25627219 Stop playing video when more info is closed (#3318) 2019-06-30 15:14:42 -07:00
Paulus Schoutsen 203b14613f Show a notification dot on toggle menu button in narrow mode (#3323)
* Show a notification dot on toggle menu button in narrow mode

* Fix lint

* Move menu button to sidebar

* Fix height sidebar
2019-06-30 15:02:53 -07:00
Paulus Schoutsen 0a7cb39500 Add transition delay to sidebar expand 2019-06-28 14:46:54 -07:00
Paulus Schoutsen 42e75e7cdf Move notifications to the sidebar (#3317)
* Move notifications to the sidebar

* Close when navigating

* Lint
2019-06-28 14:23:29 -07:00
Paulus Schoutsen 58e6be12af Add developer tools panel (#3313) 2019-06-28 08:34:29 -07:00
Paulus Schoutsen 618d25ce48 Fix person showing value in badge 2019-06-28 08:28:52 -07:00
Paulus Schoutsen 9974510067 Merge pull request #3311 from home-assistant/dev
20190627.0
2019-06-27 17:56:22 -07:00
Paulus Schoutsen 2faa0c5979 Bumped version to 20190627.0 2019-06-27 17:48:44 -07:00
Paulus Schoutsen 1479647062 Update translations 2019-06-27 17:48:38 -07:00
Paulus Schoutsen 3becefaf8b Add a couple of labels (#3310)
* Add a couple of labels

* Add some more labels
2019-06-27 17:47:19 -07:00
Paulus Schoutsen e804e62e66 Add advanced mode (#3298)
* Add advanced mode

* Move advanced mode to profile

* Add promo for advanced mode
2019-06-27 16:17:32 -07:00
Paulus Schoutsen 2c3cc1fbc7 experimental sidebar (#3306)
* experimental sidebar

* Change default docked sidebar to true

* remove delay

* Push things down

* Speed up animation

* Always open on big screens

* Move things around

* Final tweaks

* Lint

* Don't open on hover logo
2019-06-27 15:23:05 -07:00
Paulus Schoutsen 58cc76ab5a Merge pull request #3305 from home-assistant/dev
20190626.0
2019-06-26 09:10:32 -07:00
Paulus Schoutsen 5783cdb0d2 Bumped version to 20190626.0 2019-06-26 09:05:00 -07:00
Paulus Schoutsen 4f07caebc6 Update translations 2019-06-26 09:04:56 -07:00
Paulus Schoutsen c4b75b4534 Fix typo in font definition (#3304) 2019-06-25 23:39:50 -07:00
Paulus Schoutsen ae82eabaec Fix link colors in hassio addon view 2019-06-25 13:08:11 -07:00
Paulus Schoutsen f8d3e55fe0 Fix home zone so it doesn't overlap the city name 2019-06-25 10:17:26 -07:00
Paulus Schoutsen 1462db0a76 Merge pull request #3303 from home-assistant/dev
20190624.1
2019-06-24 22:15:47 -07:00
Paulus Schoutsen 86b36fb76b Bumped version to 20190624.1 2019-06-24 22:06:35 -07:00
Paulus Schoutsen c6194622b1 Update translations 2019-06-24 22:06:14 -07:00
Paulus Schoutsen be5c3efb23 Fix source maps 2019-06-24 22:05:34 -07:00
Paulus Schoutsen 999c243c94 Better error report on Alexa (#3302) 2019-06-24 17:36:12 -07:00
Paulus Schoutsen 483f82e554 Add demo sw (#3301) 2019-06-24 10:39:27 -07:00
Paulus Schoutsen e91f4567c2 Merge pull request #3300 from home-assistant/dev
20190624.0
2019-06-24 08:26:03 -07:00
Paulus Schoutsen 029467139d Bumped version to 20190624.0 2019-06-24 08:14:17 -07:00
Paulus Schoutsen 29649abe3d Update translations 2019-06-24 08:14:12 -07:00
Mauricio Bonani 266c80320b Upgrade mdi to 3.7.95 (#3299)
* Update yarn.lock

* Update package.json
2019-06-22 18:18:28 -07:00
Paulus Schoutsen ae51300446 Revert Polymer to 3.1 (#3297)
* Revert Polymer to 3.1

* Only install 1 polymer
2019-06-22 12:36:30 -07:00
Thomas Lovén cbdb222f72 Import extra_html_url using js instead of deprecated link tags (#3288)
* import extra_html_url using js instead of deprecated link tags

* Import modules instead

* Address comment

* Rename variables for es5 scripts

* Address comments
2019-06-21 20:55:53 -07:00
Paulus Schoutsen 98c419ff03 Switch to woff2 fonts (#3296) 2019-06-21 12:48:20 -07:00
Paulus Schoutsen 88b9348a81 Add map to demo (#3295) 2019-06-21 11:05:01 -07:00
Paulus Schoutsen 3e8606781e Fix typo 2019-06-21 09:31:15 -07:00
Paulus Schoutsen 875afbd7ae Merge pull request #3294 from home-assistant/dev
20190620.0
2019-06-20 23:52:08 -07:00
Paulus Schoutsen 3139b914d7 Bumped version to 20190620.0 2019-06-20 23:43:45 -07:00
Paulus Schoutsen 212a44b6ae Update translations 2019-06-20 23:43:39 -07:00
Paulus Schoutsen 60551168a2 Update demo (#3292)
* Update demo

* Kill homebridge hidden

* Add missing air translation

* Hide demo card with localStorage.hide_demo_card

* adjust size of demo card if hidden

* disable lint rule
2019-06-20 23:40:56 -07:00
Robbie Trencheny 32d9a6884f Add some aria-labels for use with fastlane snapshot (#3293) 2019-06-20 23:16:50 -07:00
Mauricio Bonani 7002ab27c0 Upgrade mdi to 3.6.95 (#3291)
* Update package.json

* Update yarn.lock
2019-06-20 14:45:43 -07:00
Bram Kragten 15c101109e Update hui-map-card.ts (#3289) 2019-06-20 08:34:34 -07:00
Paulus Schoutsen 316fed953a Merge pull request #3286 from home-assistant/dev
20190619.0
2019-06-19 16:21:38 -07:00
Paulus Schoutsen 93934449c0 Bumped version to 20190619.0 2019-06-19 16:11:45 -07:00
Paulus Schoutsen 894a25c98e Update translations 2019-06-19 16:11:41 -07:00
Paulus Schoutsen 90f0d9fa00 Add button for Alexa to sync entities (#3284)
* Add button for Alexa to sync entities

* Lint
2019-06-19 11:43:17 -07:00
Paulus Schoutsen 83889a8fd7 Filter met during onboarding (#3285)
* Filter met during onboarding

* Hide temp values with no value
2019-06-19 11:42:46 -07:00
Paulus Schoutsen 4cfc429e75 Hide unused entities in the demo 2019-06-18 11:59:51 -07:00
Paulus Schoutsen 2df829b79d Hide unused entities in the demo 2019-06-18 11:57:21 -07:00
Paulus Schoutsen 7baf6382ac Merge pull request #3282 from home-assistant/dev
20190618.0
2019-06-18 11:47:21 -07:00
Paulus Schoutsen 7d1f689ed9 Bumped version to 20190618.0 2019-06-18 11:21:56 -07:00
Paulus Schoutsen 4f448553f6 Update translations 2019-06-18 11:21:52 -07:00
David F. Mulcahey dd56671974 Add NWK to ZHA device card and fix search again (#3278)
* add nwk to device info

* fix search again
2019-06-18 11:14:37 -07:00
Paulus Schoutsen d8e0fd0ba5 Limit demo card mobile (#3281)
* Limit demo card on mobile

* Remove unused deps

* Remove tabs from ARS demo

* Set title to Home Assistant
2019-06-18 10:44:11 -07:00
Paulus Schoutsen a9320d4baf Fix import 2019-06-17 20:12:29 -07:00
Kevin Cooper 42475becf1 Fix for more-info-alarm_control_panel when using code_arm_required (#3052)
* Fix for more-infoalarm_control_panel when using code_arm_required

* Update more-info-alarm_control_panel.js
2019-06-17 15:08:14 -07:00
Justin Bassett c30aca8484 Dark Mode for Map Card (#3250)
* Ability to change tile set from light_all to dark_all through card config.

* Use correct boolean.

* Fix possible undefined.

* Use correct value.
2019-06-14 20:37:34 -07:00
Paulus Schoutsen 25bdf50737 Use users location 2019-06-14 15:25:41 -07:00
Paulus Schoutsen 4a60479b74 Merge branch 'dev' 2019-06-14 15:09:54 -07:00
Paulus Schoutsen f6d651304c Fix demo 2019-06-14 15:09:42 -07:00
Paulus Schoutsen 85990c20ed Merge pull request #3275 from home-assistant/dev
20190614.0
2019-06-14 14:40:40 -07:00
Paulus Schoutsen 8ea98023a5 Bumped version to 20190614.0 2019-06-14 13:41:39 -07:00
Paulus Schoutsen acceaea410 Update translations 2019-06-14 13:41:33 -07:00
Paulus Schoutsen d609155022 Make setView not async (#3274) 2019-06-14 13:40:16 -07:00
Paulus Schoutsen 1add5077af Add Alexa report state (#3272) 2019-06-14 13:30:35 -07:00
Paulus Schoutsen a9cac343b0 Preload LL (#3273)
* Preload LL

* Remove using observer
2019-06-14 13:30:20 -07:00
Paulus Schoutsen 1b441a752e Manage Alexa entities (#3269)
* Reorg cloud components

* Allow managing Alexa entities in the UI

* Use observer

* Update mwc version

* Tweak some UI
2019-06-13 11:57:56 -07:00
Ofek Ashery 03fee95f68 Allow to copy text in the notifications panel (#3257) 2019-06-12 21:01:14 -07:00
Paulus Schoutsen 7fa4b18843 Group managed entities (#3268) 2019-06-12 21:00:41 -07:00
Paulus Schoutsen 7b0fb949fd Upgrade some deps (#3266)
* Upgrade some deps

* Fix linting
2019-06-12 17:29:16 -07:00
Paulus Schoutsen df10cff842 Add loading screen when external step done (#3261) 2019-06-11 15:19:12 -07:00
Penny Wood 8b93af1b56 Via Hub Rename (#3254) 2019-06-11 08:36:48 -07:00
Tor Arne Vestbø a396a4e666 Pass credentials (cookies e.g.) when loading JavaScript assets (#3259)
The behavior of 'crossorigin' without a value is the same as
anonymous, which means user credentials such as cookies,
client-side SSL certificates or HTTP authentication will
not be passed on.

We want the preload links to work even when they are behind
a proxy that requires an authentication cookie, such as
Cloudflare Access (CF_Authorization), so we need to explicitly
send credentials with the "use-credentials" value.

ES modules are always fetched with CORS, with anonymous being
the default. Some browsers (Chromium) will realize that the
request is to the same origin, and send credentials anyways,
while others (Safari) will not, so we need to explicitly send
credentials to make sure they load in all cases.

See https://jakearchibald.com/2017/es-modules-in-browsers/
2019-06-10 13:41:59 -07:00
Paulus Schoutsen 8f278ec4bc Merge pull request #3247 from home-assistant/dev
20190604.0
2019-06-04 08:50:01 -07:00
Paulus Schoutsen 032ebce0bc Bumped version to 20190604.0 2019-06-04 08:48:41 -07:00
Paulus Schoutsen bb60b42f98 Update translations 2019-06-04 08:48:37 -07:00
Paulus Schoutsen 21ed717287 Link to beta release notes for beta release in hassio (#3243) 2019-06-04 08:47:40 -07:00
Paulus Schoutsen 2d056bad81 Allow picking location on a map (#3244)
* Allow picking location on a map

* Add some better defaults

* Close connection before navigation
2019-06-04 08:47:02 -07:00
Paulus Schoutsen 8297e9e215 Merge pull request #3242 from home-assistant/dev
20190602.0
2019-06-02 13:52:11 -07:00
Paulus Schoutsen 4ccf450ad4 Bumped version to 20190602.0 2019-06-02 13:45:20 -07:00
Paulus Schoutsen fc056869a7 Update translations 2019-06-02 13:45:16 -07:00
Paulus Schoutsen 0bd5ff34d4 Google banner background to support incorrect themes (#3241) 2019-06-02 13:44:01 -07:00
Paulus Schoutsen ffd272d3fe Fix refreshing cloud prefs after changing Google prefs (#3240) 2019-06-02 13:37:55 -07:00
Paulus Schoutsen 1eee186e79 Fix toast on Firefox (#3239) 2019-06-02 16:13:10 +02:00
Paulus Schoutsen 3a05b1124a Merge branch 'dev' 2019-06-01 14:26:26 -07:00
Paulus Schoutsen d14c6125da Bumped version to 20190601.0 2019-06-01 14:26:13 -07:00
Paulus Schoutsen 3ee357178e Update translations 2019-06-01 14:26:12 -07:00
Paulus Schoutsen 8f6fdea4eb Merge pull request #3238 from home-assistant/dev
20190601.0
2019-06-01 14:25:00 -07:00
Paulus Schoutsen be6b25f5be Google Entities updates (#3237)
* Match Google Expose default with backend for when no config value set

* Allow toggling domains
2019-06-01 14:23:32 -07:00
Paulus Schoutsen be4dd5b20b Fix Google manage entity button on small screens (#3234) 2019-05-31 21:26:47 -07:00
Paulus Schoutsen fe4811b278 Allow saving unit system (#3235) 2019-05-31 15:51:12 -07:00
Paulus Schoutsen d376457cec Merge pull request #3231 from home-assistant/dev
20190530.0
2019-05-30 09:32:06 -07:00
Paulus Schoutsen 35e82a8e26 Bumped version to 20190530.0 2019-05-30 09:31:29 -07:00
Paulus Schoutsen 03735f0539 Update translations 2019-05-30 09:31:23 -07:00
Paulus Schoutsen 4cc812c1bf Always have a gauge base unit (#3229) 2019-05-30 08:42:02 -07:00
Paulus Schoutsen bdacd05fab Pass connection instead of hass (#3228) 2019-05-30 08:41:52 -07:00
Paulus Schoutsen ab157fdbff Correctly warn if Google entities defined in YAML (#3230) 2019-05-30 08:41:44 -07:00
Paulus Schoutsen d94223a61e Dynamic update panels (#3227) 2019-05-30 08:41:32 -07:00
Paulus Schoutsen ebe3198c27 Merge pull request #3225 from home-assistant/dev
20190529.0
2019-05-29 08:55:07 -07:00
Paulus Schoutsen 2b2d2effd2 Bumped version to 20190529.0 2019-05-29 08:42:17 -07:00
Paulus Schoutsen 8092e24af8 Update translations 2019-05-29 08:42:06 -07:00
Paulus Schoutsen f019bb095d Allow edit default config (#3220) 2019-05-29 08:39:38 -07:00
Paulus Schoutsen 1ad9d2e54c Add UI to manage Google Entities exposed to Cloud (#3224)
* Add UI to manage Google Entities exposed to Cloud

* Add selected count
2019-05-29 08:38:52 -07:00
Paulus Schoutsen b2b18cb814 Convert cloud dashboard to use Lit router (#3223) 2019-05-28 14:31:51 -07:00
Bram Kragten e595637a10 Show toast when Lovelace config was updated from a different place (#3218)
* Refresh other lovelace UI's when making a change

* Move to toast with refresh button

* Change to `hass-notification`

* Reload on reconnect

- Fix for duration = 0
- Reload on reconnect

* Listen to ready of connection

* Update src/managers/notification-manager.ts

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* use showToast, listen connection-status,  noCancelOnOutsideClick -> option

* Remove unused import
2019-05-27 14:54:14 -07:00
Bram Kragten d10a0b3b6c Update translations.js (#3219) 2019-05-26 20:59:52 -07:00
Penny Wood c24f8a2115 Allow editing of device name (#3209)
* Allow editing of device name

* Patches

* Update dialog-device-registry-detail.ts
2019-05-26 07:27:33 -07:00
Paulus Schoutsen 7691e3f2c2 Fix duplicate tab when regen LL (#3217) 2019-05-25 12:30:44 -07:00
Paulus Schoutsen 6bbe8ff39f Merge pull request #3214 from home-assistant/dev
20190523.0
2019-05-23 13:31:26 -07:00
Paulus Schoutsen a1e9b4938f Bumped version to 20190523.0 2019-05-23 13:20:59 -07:00
Paulus Schoutsen c826596529 Update translations 2019-05-23 13:20:55 -07:00
Paulus Schoutsen 7f47079750 Notify about remote portal (#3211)
* Notify about remote portal

* Update text
2019-05-23 13:16:50 -07:00
Bram Kragten 642ba1adc3 Create dummy translation on dev (#3213) 2019-05-23 13:16:24 -07:00
Paulus Schoutsen fe80c7fe0e Warn that only automations in automations.yaml are editable (#3200) 2019-05-23 12:28:17 -07:00
Paulus Schoutsen 9309c5a1b6 Update Lit-HTML to 1.1 (#3210) 2019-05-22 19:36:07 -07:00
Paulus Schoutsen 575eb22608 Add UI to set/update core config (#3208)
* Add UI to set/update core config

* Types

* Disable editor in config.yaml mode

* Fix type
2019-05-21 20:12:07 -07:00
Paulus Schoutsen be0bef3f1b Allow automation/script delete (#3194) 2019-05-16 17:44:46 +02:00
Paulus Schoutsen 970286bbba Merge pull request #3197 from home-assistant/dev
20190514.0
2019-05-14 07:06:58 +02:00
Paulus Schoutsen 087c3b9c0e Bumped version to 20190514.0 2019-05-14 06:55:20 +02:00
Paulus Schoutsen b12d1b13ca Update translations 2019-05-14 06:55:14 +02:00
Paulus Schoutsen d0410e0884 Fix Safari 10 (#3196) 2019-05-14 06:52:20 +02:00
Paulus Schoutsen a1bf06ceb2 Fix CSS 2019-05-14 06:15:50 +02:00
Thomas Lovén d99744e054 ha-card migration - step #2 (#3187)
* Convert profile settings to ha-card

* Convert dev- panels to ha-card

* Convert empty-state-card to ha-card

* Convert zha config to ha-card - UNTESTED

* Convert zwave config to ha-card - UNTESTED

* Convert various panels to ha-card - UNTESTED

* Convert gallery to ha-card
2019-05-13 01:24:43 -07:00
Paulus Schoutsen e02d11a51f Pimp script editor (#3192)
* Pimp script editor

* Use property for define

* Show toasts
2019-05-12 21:28:25 -07:00
Paulus Schoutsen 1b50100b6c Pimp automation picker (#3193) 2019-05-12 20:30:49 -07:00
Timmo 309fecc9f3 Support icon_height for entity button (#2800)
* 🎨 Add support for icon_height

* 🎨 Add icon_height to config ui

* 🔨 Don't expose css for icon_height

* 🔨 Post rebase changes and allow advanced css height
2019-05-12 20:25:48 -07:00
Timmo 46f3add520 🔨 Fix hassio new add-on repository height (#3191) 2019-05-12 11:14:18 +02:00
Timmo a89f0bd1cd Add Search to Hassio add-on store (#3108)
*  Add search to hassio add-ons

* 👕 Fix linter error

* 👕 Lint fixes

* 🔥 Remove search from dashboard for this PR

* 🔥 Remove search from dasboard in this PR

* 🔨 Suggested changes

* 🔨 Change to fireEvent

* 🔨 Convert definition

* 🔥 Fix imports

* 🔥 Revert styling test

* 🔨 Fix search

* 🔨 CSS fix

* 🔨 Add smaller message to show no results found in repo

* 🔨 Fixes

* 🔨 CSS fixes

* 🔨 Add types

* 🎨 Max width

* 🔨 Fix margin jump

* 🔨 Add working memoizeOne

* 👕 Fix linting / error on build
2019-05-12 11:13:16 +02:00
Paulus Schoutsen 8408b8d41f Merge pull request #3190 from home-assistant/dev
20190510.0
2019-05-10 14:21:52 -07:00
Paulus Schoutsen 13761a20c5 Bumped version to 20190510.0 2019-05-10 14:13:20 -07:00
Paulus Schoutsen 03d17a9761 Update translations 2019-05-10 14:13:15 -07:00
Paulus Schoutsen 5501cccc67 Fix custom panel paths (#3188) 2019-05-10 14:12:08 -07:00
Paulus Schoutsen 9340d9068e Hash demo files in index.html (#3185) 2019-05-09 20:19:15 -07:00
Paulus Schoutsen bbdaa4b7c1 Merge pull request #3184 from home-assistant/dev
20190509.0
2019-05-09 15:48:22 -07:00
Paulus Schoutsen c87c782b2c Merge remote-tracking branch 'origin/master' into dev 2019-05-09 15:40:33 -07:00
Paulus Schoutsen f0b1cd9032 Bumped version to 20190509.0 2019-05-09 15:38:37 -07:00
Paulus Schoutsen 2ed532e055 Update translations 2019-05-09 15:38:33 -07:00
Paulus Schoutsen f70dafa192 Autofocus the first element in the auth page (#3177) 2019-05-09 15:36:43 -07:00
Paulus Schoutsen af6ade8eb6 Fix editing wait actions in script editor (#3181) 2019-05-09 15:36:29 -07:00
Paulus Schoutsen d77ae840d8 Fix the ES5 adapter for custom panel (#3182)
* Fix the ES5 adapter for custom panel

* Update custom-panel.ts

* Update custom-panel.ts

* Update custom-panel.ts
2019-05-09 15:36:16 -07:00
Paulus Schoutsen 968eae7727 Add external step (#3183)
* Add external step

* Automatically open external step
2019-05-09 15:36:05 -07:00
Paulus Schoutsen 97d8a68455 Unused entities to check picture-element cards (#3180)
* Check picture element cards for unused entities

* Remove unused entities from Arsaboo config

* Remove unused entities Isa

* Remove unused entities kernehed

* Remove unused entities jimpower
2019-05-09 09:53:29 -07:00
Paulus Schoutsen 7827cec212 Fix demo camera images (#3179) 2019-05-09 09:43:52 -07:00
Paulus Schoutsen 746ad588ef 20190508.0 (#3176)
* Prevent default form action (#3172)

* Use areas when generating Lovelace config (#3175)

* Use areas when generating Lovelace config

* Add missing return type

* Convert auth-flow to TypeScript/Lit (#3174)

* Change ha-pick-auth-provider to typescript

* Convert auth-flow to TypeScript/Lit

* Make sure we block emulated mouse events when touch is used (#3173)

* Trim text

* Update translations

* Bumped version to 20190508.0
2019-05-08 20:12:05 -07:00
Paulus Schoutsen 95e918b6ac Bumped version to 20190508.0 2019-05-08 19:58:30 -07:00
Paulus Schoutsen 1e82cc22e4 Update translations 2019-05-08 19:58:26 -07:00
Paulus Schoutsen fb2e1e5ebb Trim text 2019-05-08 19:57:03 -07:00
Joakim Plate fe2ae965b3 Make sure we block emulated mouse events when touch is used (#3173) 2019-05-08 19:53:34 -07:00
Jason Hu 8924a5f043 Convert auth-flow to TypeScript/Lit (#3174)
* Change ha-pick-auth-provider to typescript

* Convert auth-flow to TypeScript/Lit
2019-05-08 19:52:55 -07:00
Paulus Schoutsen 32e68c1a4b Use areas when generating Lovelace config (#3175)
* Use areas when generating Lovelace config

* Add missing return type
2019-05-08 16:34:53 -07:00
Jason Hu 89a35a0062 Prevent default form action (#3172) 2019-05-08 07:48:33 -07:00
Paulus Schoutsen 484b1c8444 Merge pull request #3171 from home-assistant/dev
20190507.0
2019-05-07 22:48:16 -07:00
Paulus Schoutsen cd5e274ffa Fix demo 2019-05-07 22:39:00 -07:00
Paulus Schoutsen f466a53ed4 Bumped version to 20190507.0 2019-05-07 22:31:15 -07:00
Paulus Schoutsen 1d40d94774 Update translations 2019-05-07 22:31:10 -07:00
Paulus Schoutsen 82e8ca2754 Alow setting up integrations during onboarding (#3163)
* Allow setting up integrations during onboarding

* Fix compress static

* Don't compress static files in CI

* Remove unused file

* Fix static compress disabled in CI build

* Work with new integration step

* Import fix

* Lint

* Upgrade HAWS to 4.1.1
2019-05-07 22:27:10 -07:00
Paulus Schoutsen 8c904fb012 Sort config flow picker (#3170) 2019-05-07 21:07:59 -07:00
Paulus Schoutsen fa13b95498 Use collections for registries (#3168)
* Use collections

* Fix bugs

* Lint
2019-05-07 20:57:23 -07:00
Paulus Schoutsen 289611363e Use named export for events mixin (#3166) 2019-05-07 17:47:44 -07:00
Paulus Schoutsen cb7048db23 Type debounce (#3167) 2019-05-07 17:47:31 -07:00
Paulus Schoutsen b9f86f735b Use named export for compare (#3169) 2019-05-07 17:47:19 -07:00
Thomas Lovén 0e044acaa9 ha-card migration Step #1 Configuration (#3161)
* Improvements to ha-card. Better paper-card compatibility

* Remove named slots

* Tweak distance between header and contents

* Further css tweaking

* Convert config dashboard to ha-card

* Convert cloud configuration to ha-card.

* Convert integrations configuration to ha-card.

* Convert user configuration to ha-card.

* Convert core configuration to ha-card

* Convert person, entity and area config to ha-card

* Convert automation and script editor to ha-card

* Convert customization editor to ha-card
2019-05-07 09:26:56 -07:00
Thomas Lovén 1223766523 ha-card migration. Step #0: improvements to ha-card. (#3144)
* Improvements to ha-card. Better paper-card compatibility

* Remove named slots

* Tweak distance between header and contents

* Further css tweaking
2019-05-07 09:24:39 -07:00
Paulus Schoutsen db65af9c22 Split up onboarding code (#3158) 2019-05-04 11:59:43 -07:00
Paulus Schoutsen fcdb1b48a2 Isolate hass state from base el (#3157) 2019-05-03 20:26:01 -07:00
Thomas Lovén 8729410dce Remove spinners in firefox (#3150) 2019-05-03 09:38:28 -07:00
Sean Mooney adb92e1708 add target="_blank" to match all other links on page (#3154)
* add target="_blank" to match all other links on page

* adds target="_blank" to ensure link opens in new tab

* adds target="_blank" to ensure link opens in new tab

* attempting to fix travis error

* resolve prettier errors hopefully

* Update ha-automation-picker.js

* Update ha-automation-picker.js

* Lint

* Lint
2019-05-03 09:37:06 -07:00
Joakim Plate 81088e0d07 Simplify list selection 2 (#3156)
* light: use attr-for-selected for effect

* vacuum: use attr-for-selection for speed
2019-05-03 08:54:38 -07:00
Paulus Schoutsen 34129cc7cb Migrate demo to gulp (#3152)
* Migrate demo to gulp

* Tweak demo migration to gulp

* Feature detect demo

* Gen icons
2019-05-02 22:41:58 -07:00
Paulus Schoutsen 530be9155b Dont cache requests to auth APIs (#3151) 2019-05-02 19:49:39 -07:00
Paulus Schoutsen aa33b00a1f Merge pull request #3149 from home-assistant/dev
20190502.0
2019-05-02 11:51:22 -07:00
Paulus Schoutsen 57b917f297 Bumped version to 20190502.0 2019-05-02 11:45:03 -07:00
Paulus Schoutsen aad7dc5d7d Update translations 2019-05-02 11:44:58 -07:00
Paulus Schoutsen 6c41c7b1ab Gulpify build pipeline (#3145)
* Gulpify build pipeline

* Update build frontend script

* Fixes

* Limit service worker to latest build

* Use shorthand

* Fix hassio build
2019-05-02 11:35:46 -07:00
Yosi Levy 8b98f375c2 Added tooltip to state badge element (#3137) 2019-05-02 11:31:14 -07:00
Joakim Plate 8a86dd8426 Simplify list selection (#3148)
* water_heater: Use attr-for-selected for operation mode

* climate: Use attr-for-selected for operation, fan, swing mode

* fan: Use attr-for-selected for speed

* fan: skip extra property

* climate: drop extra property

* water_heater: avoid extra property

* media_player: drop extra variable for source and sound_mode

* water_heater: missed change
2019-05-02 07:09:06 -07:00
Robbie Trencheny 5b12ca94e9 Add missing key for app configuration in sidebar (#3146)
* Add missing key for app configuration in sidebar

* avoid lokalise round trip
2019-05-01 22:49:33 -07:00
Paulus Schoutsen 652cd10483 Use Node 12 (#3141)
* Use Node 12

* Remove tests that don't work in Node
2019-04-30 12:16:41 -07:00
Paulus Schoutsen ca0ded8587 Fix webpack chunkname 2019-04-30 11:38:17 -07:00
Joakim Plate f943393ade Switch source selection to same logic as SoundMode with using (#3136)
actual value as selected item instead of index.

This avoids the bug with selected:
https://github.com/PolymerElements/paper-dropdown-menu/issues/197
https://github.com/PolymerElements/paper-dropdown-menu/issues/114

Fixes: #3022

Side note: it actually mainly hides the issue. If we should allow a key,
value setup with source being a key and the display value being a
localized value it likely would return.
2019-04-30 10:21:43 -07:00
Thomas Lovén d8f21d99af Use named slots to have advanced ha-card headers (#3127)
* Use named slots to have advanced ha-card headers

* Fix header text color
2019-04-29 11:31:27 -07:00
Paulus Schoutsen 73ef03e33f Use signed path for camera snapshot (#3138) 2019-04-29 11:27:40 -07:00
Paulus Schoutsen c34dde815c Merge pull request #3134 from home-assistant/dev
20190427.0
2019-04-27 22:16:54 -07:00
Paulus Schoutsen 1e85880d7b Bumped version to 20190427.0 2019-04-27 22:08:20 -07:00
Paulus Schoutsen 57abd4ae07 Update translations 2019-04-27 22:08:15 -07:00
Paulus Schoutsen 2624c1544b Disable the show in sidebar toggle when HA < 0.92 (#3124)
* Hide the show in sidebar toggle on 0.92

* Update hassio/src/addon-view/hassio-addon-info.js

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-04-27 22:02:47 -07:00
Paulus Schoutsen 1e72ffc0c2 Fix input select more info (#3132)
* Fix input select more info

* Lint
2019-04-27 22:02:26 -07:00
Yosi Levy 8ca70ace4c Tooltip picture elements (#3111)
* Added noTitle option to supress tooltip

* Additional strings

* Updated name

* refactored name

* Refactored strings

* Refactored to allow null in title
2019-04-27 13:03:31 -07:00
Thomas Lovén d66cf3f787 Allow changing state-icon element icon (#3122) 2019-04-27 10:37:57 -07:00
Paulus Schoutsen 44df0f698c Conditionally attach external message bus (#3131) 2019-04-27 10:37:15 -07:00
Thomas Lovén 981dd5df63 Basic input-datetime entity row (#3121)
* Basic input-datetime entity row

* Address review comments

* Fix imports
2019-04-25 21:47:46 -07:00
Paulus Schoutsen cd6250c495 Don't proxy external accessible covers (#3120) 2019-04-24 21:05:38 -07:00
Paulus Schoutsen 2f36304f06 Move picking new integration into dialog (#3110) 2019-04-24 12:51:41 -07:00
Paulus Schoutsen 30471b7cfb Merge pull request #3119 from home-assistant/dev
20190424.0
2019-04-24 11:13:42 -07:00
Paulus Schoutsen ff2f573dd0 Bumped version to 20190424.0 2019-04-24 11:07:34 -07:00
Paulus Schoutsen 38ddbf45c2 Update translations 2019-04-24 11:07:29 -07:00
Robbie Trencheny d79bf5e07e Forward haptic events to external apps (#3116)
* Forward haptic events to external apps

* Fix types
2019-04-24 11:03:59 -07:00
Robbie Trencheny d05b1ef9cc Add connection events to bus (#3117)
* Add connection events

* Fix types

* Fix order
2019-04-24 10:56:53 -07:00
Pascal Vizeli c260591d4d Hass.io update labels (#3114)
* Hass.io update labels

* Update hassio-addon-info.js
2019-04-24 08:58:35 +02:00
Paulus Schoutsen 87a7e63e31 Fix tests 2019-04-23 20:37:56 -07:00
Paulus Schoutsen a5dd3755e1 Add external app message bus (#3112)
* Add support for a app configuration button in the sidebar

* Add event to types

* Fire connection events so that app knows when to hide its fallback settings button

* Add external message bus

* Fixes

* Update external_config.ts

* Remove icon from gen-icons

* Add fireMessagE

* msgId -> id

* Rename to externalBus

* Log messages in dev

* Add should update to ha-sidebar


Co-authored-by: Robbie Trencheny <me@robbiet.us>
2019-04-23 20:23:56 -07:00
Pascal Vizeli ad40d9927b Hass.io: Support automated panel integration (#3113)
* Hass.io: Support automated panel integration

* Update hassio-addon-info.js

* fix lint
2019-04-23 12:24:06 +02:00
Robbie Trencheny f4cfbc6678 Initial haptics support (#3099)
* Initial haptics support

* Move window stuff into types.ts

* Fire haptic events instead of expecting a messageHandler

* Style fixes, linting fixes

* Only allow whitelisted haptics

* Make requested changes
2019-04-22 09:24:30 -07:00
Jc2k b3c1bead39 Allow 'Discovered' flows to have title placeholders (#3106)
* Allow 'Discovered' flows to have title placeholders

* Feedback from review
2019-04-21 10:58:51 -07:00
Paulus Schoutsen d220e56239 Merge pull request #3104 from home-assistant/dev
20190419.0
2019-04-19 17:01:05 -07:00
Paulus Schoutsen f967b4940a Bumped version to 20190419.0 2019-04-19 16:57:51 -07:00
Paulus Schoutsen f44d5dca1c Update translations 2019-04-19 16:57:50 -07:00
Paulus Schoutsen a9ed4e7943 Regenerate LL when attached (#3102)
* Regenerate when attached

* Fix lint
2019-04-19 14:53:26 -07:00
Paulus Schoutsen a404acbf44 Add support for secure devices pin (#3101) 2019-04-19 14:53:16 -07:00
Robbie Trencheny eaa2ce1462 Ask users if they want to install iOS app (#3100) 2019-04-18 20:54:52 -07:00
Joakim Plate bdd8699709 Add device_class for switches (#3096) 2019-04-18 15:12:17 -07:00
Paulus Schoutsen 9f0b20634a Merge pull request #3098 from home-assistant/dev
20190417.0
2019-04-17 09:39:05 -07:00
Paulus Schoutsen a70d9195db Bumped version to 20190417.0 2019-04-17 09:31:40 -07:00
Paulus Schoutsen d86253d582 Update translations 2019-04-17 09:31:23 -07:00
Paulus Schoutsen d5a313445f Update user-agents to 2.0.0 (#3087) 2019-04-15 19:56:31 -07:00
Joakim Plate f979febb76 Match list of classes for cover to backend (#3090)
https://github.com/home-assistant/home-assistant/blob/1d2e9b6915debbd6d1906c7612851db479bf5702/homeassistant/components/cover/__init__.py#L52

Fixes #3089
2019-04-15 19:56:23 -07:00
Jason Hunter a1a2a78531 Add Stream Element (#3086)
* initial commit for stream element

* lit elements are apparently not self closing

* add disconnectedCallback to teardown on unload

* refactor stream element to UpdatingElement and bundle MJPEG handling with it

* attach video element for HLS native

* update hui-image to optionally show a live camera view (video or mjpeg)

* fix playing inline video on iOS

* implement review feedback

* Fix update bugs

* Tweaks

* Fix stateObj changed
2019-04-15 19:55:13 -07:00
Paulus Schoutsen 6ed2d288e6 addon -> add-on (#3094) 2019-04-15 10:53:53 -07:00
ktnrg45 5c8e5d3539 Added padding definition for type game (#3059) 2019-04-13 20:35:24 -07:00
Paulus Schoutsen bbae3291e1 Support ingress custom panels (#3085)
* Support ingress custom panels

* Fix types

* Add disabled placeholder to network card
2019-04-11 11:42:52 -07:00
Paulus Schoutsen 5dbd5c7395 Fix hassio unavailable dashboard & update card 2019-04-10 15:38:33 -07:00
Paulus Schoutsen 038f7b43d5 Merge pull request #3080 from home-assistant/dev
20190410.0
2019-04-10 15:00:36 -07:00
Paulus Schoutsen 671e564037 Fix hassio dashboard available maybe 2019-04-10 15:00:19 -07:00
Paulus Schoutsen 8298d810a8 Bumped version to 20190410.0 2019-04-10 14:46:23 -07:00
Paulus Schoutsen 7428479f6b Update translations 2019-04-10 14:46:16 -07:00
Paulus Schoutsen 6b85910cdb Fix classname 2019-04-10 14:45:39 -07:00
Paulus Schoutsen 4d7bb0df7d Fix hassio loading 2019-04-10 12:46:42 -07:00
Paulus Schoutsen 26a39b1bb8 Hassio fixes 2019-04-10 12:32:21 -07:00
Ian Richardson e23f046c4d 🕶 convert hui-persisten-notification-item to TypeScript/LitElement (#3032) 2019-04-09 22:25:34 -05:00
Paulus Schoutsen fe73213643 Fix hassio 2019-04-09 16:31:07 -07:00
Paulus Schoutsen cbe5355d38 Small fixes 2019-04-09 14:26:30 -07:00
Paulus Schoutsen 81b232f01e Stop experimenting in dev for hassio 2019-04-09 14:26:18 -07:00
Paulus Schoutsen 3e6be45f1f Revert webpack upgrade for hassio fix? 2019-04-09 13:58:48 -07:00
Paulus Schoutsen d26ed6fdb6 fix sorting and use user given name if available (#3072) 2019-04-09 13:53:44 -07:00
Pascal Vizeli eda168247c Add description support to UI (#3079) 2019-04-09 22:53:10 +02:00
Paulus Schoutsen 4d2390daf4 Hass.io snapshots -> Lit (#3078)
* Hass.io snapshots

* Fix rootnav
2019-04-09 13:05:56 -07:00
Paulus Schoutsen 5b861bb4c6 Fix hassio in prod? 2019-04-09 00:17:34 -07:00
Paulus Schoutsen be6d89bb7a Revert a tsconfig change (#3075) 2019-04-08 17:08:59 -07:00
Paulus Schoutsen 1c17210948 Clean up even more (#3074) 2019-04-09 00:15:46 +02:00
David Mulcahey 5257715145 fix sorting and use user given name if available 2019-04-08 07:31:33 -04:00
Paulus Schoutsen 8df9ac9dfa Fix paper-icon-button fail (#3069) 2019-04-07 23:50:58 -07:00
Paulus Schoutsen 559164e159 fix showing edit entity icon in more info dialog (#3066)
* fix showing cog

* Remove unused value

* Lint
2019-04-07 12:17:06 -07:00
Paulus Schoutsen 70072786a1 Clean up hassio tabs page (#3068)
* Clean up hassio tabs page

* Make load optional

* Fix bug
2019-04-07 11:58:51 -07:00
Paulus Schoutsen cda29fcd07 Clean up hassio panel (#3067)
* Clean up hassio panel

* Extract dialog manager code

* Convert markdown dialog to show-dialog

* Extract snapshot dialog
2019-04-07 17:45:56 +02:00
Paulus Schoutsen 31e351c75c Show features translation 2019-04-06 22:36:30 -07:00
Paulus Schoutsen cadcd845cc Add guard for addon 2019-04-06 12:32:45 -07:00
Paulus Schoutsen b07f95f956 Add hassio ingress support (#3062)
* Add hassio ingress support

* Remove logging

* Better integrate

* Add badge

* FIx type
2019-04-06 09:28:08 +02:00
Markus Jankowski 7f99f1d9be add device_class_signal_strength (#3058) 2019-04-04 21:40:27 -04:00
Yosi Levy 8c7cdda3d3 Converted paper-dialog to ha-paper-dialog (#3055)
* Converted paper-dialog to ha-paper-dialog

* Fixed paths

* Fixed double import

* Fixed orphan tags

* Moved to /components and renamed

* Fixed hassio

* Fix travis issue
2019-04-04 15:11:43 -07:00
Paulus Schoutsen 8c222bb467 Remove unnecessary resolutions (#3056)
* Remove vaadin-lumo-styles resolution

* Remove iron-overlay-behavior resolution

* Remove polymer and shadycss resolutions

* Add lumo-styles back to resolution
2019-04-03 23:07:35 -07:00
Markus Jankowski 4dfdebb00a Add device_class_power to sensor (#3057) 2019-04-03 21:55:14 -07:00
Paulus Schoutsen 3947adbab4 Upgrade workbox to v4 (#3053)
* Upgrade workbox to v4

* Update dmeo config
2019-04-02 15:38:14 -07:00
Paulus Schoutsen 81eab0bf1b Fix arsaboo demo unit (#3050)
* Fix arsaboo demo unit

* Migrate to C
2019-04-02 12:25:35 -07:00
Paulus Schoutsen 0c406335f5 Upgrade deps (#3038)
* Upgrade deps

* Revert workbox back to 3

* Fix var name
2019-04-02 12:14:10 -07:00
yosilevy 109c40b2d3 RTL fix for drop downs (#3047)
* RTL fix for drop downs

* Added new file
2019-04-02 11:53:00 -07:00
David F. Mulcahey a362b08113 buffer time to prevent edge misses (#3049) 2019-04-02 11:52:01 -07:00
Paulus Schoutsen 438d155c45 Fix imports (#3040) 2019-04-02 11:50:57 -07:00
Paulus Schoutsen 75f5325048 Simplify hass subpage (#3039) 2019-04-02 11:50:50 -07:00
David F. Mulcahey 8f5f14fada Add targeted joins to ZHA config panel (#3048)
* initial targeted add

* mains powered devices only

* fix prop reference

* import

* fix targeted join
2019-04-02 11:48:06 -07:00
Paulus Schoutsen 8e290be9e7 Merge pull request #3044 from home-assistant/dev
20190331.0
2019-03-31 19:52:11 -07:00
Paulus Schoutsen 9f97b583a8 Bumped version to 20190331.0 2019-03-31 19:51:21 -07:00
Paulus Schoutsen 8993e39c38 Update translations 2019-03-31 19:51:17 -07:00
Paulus Schoutsen dc61a62149 Edit card fixes (#3043) 2019-03-31 19:38:11 -07:00
Paulus Schoutsen 22fdac4189 Reset camera prefs (#3042) 2019-03-31 19:38:01 -07:00
Paulus Schoutsen c52f437ee6 lint 2019-03-29 16:46:58 -07:00
Paulus Schoutsen 549db23ff5 lint 2019-03-29 16:46:48 -07:00
Paulus Schoutsen 6775a094c9 Merge pull request #3037 from home-assistant/dev
20190329.0
2019-03-29 16:45:26 -07:00
Paulus Schoutsen 74a255add1 Bumped version to 20190329.0 2019-03-29 16:44:32 -07:00
Paulus Schoutsen a77c951d55 Update translations 2019-03-29 16:44:27 -07:00
Paulus Schoutsen e3896c359a Register service worker during login (#3036) 2019-03-29 16:43:42 -07:00
Paulus Schoutsen 56e3514e40 Allow changing camera prefs (#3035)
* Check camera supported_features before streaming

* Allow mutating camera prefs

* Move when we fetch prefs
2019-03-29 16:43:32 -07:00
Paulus Schoutsen f4319d9b13 Fix custom panel/hass.io navigation (#3034)
* Hass.io: use correct function for firing evenet

* Fix navigation from custom panel
2019-03-29 16:40:28 -07:00
David F. Mulcahey c134464f6a fix area and user given name display (#3033) 2019-03-29 14:02:13 -07:00
Ian Richardson 7b821aa363 🕶 convert hui-notification-item-template to TypeScript/LitElement (#3029)
* 🕶 convert hui-notification-item-template to TypeScript/LitElement

* address review comments
2019-03-27 22:05:07 -07:00
Paulus Schoutsen 4e6d00cf5c Merge pull request #3030 from home-assistant/dev
20190327.0
2019-03-27 21:31:53 -07:00
Paulus Schoutsen 22e5792a8f Upgrade mwc (#3031) 2019-03-27 21:24:46 -07:00
Paulus Schoutsen e3e0d4618e Bumped version to 20190327.0 2019-03-27 21:21:20 -07:00
Paulus Schoutsen aa1ac8f339 Update translations 2019-03-27 21:21:15 -07:00
Paulus Schoutsen 40863db138 Typo 2019-03-27 21:19:32 -07:00
Ian Richardson eac37af18c 🕶 convert hui-notification-item to TypeScript/LitElement (#3028) 2019-03-27 21:14:27 -07:00
Ian Richardson 7f8f99a414 🕶 convert hui-configurator-notification-item to TypeScript/LitElement (#3027) 2019-03-27 21:12:56 -07:00
Ian Richardson a743a2c46b 🛠 Fix button icon/name (#3026) 2019-03-27 21:12:20 -07:00
Jason Hu adc63e1e5a Fix login form missing abort reason (#3024) 2019-03-27 21:11:07 -07:00
Ian Richardson 1d24b83e5c Align configs (#3019)
* Align configurations

* cleanup

* fix imports
2019-03-27 21:10:55 -07:00
yosilevy b3f9432ae1 Tab fix in yaml-editor edit card (#3008)
* Fixed tabs not working in yaml editor in edit card

* Improved docs

* Fixed comments

* Added dependencies

* Added typescript mapping

* Fixed data type issue + removed depednency since it breaks the UI. Non final.

* Added iron-overlay-behavior package

* Added dependency

* Update iron-overlay-behavior

* Lint
2019-03-27 21:10:07 -07:00
Ian Richardson c95a44c570 Consider "on" as valid media state (#3020) 2019-03-27 21:07:04 -07:00
Jason Hu 5080f4c2db Allow auth provider bypass login form (#3025) 2019-03-27 20:54:10 -07:00
Thomas Lovén 44eaa3abad A bit of cleanup in the card editor (#2984)
* edit-card shouldn't need to know about the path

* fix

* Store config as object at all times, convert when necessary

* Hidden is not a property of mwc-button. No need to hide anyway...
2019-03-26 15:31:43 -07:00
Ian Richardson 9a4215b5d5 Upgrade mdi to 3.5.92 (#3007) 2019-03-26 14:59:37 -07:00
Ian Richardson 004892e11a 🔧 Remove unnecessary re-renders (#3014)
* 🔧 Remove unnecessary re-renders

* address review comments

* address review comments
2019-03-26 00:18:16 -05:00
David F. Mulcahey 669358bf1a ZHA add devices page (#2969)
* zha add device page

add device join dialog stub

update dialog stub

fix spinner

add messages and devices to dialog

dialog updates

update dialog

update dialog

add debug info

fix reference

add header

update dialog

test zha gateway message subscription

add device join dialog stub

add messages and devices to dialog

dialog updates

update dialog

add debug info

update dialog

start transitioning to a page instead of a dialog

fix import

subpage

update router

remove old dialog handle

remove dialog parts

make add button call navigate

change extract page

add devices page

cleanup

* update device join page

* auto scroll log

* update css and add device page layout

* fix padding

* fix missing imports

* fix imports

* add -> permit

* left justify device cards to prevent jumping

* conditionally display entity ids

* cleanup

* fix vertical alignment

* review comments

* fix manufacturer overrides
2019-03-25 22:26:32 -05:00
Petro31 435b7d9cee Fix for vertical button spacing on alarm card (#3017)
Vertical spacing on button card doesn't have padding when 3 or more buttons are present and the card size is small.  Small PR.
2019-03-25 22:15:38 -05:00
Ian Richardson 9a2207b5cb badge warning (#3009) 2019-03-25 07:40:04 -07:00
Ian Richardson 324f0bb8a2 warning-element (#3006)
* warning-element

* add warning-element to picture-glance

* add glance-card
2019-03-23 23:10:55 -07:00
yosilevy 3b8f8f8189 Climate RTL fixes (#3002) 2019-03-23 20:30:26 -07:00
Paulus Schoutsen 702c17d658 Convert custom panel to typescript (#2991)
* Convert custom panel to typescript

* Address comments
2019-03-23 11:41:36 -07:00
Ian Richardson e2a9cf0d3c Handle unavailable entity in conditional-card (#2996)
* Handle unavailable entity in conditional-card

* cleanup
2019-03-23 11:09:30 -07:00
Jason Hu 8aa501b7bd Add Icelandic :flag_is: support (#3003) 2019-03-23 11:08:00 -07:00
yosilevy 45189c9163 Media player RTL fixes (#3001) 2019-03-23 11:06:35 -07:00
heckler 86940f4d42 Edited the delete message on removeEntry to match the resource type (#3000) 2019-03-22 18:06:17 -07:00
Ian Richardson 812c1362a6 Fix typo (#2999)
Fixes https://github.com/home-assistant/home-assistant-polymer/issues/2997
2019-03-22 14:42:30 -05:00
Ian Richardson 6bf9ea5699 entity-button show/hide icon/name (#2936) 2019-03-22 11:55:52 -07:00
Paulus Schoutsen 20ee3452dc Fix sidebar when user is slow to load (#2993) 2019-03-22 10:38:40 -07:00
Paulus Schoutsen ef18f9eac9 Upgrade lit element to 2.1.0 (#2990)
* UPgrade lit element

* Fix yarn resolving

* Upgrade mwc
2019-03-21 14:56:57 -07:00
Paulus Schoutsen 47faf2768c Merge pull request #2989 from home-assistant/dev
20190321.0
2019-03-21 12:24:23 -07:00
Paulus Schoutsen a2bed3dd90 Bumped version to 20190321.0 2019-03-21 12:23:15 -07:00
Paulus Schoutsen 4fab0b9717 Update translations 2019-03-21 12:23:11 -07:00
Paulus Schoutsen 06b70e2653 Fix route changing on every hass change (#2988) 2019-03-21 12:22:32 -07:00
Paulus Schoutsen 48aa9a2ad7 Fix blank tabs in Hass.io 2019-03-20 13:46:53 -07:00
Paulus Schoutsen 93d971f72b Merge pull request #2981 from home-assistant/dev
20190320.0
2019-03-20 07:43:56 -07:00
Paulus Schoutsen 7e69df44d7 Bumped version to 20190320.0 2019-03-20 07:42:46 -07:00
Paulus Schoutsen c743a48cf9 Update translations 2019-03-20 07:42:45 -07:00
Paulus Schoutsen b82a1c75c4 Fix custom panel doctype (#2977) 2019-03-20 07:36:28 -07:00
Bram Kragten be9402bd05 Remove console.log (#2979)
Remove console.log probably forgotten?
2019-03-20 07:36:06 -07:00
Paulus Schoutsen ebae469e7d Warn when remote UI cannot be turned on (#2978)
* Warn when remote UI cannot be turned on

* Lint
2019-03-20 07:35:44 -07:00
Paulus Schoutsen d0d293fe21 Merge pull request #2976 from home-assistant/dev
20190319.1
2019-03-19 14:03:45 -07:00
Paulus Schoutsen bd6d082555 Exclude google fonts (#2975) 2019-03-19 14:03:16 -07:00
Paulus Schoutsen 39190dda20 Bumped version to 20190319.1 2019-03-19 14:02:22 -07:00
Paulus Schoutsen 89a8e3da36 Fix property on ha-panel-lovelace 2019-03-19 14:02:15 -07:00
Paulus Schoutsen 49f90671fb Merge pull request #2973 from home-assistant/dev
20190319.0
2019-03-19 11:28:43 -07:00
Paulus Schoutsen c4ece5e451 Bumped version to 20190319.0 2019-03-19 11:27:18 -07:00
Paulus Schoutsen 799bd973ca Pass narrow to hui-root 2019-03-19 11:26:45 -07:00
Paulus Schoutsen 03dffa9905 Fix hassio panel nav on <0.90 HA 2019-03-19 10:10:26 -07:00
Paulus Schoutsen 1d1c981601 Upgrade HAWS" (#2967) 2019-03-18 19:42:38 -07:00
Paulus Schoutsen 40025d44c2 Add if replace was used when sending navigation events (#2970) 2019-03-18 19:42:27 -07:00
Paulus Schoutsen 42117fcba0 Merge pull request #2971 from home-assistant/dev
20190318.0
2019-03-18 16:54:04 -07:00
Paulus Schoutsen dc16abd637 Bumped version to 20190318.0 2019-03-18 16:53:14 -07:00
Paulus Schoutsen 8c71746952 Update translations 2019-03-18 16:53:06 -07:00
Paulus Schoutsen 6e504020bf Fix panels race 2019-03-18 10:50:45 -07:00
Paulus Schoutsen 7caf37275d Fix hassio repo editing (#2965) 2019-03-18 09:14:34 -07:00
Paulus Schoutsen c3f094eb9e Fix hassio nav 2019-03-18 09:05:22 -07:00
Paulus Schoutsen feb3be1d17 Fix hassio build 2019-03-18 07:41:40 -07:00
Paulus Schoutsen 2fe0398f37 Make Hass.io menu toggle button work in pre and post 90 release (#2959) 2019-03-18 08:53:25 +01:00
David F. Mulcahey 42c7879c4d change integrations link (#2955) 2019-03-17 19:28:41 -07:00
Paulus Schoutsen 2586590bd9 Merge pull request #2953 from home-assistant/dev
20190316.0
2019-03-16 23:22:26 -07:00
Paulus Schoutsen 59ee160f96 Reload data when opening integrations.
Fixes #2952
2019-03-16 23:20:45 -07:00
Paulus Schoutsen d4bc4bf7bc Bumped version to 20190316.0 2019-03-16 23:16:47 -07:00
Paulus Schoutsen e2a182acee Update translations 2019-03-16 23:16:42 -07:00
Paulus Schoutsen 88131ade23 Add area ID to area ID modal 2019-03-16 23:15:20 -07:00
Paulus Schoutsen fb16156f8d Fix routetail + config subrouting (#2951)
* Fix routetail + config subrouting

* Do not update panel when loading a new one

* Fix init skeleton not removed during loading
2019-03-16 23:15:00 -07:00
Jason Hunter 6ba77b4fa5 Fix HLS on Android 9.0 (#2950)
* make sure can play type is "probably"

* check hls.js first and then native
2019-03-16 21:22:42 -07:00
Paulus Schoutsen c55291dd18 Merge pull request #2945 from home-assistant/dev
20190315.1
2019-03-15 23:18:28 -07:00
Paulus Schoutsen 27b61776e8 Bumped version to 20190315.1 2019-03-15 23:17:13 -07:00
Paulus Schoutsen baa13a1b6c Update translations 2019-03-15 23:16:00 -07:00
Paulus Schoutsen 23ca1b972d Fix router (#2943)
* Fix router

* Fix demo

* Extract update routes

* Lint
2019-03-15 23:15:16 -07:00
Paulus Schoutsen 2d75e797c7 Hide service toast in the demo (#2942)
* Hide service toast in the demo

* Update provide_hass.ts
2019-03-15 23:10:50 -07:00
Ian Richardson 117ea32586 Fix markdown style (#2944) 2019-03-15 23:10:34 -07:00
Paulus Schoutsen 68909c80ff Hide entity config option for user group (#2941) 2019-03-15 22:43:27 -07:00
Paulus Schoutsen 7aa296e774 move cert info to a dialog (#2940) 2019-03-15 22:43:19 -07:00
Paulus Schoutsen 18df636573 Merge pull request #2935 from home-assistant/dev
20190315.0
2019-03-15 10:42:05 -07:00
Paulus Schoutsen e1540e45f9 Bumped version to 20190315.0 2019-03-15 10:40:54 -07:00
Paulus Schoutsen d0b0284200 Update translations 2019-03-15 10:40:50 -07:00
Paulus Schoutsen 915c441a94 Cleanup config flow (#2932)
* Break up config flow dialog

* Allow picking devices when config flow finishes

* Lint

* Tweaks
2019-03-15 10:40:18 -07:00
Ian Richardson 2aec877310 Set entity-button defaults (#2897)
* Set entity-button defaults

tap_action: toggle
hold_action: more-info

* Address review comment, but unsure about lint

* Address review comments
2019-03-15 09:24:10 -07:00
Paulus Schoutsen 1e291e80b7 Fix translation (#2934) 2019-03-15 09:23:21 -07:00
Paulus Schoutsen 7d92eede1f Update translations 2019-03-14 16:28:04 -07:00
Paulus Schoutsen 9fc8c0764c Fix demo stub 2019-03-14 15:38:33 -07:00
Paulus Schoutsen 4ff2d941c3 Lint 2019-03-14 15:35:02 -07:00
Paulus Schoutsen 2349e2f251 Config panel routing (#2928)
* Config panel routing

* Abstract routing

* Convert partial-panel-resolver

* decorator

* Remove showMenu

* Tweaks to make it faster

* Rename update method

* Less aggressive loading
2019-03-14 15:16:46 -07:00
Paulus Schoutsen 8785b03fd8 Menu button simplify (#2930)
* Simplify the hass-menu button

* Purge showMenu boolean
2019-03-14 13:54:46 -07:00
Paulus Schoutsen 92e6c5adfd Bail out early when no stream component (#2927) 2019-03-13 13:32:59 -07:00
Paulus Schoutsen 6015eff8a2 Merge pull request #2926 from home-assistant/dev
20190313.0
2019-03-13 12:47:50 -07:00
Paulus Schoutsen 1451a78dd3 Bumped version to 20190313.0 2019-03-13 12:46:32 -07:00
Paulus Schoutsen 094f558556 Update translations 2019-03-13 12:46:27 -07:00
Paulus Schoutsen cd466df42c Show message when cert not ready 2019-03-13 12:42:42 -07:00
Jason Hu a626961ae5 Add Afrikaans and Basque languages support (#2922)
* Add Basque language

* Add Afrikaans language

* Update translations
2019-03-12 19:44:26 -07:00
Paulus Schoutsen bbc32278d8 Cache thumbnails (#2924) 2019-03-12 19:43:04 -07:00
Paulus Schoutsen e2ed1a9fd9 Fix bugs (#2923) 2019-03-12 19:41:02 -07:00
Paulus Schoutsen cd94442455 Merge pull request #2917 from home-assistant/dev
20190312.0
2019-03-12 11:28:16 -07:00
Paulus Schoutsen c9eea4acc1 Do not allow disabling managed webhooks (#2921) 2019-03-12 11:15:24 -07:00
Paulus Schoutsen e55ca54509 Lint 2019-03-12 11:14:07 -07:00
Paulus Schoutsen 4118497978 Lint 2019-03-12 11:06:23 -07:00
Paulus Schoutsen 882dc38b12 Support native HLS support (#2920) 2019-03-12 11:03:20 -07:00
Paulus Schoutsen bcade77075 Update cloud card (#2919) 2019-03-12 10:53:13 -07:00
Paulus Schoutsen 8c13e524b9 Bumped version to 20190312.0 2019-03-12 07:49:41 -07:00
Paulus Schoutsen ffa47ccf34 Update translations 2019-03-12 07:49:12 -07:00
Paulus Schoutsen 1e22d13588 Cloud remote (#2916)
* Add cloud management

* Update text
2019-03-12 07:43:55 -07:00
Paulus Schoutsen 19804a713d Stream HLS (#2913)
* Stream HLS

* Lint
2019-03-11 22:40:41 -07:00
Paulus Schoutsen eeaaecd5b7 Show err entity registry (#2914)
* Show error in entity registry

* Fix area translations and error message

* Fix person domain filter
2019-03-11 22:33:17 -07:00
Paulus Schoutsen 9a00c65e3b Fix fetch translation (#2909) 2019-03-11 16:26:59 -07:00
Paulus Schoutsen c026c65d53 Fix correct dialog-save element registration 2019-03-11 14:43:15 -07:00
Ian Richardson e9c245015c Add automation to list of domains that can use header toggle (#2900) 2019-03-11 12:12:17 -07:00
David F. Mulcahey cdde6f6f4c device name (#2901) 2019-03-11 12:12:03 -07:00
Ian Richardson 262537c287 🔧 properly override entity picture with icon (#2902) 2019-03-11 12:10:24 -07:00
Ian Richardson ec04c80413 add show_icon to glance-card (#2903)
*  add `show_icon` to glance-card

* lint/error
2019-03-11 12:09:32 -07:00
Paulus Schoutsen 86548052e5 Allow changing group (#2908)
* Allow changing group

* Styling + rename

* Fix type
2019-03-11 12:08:09 -07:00
Paulus Schoutsen 1890dd8683 Bumped version to 20190309.0 2019-03-09 21:25:17 -08:00
Paulus Schoutsen 2908eb693a Update translations 2019-03-09 21:25:12 -08:00
Ian Richardson 7fe4084073 🔧 Fix hui-theme-select-editor definition typo (#2899) 2019-03-09 18:23:26 -06:00
Paulus Schoutsen ee948302ed Convert onboarding to Lit (#2894)
* Convert onboarding to Lit

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Add confirm password field
2019-03-08 13:51:37 -08:00
Jason Hu f809bf0550 Save user language setting to backend (#2784)
* Save user language setting to backend

* Remove hass.selectedLanguage

* Lint

* Address code review comment

* Refactoring translation

* Code review

* Add back selectedLanguage and local app storage

* Move getTranslations to data/frontend.ts

* Fix mock hass

* Rewrite translations-mixin

* revert no need changes

* Final tweak
2019-03-08 02:49:58 -08:00
Malte Franken ed9dff99d3 Geolocation source configurable in map editor (#2755)
* wip

* added input list editor

* input label configurable, variables renamed

* new input field working as expected now

* fix lint issues

* fix lint issues

* fix lint issues and code clean-up

* fix lint issues

* uses property decorator now

* change the way css is included

* moved heading from input list editor to map card editor

* moved styling of input list editor to map card editor

* stopped propagating event

* return new value in event instead of changing the input value

* added button to clear value; consolidate value when leaving input field

* fix lint issues

* fix lint issues

* using customElement decorator

* fix lint issues
2019-03-07 14:06:40 -08:00
Ian Richardson f5d0162aec Convert hui-plant-status-card to TypeScript/LitElement (#2891)
* Convert plant-status card to TS/Lit

* Cleanup
2019-03-07 13:59:21 -08:00
Paulus Schoutsen 32682a2be0 Bumped version to 20190305.1 2019-03-07 10:53:56 -08:00
Paulus Schoutsen 836844a312 Fix checking cloudhooks exist (#2893) 2019-03-07 10:53:52 -08:00
Paulus Schoutsen 8b82fa940e Fix checking cloudhooks exist (#2893) 2019-03-07 10:53:24 -08:00
David F. Mulcahey d4be171df9 Direct device binding for ZHA config panel (#2856)
* device binding

* review comments

* Update zha-binding.ts
2019-03-07 10:53:06 -08:00
Ian Richardson 57be7ac873 Cleanup cards (#2870)
* Cleanup cards

* Update hui-iframe-card.ts

* address review comments

* Apply paper-styles

https://github.com/PolymerElements/paper-styles/blob/v3.0.1/classes/typography.js

I didn't find `paper-font-common-nowrap` in anything after v1.0.0 but did end up applying what I found here: https://chromium.googlesource.com/chromium/src/+/923ede74ebc57633583795a84b33e994f7dcd4fa/third_party/polymer/v1_0/components/paper-styles/typography.html

* Added comments on paper-style usage
2019-03-07 10:52:39 -08:00
Ian Richardson a9cecb55ac Update ISSUE_TEMPLATE.md (#2892) 2019-03-07 10:51:57 -08:00
Paulus Schoutsen 1c6bf8b94a Upgrade home-assistant-js-websocket to 3.3.0 (#2887) 2019-03-06 09:52:28 -08:00
Paulus Schoutsen 1c6235546a Swap out babel-minify for terser (#2885) 2019-03-05 13:10:35 -08:00
Paulus Schoutsen daaaef96b0 Limit service worker (#2886) 2019-03-05 12:42:42 -08:00
Ian Richardson aa3b6343ed Cleanup Editors and some common elements (#2882)
This is what I do while watching TV 😄
2019-03-05 11:36:17 -08:00
Paulus Schoutsen 3e5d372bbe Merge pull request #2884 from home-assistant/dev
20190305.0
2019-03-05 11:30:44 -08:00
Paulus Schoutsen 3bab8686c8 Bumped version to 20190305.0 2019-03-05 11:30:03 -08:00
Paulus Schoutsen 8c0af2c140 Update translations 2019-03-05 11:29:58 -08:00
Paulus Schoutsen f008f8f41a Fix map entities (#2883)
* Fix map entities

* Fix switching tabs
2019-03-05 11:28:31 -08:00
Paulus Schoutsen 587a7c3b66 Merge pull request #2880 from home-assistant/dev
20190303.0
2019-03-03 21:55:12 -08:00
Paulus Schoutsen b25fff9852 Bumped version to 20190303.0 2019-03-03 21:54:40 -08:00
Paulus Schoutsen 45e5f7d0ff Update translations 2019-03-03 21:52:59 -08:00
yosilevy 19c44f7c7b Conditional element support for use in picture-elements (#2865)
* Conditional element support for use in picture-elements

* Refactored

* Refactor to HTMLElement, separated files

* New file

* Added disconnected callback, handled multiple config calls.

* Added update method

* Refactored and simplified - elements contained internally

* Removed excess if

* Refactored also picture elements
2019-03-03 11:27:34 -08:00
Paulus Schoutsen 241d7345d0 Do not fire command if we know component not loaded (#2875) 2019-03-03 10:26:10 -08:00
Jason Hu 34c6356a47 Display service call error message (#2874) 2019-03-01 23:09:57 -08:00
Paulus Schoutsen 9383d80354 Better fix for ha-entity-toggle (#2873) 2019-03-01 11:17:48 -08:00
yosilevy 178e4de452 Fixed history graph tooltip so dates are readable (#2872) 2019-03-01 10:59:17 -08:00
Paulus Schoutsen 787abc4611 Merge pull request #2869 from home-assistant/dev
20190228.0
2019-02-28 17:42:16 -08:00
Paulus Schoutsen c2948638d6 Bumped version to 20190228.0 2019-02-28 17:41:38 -08:00
Paulus Schoutsen 1db93a4f7b Fix ha-entity-toggle restoring old state (#2868) 2019-02-28 17:41:20 -08:00
Paulus Schoutsen 8f4d24b6da Update translatins 2019-02-28 17:11:59 -08:00
Thomas Lovén 03d4a648f5 Trim overflowing cards (#2864)
* Trim overflowing cards

* Fix picture-elements instead
2019-02-28 14:30:43 -08:00
Paulus Schoutsen 8dba463dd4 Fix define 2019-02-28 12:02:32 -08:00
Paulus Schoutsen 7c21a07a66 fix import 2019-02-28 11:48:42 -08:00
Paulus Schoutsen 82189ab3c6 Fix system health check (#2866)
* Fix system health check

* Update src/panels/dev-info/system-health-card.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-02-28 10:24:19 -08:00
Ian Richardson c0896d173d cleanup rows (#2863) 2019-02-28 09:48:18 -08:00
Paulus Schoutsen 5032b6e63b Merge pull request #2862 from home-assistant/dev
20190227.0
2019-02-27 16:11:40 -08:00
Paulus Schoutsen 9bf06ca0af Bumped version to 20190227.0 2019-02-27 16:10:34 -08:00
Paulus Schoutsen 4fa1c3e883 Update translations 2019-02-27 16:10:34 -08:00
Paulus Schoutsen 339be43eea Check system health loaded (#2861) 2019-02-27 16:03:50 -08:00
Jason Hu 00c08a09db Fix login issue on FireFox (#2860) 2019-02-27 14:24:26 -08:00
Thomas Lovén bed257a4eb Add ha-card-box-shadow css variable for themeing (#2855) 2019-02-27 11:30:03 -08:00
Thomas Lovén b73a2e838a Stop brightness display of light-card from blocking clicks (#2850) 2019-02-26 11:07:06 -08:00
starkillerOG 6580d4ce92 Color picker: dynamic segmentation (#2806)
* Color picker: dynamic segmentation

* Color Picker: dynamic segmentation

* Color Picker: dynamic segments

* == --> ===

* spaces

* use setProperties()

* fix dynamic segements

* Change size position and collor of segmentation button

* add spaces

* Add ;
2019-02-25 20:38:46 -08:00
Victor Vostrikov 8c23674683 Add labels to Person (#2844)
* Added label for Person

* Added icon for Person

* Changed comment for label

* Added translation for person

* Updated translation for person
2019-02-25 12:01:18 -08:00
Paulus Schoutsen 3e28b6f2e2 Convert ha-menu-button to TS (#2825)
* Convert ha-menu-button to TS

* Address comments

* Fix icon searcher
2019-02-25 11:53:46 -08:00
Paulus Schoutsen 6d2e480ed5 Convert ha-url-sync to TS (#2824)
* Convert ha-url-sync

* Change url-sync to be a mixin
2019-02-25 11:11:33 -08:00
Paulus Schoutsen 90a1f7e51c Convert map card to Lit/TS (#2826)
* Convert map card to Lit/TS

* Address comments
2019-02-25 11:10:22 -08:00
yosilevy 63e6506510 Cleanup (#2837) 2019-02-25 11:10:08 -08:00
Paulus Schoutsen 220fec6dc9 Initial commit (#2833) 2019-02-23 20:43:18 -08:00
Paulus Schoutsen 534b18ee30 Convert config flow to Lit/TS (#2814)
* Convert config flow to Lit/TS

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Add missing import

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments
2019-02-23 20:35:11 -08:00
Jason Hu e406a50b50 Relaod lovelace config if language changed (#2805) 2019-02-23 13:39:14 -08:00
yosilevy b764e87a00 Force LTR on error popup in dev-info panel (#2834) 2019-02-23 13:30:58 -08:00
yosilevy b7f62c5822 Fix after conversion to Lit (#2835) 2019-02-23 13:30:32 -08:00
yosilevy dede819a12 Removed toast (entities turn on/off and OK service calls) (#2822)
* Removed toast when entities turn on/off and services are SUCCESSFULLY called. Still will show on service error.

* Removed unused import

* Removed translations
2019-02-23 11:28:31 -06:00
Yosi Levy 083f0d16ef Initial commit 2019-02-23 17:18:57 +02:00
Paulus Schoutsen c7500a504d Remove duplicate file 2019-02-22 22:31:39 -08:00
yosilevy 3348405518 Link updates following markdown removal (#2813) 2019-02-22 20:40:21 -08:00
yosilevy 70b2ff3365 Fixed arrow in sub-page to use new arrows and fixed new button icon issues (#2807)
* Fixed arrow in sub-page to use new arrows and fixed new button icon placement problem

* Changed icon to text + added localization
2019-02-22 20:39:39 -08:00
Ian Richardson a259a12eab 🧹 cleanup elements (#2820)
* 🧹 cleanup elements

* lint
2019-02-22 20:37:27 -08:00
Paulus Schoutsen 979025539e Show person as badges (#2823) 2019-02-22 20:30:12 -06:00
Ian Richardson 6da311078a Convert input-number to Lit/TS (#2792)
* Convert input-number to Lit/TS

Should I worry about width for the state display with slider?

* address review comments

* clientWidth not currently working
* unsure about the typing of _InputElement

* remove unused import

* get clientwidth

* added comment
2019-02-22 12:08:18 -08:00
Paulus Schoutsen 7d1991ac78 Update translations 2019-02-21 16:50:15 -08:00
Paulus Schoutsen 2c2199fb84 Merge pull request #2810 from home-assistant/dev
20190220.0
2019-02-20 07:46:42 -08:00
Paulus Schoutsen e12da05d4e Bumped version to 20190220.0 2019-02-20 07:45:28 -08:00
Paulus Schoutsen 25d10cf092 Update translations 2019-02-20 07:45:12 -08:00
Paulus Schoutsen 1cdaebd92f Add an event subscribe card (#2804) 2019-02-19 19:33:55 -08:00
Jason Hu f5d3f1c042 Update windy.com widget used in arsaboo demo (#2803) 2019-02-19 14:51:58 -08:00
Paulus Schoutsen 4073238103 RTL arrow components (#2750)
* New arrow and chevron next+prev components

* New component files

* Refactor

* Updated super + commets

* Fix ha-style
2019-02-19 13:54:02 -08:00
Diogo Gomes 513eaea4f4 Added suppression info (#2790)
* added suppression info

* added to type
2019-02-19 13:53:50 -08:00
Yosi Levy b4ac3ddfbd Merge branch 'RTL-arrow-components' of https://github.com/yosilevy/home-assistant-polymer into RTL-arrow-components 2019-02-19 20:18:40 +02:00
Yosi Levy 0a269c9e26 Fix ha-style 2019-02-19 20:17:41 +02:00
Paulus Schoutsen 1f2371641e Merge pull request #2802 from home-assistant/dev
20190219.0
2019-02-19 10:14:00 -08:00
yosilevy 8b582f3fcf Merge branch 'dev' into RTL-arrow-components 2019-02-19 20:07:36 +02:00
yosilevy 1afb8f109e Localization updates (#2767)
* Label localization

* Added various missing localization labels + paper-fab RTL location fix (was totally gone behind app-drawer)

* Removed ha-markdown from all translations. Refactored links to separate anchors.
2019-02-19 10:04:33 -08:00
Yosi Levy 5824e0b706 Merge branch 'dev' of https://github.com/home-assistant/home-assistant-polymer into RTL-arrow-components 2019-02-19 20:01:30 +02:00
Paulus Schoutsen 97deed9299 Bumped version to 20190219.0 2019-02-19 09:22:15 -08:00
Paulus Schoutsen 9efcca002d Update translations 2019-02-19 09:22:12 -08:00
Thomas Lovén 7904483272 Register closeEditor as property of hui-editor (#2797)
* Register closeEditor as property of hui-editor

* Belt and suspenders

* Update hui-editor.ts
2019-02-19 09:20:21 -08:00
yosilevy 8a9594d918 Fix missing focus on editor when dialog loaded (#2799) 2019-02-19 09:12:05 -08:00
Timmo 90c09e967a 🔨 Make edit card only close with cancel or save (#2798) 2019-02-19 09:10:58 -08:00
Timmo 5ba1cc5075 🔥 Fixes entity-button icon color (#2796) 2019-02-19 09:09:44 -08:00
Paulus Schoutsen 12064a086b Fix attribute-prop mapping (#2794) 2019-02-19 09:09:07 -08:00
Ian Richardson 32d0e8bf1d less broken thermostat-card (#2793)
* Update hui-thermostat-card.ts

* made light and thermo more consistent
2019-02-18 22:16:18 -08:00
shbatm 79a5947587 Add missing localization for Fan Mode in Climate More Info (#2716)
* Add missing localization for Fan Mode in Climate More Info

* Separate Climate Fan Mode from Operation Mode

* Separated out climate.fan_mode into state_attributess

Separated out climate.fan_mode into state_attributess

* Fix bad merge and update localizeFanMode funtion.
2019-02-18 21:47:15 -08:00
Paulus Schoutsen c8cda3c817 Add person icon (#2789) 2019-02-18 18:41:56 -08:00
Paulus Schoutsen 197cf0f8cc Merge pull request #2787 from home-assistant/dev
20190218.0
2019-02-18 13:16:19 -08:00
Paulus Schoutsen 392af26503 Bumped version to 20190218.0 2019-02-18 13:14:20 -08:00
Paulus Schoutsen 41343c9774 Update translations 2019-02-18 13:14:14 -08:00
Ian Richardson 4afce7600b Convert timer-row to TS/Lit (#2743)
* Convert timer-row to TS/Lit

* added translations

* cleanup

* address review comments and fix interval

* lint

* address review comments

* address review comments

* address review comments
2019-02-18 13:12:40 -08:00
Paulus Schoutsen e4b4a94a5f Convert notification-button to Lit/TS and add badge (#2732)
* Convert notification-button to Lit/TS and add badge

* review comments

* address review comments

* css is dumb

* Update package.json

* address review comments

* lint

* address review comments
2019-02-17 22:49:24 -08:00
Ian Richardson 3db79607b7 Cleanup remaining entity not-found warnings (#2779) 2019-02-17 22:45:49 -08:00
Ian Richardson 2ada32be02 Cleanup mwc-button css (#2780)
``font-weight: 500;`
`color: var(--primary-color);`
are not necessary to specify
2019-02-17 22:44:01 -08:00
Ian Richardson a4ec8719f9 warning when light unavilable (#2771)
* error-card when light unavilable

* single warning element for all

* address review comments

* address review comments
2019-02-17 20:43:46 -08:00
Ian Richardson 5e6b28d965 address review comments 2019-02-17 22:17:45 -06:00
Ian Richardson 7d8f790708 fix for thermostat reporting null target temp (#2730)
* fix for thermostat reporting null target temp

* address review comments
2019-02-17 20:00:21 -08:00
Jason Hu b6b224be77 Fix user initial in sidebar (#2777) 2019-02-17 10:48:03 -08:00
Paulus Schoutsen 3b008b6359 Revoke old camera image after new one has loaded (#2772) 2019-02-17 09:06:50 -08:00
Jason Hu da80bfa3c7 Change recommend VSCode TSLint plugin to offical supported one (#2775) 2019-02-16 23:35:10 -08:00
Yosi Levy fcd06a9000 Updated super + commets 2019-02-16 22:28:46 +02:00
Paulus Schoutsen 762908207f Merge pull request #2769 from home-assistant/dev
20190216.0
2019-02-16 11:59:34 -08:00
Paulus Schoutsen b40b5b95f1 Bumped version to 20190216.0 2019-02-16 11:59:01 -08:00
Paulus Schoutsen fe176f2752 Update translations 2019-02-16 11:58:54 -08:00
Paulus Schoutsen c7796e9557 Allow picking users (#2768)
* Allow picking users

* Update ha-user-badge.ts
2019-02-16 11:58:07 -08:00
Ian Richardson 679457e36a lint 2019-02-16 13:57:39 -06:00
Leonardo Merza 2d3d4db4dd centered loading for system health and logs (#2759) 2019-02-16 11:54:57 -08:00
MatthewFlamm f127bbc64d standardize more-info-weather and add hourly/daily (#2766) 2019-02-16 11:54:14 -08:00
Ian Richardson bdaf96b114 address review comments 2019-02-16 13:31:41 -06:00
Yosi Levy ad55bae212 Refactor 2019-02-15 21:07:42 +02:00
Paulus Schoutsen ea8958adae Merge pull request #2758 from home-assistant/dev
20190215.0
2019-02-15 09:57:28 -08:00
Paulus Schoutsen e7b664a2ff Bumped version to 20190215.0 2019-02-15 09:47:46 -08:00
Paulus Schoutsen 541d1a5380 Update translations 2019-02-15 09:47:30 -08:00
Paulus Schoutsen ac179f5b45 Unused entities to respect tap/hold action (#2754) 2019-02-15 09:46:32 -08:00
Paulus Schoutsen 34f36c6179 Update package.json 2019-02-15 08:49:48 -08:00
Ian Richardson 56c1920cc1 css is dumb 2019-02-14 23:18:21 -06:00
Ian Richardson 456880c7cf address review comments 2019-02-14 23:18:20 -06:00
Ian Richardson 08222dfbec review comments 2019-02-14 23:18:19 -06:00
Ian Richardson e8d84e8ba5 Convert notification-button to Lit/TS and add badge 2019-02-14 23:18:18 -06:00
Paulus Schoutsen c570ce9720 Update translations 2019-02-14 19:09:21 -08:00
Paulus Schoutsen f8b66a78fa Fix alarm panel look (#2753) 2019-02-14 15:53:42 -08:00
Paulus Schoutsen e2fc98526b Fix header padding for history graph card (#2748) 2019-02-14 12:34:53 -08:00
Paulus Schoutsen 856a393531 Fix tight space (#2749) 2019-02-14 12:34:45 -08:00
David F. Mulcahey 8bf2a2f8db display values as hex so that they match the zigbee spec docs (#2751) 2019-02-14 12:34:32 -08:00
Bram Kragten 3f6bbffcd6 Fix styling of raw config save button (#2752) 2019-02-14 12:22:23 -08:00
Paulus Schoutsen 4d5087bd8d Update translations 2019-02-14 12:11:17 -08:00
Paulus Schoutsen f9663143a6 Merge pull request #2747 from home-assistant/dev
20190213.0
2019-02-13 15:13:04 -08:00
Paulus Schoutsen c4aac72e68 Bumped version to 20190213.0 2019-02-13 15:04:51 -08:00
Paulus Schoutsen f4048bf4ba Update translations 2019-02-13 15:04:46 -08:00
Bram Kragten b384d17fd3 YAML editor fixes (#2737)
* YAML editor fixes

* Fix auto height in dialog

* remove height from paper-dialog-buttons

* wait for next paint instead of fixed time

* resize again after codemirror is updated

* afternextrender merge
2019-02-13 15:03:52 -08:00
Bram Kragten 2ae30ac024 Position delete/move menu better for mobile (#2738) 2019-02-13 12:32:32 -08:00
Yosi Levy 9b9b2f0710 New component files 2019-02-13 19:58:28 +00:00
Yosi Levy 5d58dfab3e New arrow and chevron next+prev components 2019-02-13 19:56:12 +00:00
Ian Richardson 38ba6058be Proper fix to alarm-control-panel-card (#2741) 2019-02-13 11:22:39 -08:00
kethoth 0f779dd7f8 Apply text color to system information text (#2739)
Apply primary-text-color to content so the system information text can be themed.  Currently text remains black, which is unreadable on dark themes.
2019-02-13 11:22:19 -08:00
Thomas Lovén 3ca842187a Convert ha-card to LitElement and TypeScript (#2701)
* Convert ha-card to LitElement and TypeScript

* CSS away the header instead

* Travis fixes

* Remove duplicate styles
2019-02-13 11:16:01 -08:00
Thomas Lovén e36dada843 Tweak some file permissions that were odd (#2745) 2019-02-13 07:32:52 -08:00
Paulus Schoutsen 1b8c567fd7 Use mwc-button instead of paper-button (#2744)
* Convert from paper-button to mwc-button

* Fixes

* Bye paper-button

* Fixes

* Final fixes

* Fix rebase conversion
2019-02-12 23:08:29 -08:00
Paulus Schoutsen e1c2cf770a Convert lit ts layout (#2742)
* Convert layout to TS/Lit

* Further cleanup

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Simplify error screen
2019-02-12 22:41:36 -08:00
Paulus Schoutsen ab6cd578e8 Add lit-plugin to recommendations (#2735) 2019-02-12 13:24:00 -08:00
Paulus Schoutsen 4058a0c8d0 Merge pull request #2736 from home-assistant/dev
20190212.0
2019-02-12 12:04:48 -08:00
Paulus Schoutsen 421e5bb169 Bumped version to 20190212.0 2019-02-12 11:56:37 -08:00
Paulus Schoutsen 6faea73c9f Update translations 2019-02-12 11:56:29 -08:00
David F. Mulcahey 3a644621fe Make ZHA config panel device oriented (#2722)
* change to be zha device centric instead of entity centric

* clusters by device

* device centric API

* lit ts and cleanup

* type

* review comments and fix remove

* fix set attribute
2019-02-12 11:55:42 -08:00
Paulus Schoutsen abbfea0b6a Person: Pick device tracker (#2726)
* Allow picking devices to track

* Tweak translation

* Update translation
2019-02-12 11:52:30 -08:00
Ian Richardson 2f2cdad16b static styles, decorators and width fix (#2727)
Not sure how the width got messed up, perhaps changes to ha-card?
2019-02-12 11:52:02 -08:00
Ian Richardson aae3c26a64 render remote entity-row as a toggle (#2731) 2019-02-12 09:43:59 -08:00
Ian Richardson 0f680bcfd6 Fix typo in alarm editor (#2729)
* Fix typo in alarm editor

* tacking on decorators, styles and card size fix
2019-02-12 09:40:39 -08:00
Paulus Schoutsen f71612d6cf Update translations 2019-02-11 23:40:15 -08:00
aquarium 5cc23ab084 Update Store Auth card to use primary-text-color (#2725) 2019-02-11 14:45:05 -08:00
yosilevy 9d6c0773c5 Rtl configuration fixes (#2720)
* RTL fixes to config pages

* Disconnect toast RTL

* RTL user editor - force LTR (only the user box - not the action box)

* Many RTL fixes in configuration. Keeping scrollbar in RTL so it's not obstructed. Added missing localization.

* Update disconnect-toast-mixin.ts
2019-02-11 14:40:09 -08:00
yosilevy 44dca3b86d Make yaml editor scrollabel in RTL mode (#2706)
* Make yaml editor scrollabel in RTL mode

* Refactor

* Refactor scopped CSS

* Refactor

* Fixes

* Refactor
2019-02-11 14:18:17 -08:00
Paulus Schoutsen 310b81de04 Convert HUI-IMAGE to TypeScript/Lit (#2713)
* Fix gallery demos

* Convert HUI-IMAGE to TypeScript/Lit

* Clean up
2019-02-11 14:14:29 -08:00
Paulus Schoutsen f23258eb8c Convert state badge to TypeScript (#2712) 2019-02-09 11:55:46 -08:00
Paulus Schoutsen 039bc587cc Add decorators (#2711)
* Add decorators

* Lint
2019-02-09 10:47:39 -08:00
Paulus Schoutsen 46e1139946 Add MVP person editor (#2703)
* Add MVP person editor

* Better highlight the config.yaml people

* Add note
2019-02-09 10:41:45 -08:00
Bram Kragten 8938ad8f8d Add ctrl/cmd +s support back to editor (#2694)
* Add ctrl/cmd +s support back to editor

* Update hui-yaml-editor.ts
2019-02-07 19:33:53 -08:00
yosilevy 102cb06d28 RTL support for arrows in scrolable tabs (#2696)
* RTL support for arrows in scrolable tabs

* Refactor
2019-02-07 19:32:32 -08:00
Paulus Schoutsen 17d0ae003a Lint 2019-02-07 17:16:39 -08:00
Thomas Lovén 7a16961387 Add background and border-radius to themeable options for ha-card (#2700)
* Add background and border-radius to themeable options for ha-card

* Change variable names
2019-02-07 13:30:02 -08:00
Robert Schindler d3bdbce0d0 Added strings for command line auth provider (#2561)
* Added strings for command line auth provider

Regards home-assistant/home-assistant#19985

* Reuse existing translation keys for new command_line auth provider
2019-02-06 16:38:31 -08:00
Paulus Schoutsen 504e4987b7 Fix event action in automation editor (#2686)
* Fix event action in automation editor

* Fix webpack resolve

* Update ha-automation-editor.js
2019-02-06 11:13:00 -08:00
Paulus Schoutsen f00de454d1 Convert automation editor to Lit (#2687)
* Convert automation editor to Lit

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-02-06 11:01:15 -08:00
Paulus Schoutsen ce35416284 Migrate more-info-content to UpdatingElement (#2693) 2019-02-06 11:00:17 -08:00
Paulus Schoutsen 7773589e2c Update Lit (#2692) 2019-02-06 10:59:47 -08:00
Paulus Schoutsen 5d900f9ced Split unused entities by domain (#2671) 2019-02-06 10:57:53 -08:00
Paulus Schoutsen 7a344c865f Fix gauge card gallery demo (#2688) 2019-02-05 22:13:27 -08:00
yosilevy bd0bc2047d hui editor arrows RTL support (#2673)
* hui editor arrows RTL support

* Refactor

* Refactor

* Refactor
2019-02-05 13:05:19 -08:00
Paulus Schoutsen 2482d78a06 Optimize demo (#2681) 2019-02-05 07:28:23 -08:00
yosilevy 18fc0d0342 Added forgotten label localization (#2672) 2019-02-03 21:24:29 -08:00
Paulus Schoutsen 024ce5c379 Merge pull request #2670 from home-assistant/dev
20190203.0
2019-02-03 11:29:09 -08:00
Paulus Schoutsen f74fe5718e Bumped version to 20190203.0 2019-02-03 11:27:23 -08:00
Paulus Schoutsen ef395d4c9f Update translations 2019-02-03 11:27:12 -08:00
Paulus Schoutsen 5d42e4f68d Fix more info on light/thermostat pushing content (#2669) 2019-02-03 11:19:14 -08:00
Paulus Schoutsen acce6f0b2f Fix sidebar issues (#2667) 2019-02-03 10:58:57 -08:00
Paulus Schoutsen dadb5f92ee Fix menu button on dev-info page (#2663) 2019-02-02 22:07:02 -08:00
Paulus Schoutsen 69aff1e204 Don't include some UI elements from base bundle (#2665) 2019-02-02 22:06:53 -08:00
yosilevy 810fd802b5 Lovelace editor - flex spacing (#2666)
* Converted lovelace editor to flex spacing

* Removed margin-top leftover
2019-02-02 22:06:36 -08:00
Paulus Schoutsen cf1b9e5067 Merge pull request #2661 from home-assistant/dev
20190202.0
2019-02-02 14:00:28 -08:00
Paulus Schoutsen 83aaf4699c Bumped version to 20190202.0 2019-02-02 13:49:31 -08:00
Paulus Schoutsen 72aa98fe5c Update translations 2019-02-02 13:49:25 -08:00
yosilevy 86b353e627 History+logbook positioning update + RTL fixes + label refactor (#2659) 2019-02-02 13:36:33 -08:00
Paulus Schoutsen 79183bb6ea Cleanups (#2658)
* Import voice dialog only when needed

* Import ha-sidebar when we have first painted the page.

* Add css on LitElement for custom cards

* Import polyfill on first update

* Cleanup of imports

* TS conversion more info mixin

* Migrate auth mixin to TS

* Lint
2019-02-02 13:23:48 -08:00
Paulus Schoutsen 4921686bdf Hash translation files (#2652)
* Hash translation files

* Fix rebuild while develop runs
2019-02-02 09:42:22 -08:00
yosilevy a5bdf096dc Marked Arabic as RTL + added a bunch of lovelace menu entries to label files (#2650)
* Marked Arabic as RTL + added a bunch of lovelace menu entries to label files

* Refactor keys - added menus
2019-02-01 21:33:26 -08:00
Paulus Schoutsen bfee69e7ff Merge pull request #2649 from home-assistant/dev
20190201.0
2019-02-01 12:26:33 -08:00
Paulus Schoutsen db53d37493 Bumped version to 20190201.0 2019-02-01 12:25:39 -08:00
Paulus Schoutsen c294124b8d Update translations 2019-02-01 12:25:27 -08:00
Paulus Schoutsen 2afc8607c6 Fix RTL issues (#2648)
* Convert home-assistant-main to Lit/TS

* different approach

* LRT RTL

* Lint

* RTL fix for generic entity row

* Remove fetching from selectedLanguage

* RTL the RTL languages in the picker

* Fix drawer adjust to RTL
2019-02-01 12:22:11 -08:00
yosilevy e2ff51f425 RTL fixes for raw config editor and card editor -> card preview (#2532)
* RTL fixes for raw config editor and card editor -> card preview

* Fixed missing line break

* Fixed weird vscode line break problems

* Refactored to LitElement + addressed updating RTL only when needed

* Refactor

* Fixed forgotten import

* Reverted to HTMLElement + added RTL check in set hass

* Added conditional update
2019-02-01 09:53:08 -08:00
Paulus Schoutsen 25a579f7ed Fixes (#2643)
* Sort areas alphabetically in device card

* Fix background color of registry editors when using themes

* Fix area/entity reg dialog being disabled after deletion

* Better fix card background

* Warn user when system health component not loaded
2019-02-01 09:40:57 -08:00
yosilevy ecd33fd93c RTL toast fix (#2646)
* RTL toast fix

* Removed reflectToAttribute
2019-02-01 09:40:45 -08:00
Paulus Schoutsen 960707b804 Merge pull request #2640 from home-assistant/dev
20190130.1
2019-01-30 16:48:28 -08:00
Paulus Schoutsen 4cd3b683a7 Minify images Arsaboo (#2641) 2019-01-30 16:39:32 -08:00
Paulus Schoutsen d0b507561d Bump frontend to 20190130.1 2019-01-30 16:26:37 -08:00
Paulus Schoutsen d8d3149558 Bumped version to 20190130.0 2019-01-30 16:19:05 -08:00
Paulus Schoutsen 41b086cd3c Update translations 2019-01-30 16:19:00 -08:00
yosilevy 6fc20450b4 Force LTR on conf validation message so errors are readable also in RTL language (#2570) 2019-01-30 16:14:56 -08:00
Paulus Schoutsen c00930f45e Convert entity filter to TS (#2638)
* Convert entity filter to TS

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:14:09 -08:00
Paulus Schoutsen 77935b7c7a Convert ha-entity-toggle to Lit/TS (#2639)
* Convert ha-entity-toggle to Lit/TS

* Update src/components/entity/ha-entity-toggle.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
2019-01-30 16:10:50 -08:00
Ian Richardson 03f7a23540 panel toggle for view UI Editor (#2628) 2019-01-30 16:10:10 -08:00
Paulus Schoutsen f1f1623d2f Add Area Registry (#2631) 2019-01-30 14:08:04 -08:00
Paulus Schoutsen b86bfa0395 Add an empty state card (#2637)
* Add an empty state card

* Remove dev code

* Fix import
2019-01-30 14:07:55 -08:00
Paulus Schoutsen 75235ec544 Convert generic row to LitElement/TS (#2636) 2019-01-30 13:14:33 -08:00
Paulus Schoutsen 7cb2b743fa Add code editor to YAML editor (#2609)
* Add code editor to YAML editor

* Add code editor to raw config editor

* Remove hui-yaml-editor

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>

* Rename to hui-yaml-editor

* Lint and tab

* Fix empty editor

* Lint

* Use codemirror for comment and edit detection + some styling

* Add save action (ctrl+s/cmd+s) to card editor

* Move save to the instance

* Delete save for now

* Remove yaml-change event on init
2019-01-30 13:03:17 -08:00
Paulus Schoutsen 175693ba4e Allow editting entity registry (#2630)
* Allow editting entity registry

* Slight simplify

* Style fixes

* Correctly set submitting

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Fix invalid type

* Add config section to entity registry

* Trim

* Fix trimming
2019-01-30 13:02:41 -08:00
Bram Kragten c7d1417f48 Remove yaml-change event on init 2019-01-30 21:09:38 +01:00
Bram Kragten db92abad66 Delete save for now 2019-01-30 20:59:49 +01:00
David F. Mulcahey e42e59871e Use demo icons instead of mdi (#2623)
* generate demo icons

* replace tab icons and update build file

* review comments

* review comments

* update ignores

* cleanup
2019-01-30 11:42:09 -08:00
Ian Richardson f97b5c48d0 more-info for thermostat-card (#2598)
* more-info for thermostat-card

* soften icon
2019-01-30 11:35:41 -08:00
Paulus Schoutsen f22510fd74 Add system health card (#2626) 2019-01-30 11:00:25 -08:00
Bram Kragten e789380126 Move save to the instance 2019-01-30 20:00:13 +01:00
Bram Kragten 9086051608 Fix icon view demo jimpower (#2634) 2019-01-30 10:54:03 -08:00
Ian Richardson a0f0d49f45 more-info icon for light-card (#2600)
* more-info icon for light-card

* soften icon
2019-01-30 10:02:12 -08:00
Thomas Lovén bc87e05e2d Fix weird spaces in jimpowers demo (#2622) 2019-01-30 09:57:47 -08:00
Malte Franken b0958f589b Support for geolocation trigger (#2617)
* initial working version of geolocation trigger

* removed unused code

* removed unused code and imports

* sources now localisable

* fixed source picker to not immediately show save button after loading automation

* labels

* removed unused code

* removed unused import

* transformed source dropdown to simple edit field
2019-01-30 09:56:39 -08:00
Bram Kragten b37eee56c0 Move views (#2610)
* A start, still buggy...

* Tests and move with view

* Lint
2019-01-30 09:55:44 -08:00
Bram Kragten 2ad27f7400 Fix thermostat with radius 0 (#2633)
* Fix thermostat with radius 0

* remove afterNextRender
2019-01-30 09:19:49 -08:00
Bram Kragten 95e9d6164d Add save action (ctrl+s/cmd+s) to card editor 2019-01-30 12:50:57 +01:00
Bram Kragten 43bc9abb46 Use codemirror for comment and edit detection + some styling 2019-01-30 12:24:13 +01:00
Paulus Schoutsen ab816ad529 Add system health card 2019-01-29 16:32:34 -08:00
Paulus Schoutsen c964ea30e0 Refactor dev-info page (#2624)
* Refactor dev-info page

* What

* Fix custom UI check

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments

* TSC

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* TSC
2019-01-29 15:34:49 -08:00
Tommy Jonsson 73b500db64 html5 notifications add VAPID support (#2560)
* html5 notifications add VAPID support

* fix travis error

* replace httpapi with websocketapi
2019-01-29 14:49:41 -08:00
Bram Kragten 633fc1372f Lint 2019-01-29 18:46:40 +01:00
Bram Kragten dedb36cecf Fix empty editor 2019-01-29 18:03:34 +01:00
Bram Kragten 13aa0568a6 Lint and tab 2019-01-29 17:59:42 +01:00
Paulus Schoutsen a090b291aa Fix entity names in notification (#2612) 2019-01-28 19:36:11 -08:00
David F. Mulcahey 30ab056aa4 add help text for reconfigure node (#2616) 2019-01-28 19:33:22 -08:00
Paulus Schoutsen 5a797a6dec Fix localize lite mixin types (#2613) 2019-01-28 15:43:08 -08:00
Bram Kragten d76ffd343e Rename to hui-yaml-editor 2019-01-28 20:41:09 +01:00
Paulus Schoutsen 20ecfffb9c Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:51 +01:00
Paulus Schoutsen d2bfd5ce62 Update src/panels/lovelace/components/hui-code-editor.ts
Co-Authored-By: bramkragten <mail@bramkragten.nl>
2019-01-28 19:30:23 +01:00
Zadkiel 0cdb96f917 Fix Google Assistant skill link (#2608) 2019-01-28 10:01:50 -08:00
yosilevy fd4ede39ba RTL fix for obstructed notification drawer (#2584) 2019-01-28 09:57:58 -08:00
Paulus Schoutsen fa3889b549 Fix call to localize in mixin 2019-01-28 09:29:45 -08:00
Paulus Schoutsen d71d5aa855 Convert ha-sidebar to TS/Lit (#2605) 2019-01-28 09:27:16 -08:00
Bram Kragten 644af4d009 Remove hui-yaml-editor 2019-01-28 17:07:02 +01:00
Bram Kragten 9f4ae5d932 Add code editor to raw config editor 2019-01-28 16:35:55 +01:00
Bram Kragten 7a8c9d7c12 Add code editor to YAML editor 2019-01-28 16:03:21 +01:00
Paulus Schoutsen 89630a5c7f Convert ha-sidebar to TS/Lit 2019-01-27 23:23:07 -08:00
Paulus Schoutsen 13adee09da Fix demo routing (#2599) 2019-01-27 16:55:47 -08:00
Paulus Schoutsen c3f473c3e7 Remove Lit localize mixin (#2597)
* Remove some localize mixins form Lit Elements

* Remove litLocalizeMixin

* Revert unwanted changes
2019-01-27 16:52:15 -08:00
Paulus Schoutsen 0a09eabce3 Simplify localize (#2593)
* Simplify localize

* Delete unused file
2019-01-27 15:19:59 -08:00
Bram Kragten 3e1c22edcd Revert ""skip" is confusing for a lot of users (#2589)" (#2595)
* Revert ""skip" is confusing for a lot of users (#2589)"

This reverts commit ccb12996f8.

* And the agreed name
2019-01-27 22:37:03 +01:00
Ian Richardson ccb12996f8 "skip" is confusing for a lot of users (#2589)
Hopefully this will clear up the ambiguity for users.
2019-01-27 20:58:13 +01:00
Paulus Schoutsen d6887758a9 Convert <home-assistant> to Lit/TS (#2586)
* Convert home-assistant element to Lit/TS

* Fix disconnect toast

* Lint
2019-01-27 10:41:35 -08:00
Paulus Schoutsen 9299d548ba Convert common dir to TS (#2580)
* Convert common dir to TS

* Lint

* Update setup-leaflet-map.ts
2019-01-27 10:40:46 -08:00
Alec Rust 7dda98f139 Improve "Full Log" button on Dev Info panel (#2590) 2019-01-27 10:14:38 -08:00
Paulus Schoutsen 6b8e90ce67 Convert ha-init-page to lit/ts (#2583) 2019-01-26 22:51:07 -08:00
Paulus Schoutsen c20fae289c Update fecha (#2579) 2019-01-26 20:24:24 -08:00
Paulus Schoutsen 8db111c2fb Update lint tools (#2576)
* Update lint

* Prettier Hass.io

* Update prettier
2019-01-26 19:34:07 -08:00
Paulus Schoutsen 5a6d537d43 Generalize minifier (#2577) 2019-01-26 18:55:32 -08:00
Paulus Schoutsen 1ffeace8f9 Upgrade build tools (#2575)
* Upgrade webpack

* Upgrade babel

* Upgrade build tools

* Add missing dependency
2019-01-26 15:05:01 -08:00
Paulus Schoutsen 7bf8ea9d0a Upgrade MDI/svg (#2573)
* Upgrade MDI/svg

* Changed icon names
2019-01-26 15:04:33 -08:00
Paulus Schoutsen 85e900bf68 Update marked to 0.6.0 (#2574) 2019-01-26 15:04:21 -08:00
Paulus Schoutsen 6f9b7a1f60 Update lit-element to rc5 (#2572) 2019-01-26 15:02:50 -08:00
Bram Kragten cad4fa408e it was right... (#2564) 2019-01-25 17:33:36 -08:00
Bram Kragten dc334844ed add history-graph to generated mode (#2563) 2019-01-25 08:53:38 -08:00
Bram Kragten 4e86cf01b8 Add group to domains that can be toggled (#2555)
* Add group to domains that can be toggled

* Group should call homeassistant.turn_on/turn_off

* entity id is not a attribute

* Oops...
2019-01-25 07:39:33 -08:00
Paulus Schoutsen 2bfd7ff33b Use columns in edit card on wide screens (#2551) 2019-01-24 12:33:09 -08:00
Adrian Campos b1d5517864 Fixed typo: "unsafed" -> "unsaved" (#2556) 2019-01-24 11:57:39 -08:00
David F. Mulcahey 334c4fe90f static styles (#2533) 2019-01-23 19:47:20 -08:00
Paulus Schoutsen 77f6016701 Merge pull request #2553 from home-assistant/dev
Some more demo fixes
2019-01-23 16:36:12 -08:00
Paulus Schoutsen a2816800e8 Merge pull request #2552 from home-assistant/demo-fixess
Demo fixess
2019-01-23 16:35:37 -08:00
Paulus Schoutsen e3d32c9dd0 Dont' jump media player on initial load 2019-01-23 16:05:36 -08:00
Paulus Schoutsen 37b2154638 Allow demo config to be tested from other device on network 2019-01-23 15:52:07 -08:00
Paulus Schoutsen 28d3f445f6 Align theme color 2019-01-23 15:51:56 -08:00
Bram Kragten 45e50ea948 correct patio cam (#2550) 2019-01-23 13:06:19 -08:00
Paulus Schoutsen f3eaba4b23 Merge pull request #2548 from home-assistant/dev
Fix action editor (#2547)
2019-01-23 12:45:20 -08:00
Bram Kragten 96f7f842cd Fix action editor (#2547) 2019-01-23 12:39:58 -08:00
Paulus Schoutsen bc6debc6c9 Merge pull request #2546 from home-assistant/dev
Update demo
2019-01-23 12:10:20 -08:00
Paulus Schoutsen a9df5ea6a9 Do not show new service worker toast (#2545) 2019-01-23 12:09:45 -08:00
Paulus Schoutsen c972d039bc Merge pull request #2544 from home-assistant/dev
Hopefully this will work (#2543)
2019-01-23 11:24:00 -08:00
Paulus Schoutsen d130471a99 Fix ars padding 2019-01-23 11:22:30 -08:00
Paulus Schoutsen 52e31648bf Update git attr 2019-01-23 11:06:24 -08:00
Bram Kragten 40d12fa870 Hopefully this will work (#2543) 2019-01-23 19:56:29 +01:00
Paulus Schoutsen d5728579e0 Merge pull request #2542 from home-assistant/dev
Demo update
2019-01-23 10:36:22 -08:00
Paulus Schoutsen 257ff7707b Fix app skeleton in demo color 2019-01-23 10:34:57 -08:00
Paulus Schoutsen b8851a7f3e Add SW, GA, Fav Icon (#2541)
* Add SW, GA, Fav Icon

* Add skeleton"
2019-01-23 10:26:26 -08:00
Bram Kragten a4680feb92 Add view and camera (#2540) 2019-01-23 10:26:19 -08:00
Paulus Schoutsen ca02080cf1 Add missing style (#2538) 2019-01-23 07:40:02 -08:00
kernehed 08824b5796 Update entities.ts (#2537)
removed password and changed the domain name
2019-01-23 07:21:10 -08:00
Paulus Schoutsen 99ded45bb0 Merge pull request #2535 from home-assistant/dev
Demo update
2019-01-22 15:01:01 -08:00
Bram Kragten bc8cc32445 Add Arsaboo demo (#2534)
* Add Arsaboo demo

* Resize images

* Fixes

* Mock more things

* Simplify
2019-01-22 14:59:56 -08:00
Paulus Schoutsen 5cc75c294e Fix names in demo Isa 2019-01-22 12:58:29 -08:00
Bram Kragten 035e6752eb Add lit-html plugin to vs code recommendations (#2531) 2019-01-22 08:02:06 -08:00
Paulus Schoutsen c1913799f2 Merge pull request #2530 from home-assistant/dev
20190121.1
2019-01-21 21:19:44 -08:00
Paulus Schoutsen ceb86df0fa Bumped version to 20190121.1 2019-01-21 21:19:27 -08:00
Paulus Schoutsen 24b0eb8ce4 More demo stubs (#2529)
* More demo stubs

* History stub actually generates mocks

* More tweaks

* Add more entities
2019-01-21 21:18:01 -08:00
Paulus Schoutsen 547f829f5b Fix panels with subpaths (#2528) 2019-01-21 21:16:34 -08:00
Paulus Schoutsen 16c9303ae9 Merge pull request #2527 from home-assistant/dev
20190121.0
2019-01-21 09:19:12 -08:00
Paulus Schoutsen 6d329bdd1f Bumped version to 20190121.0 2019-01-21 09:18:41 -08:00
Paulus Schoutsen 1c6f7d32cf Update translations 2019-01-21 09:18:36 -08:00
Bram Kragten 9a86b06092 No idea, but it seems to work? (#2526) 2019-01-21 09:17:51 -08:00
Paulus Schoutsen 0e1eaa18df Convert Panel Resolver to Lit/TS (#2520)
* TS Panel Resolver

* Clean ups
2019-01-21 00:24:20 -08:00
Paulus Schoutsen ad98534195 Add plant status card (#2521) 2019-01-21 00:23:58 -08:00
Paulus Schoutsen b261e779e5 More tweaks (#2519)
* More tweaks

* Update webpack.config.js
2019-01-20 23:57:43 -08:00
Paulus Schoutsen f9e97c0577 Merge branch 'master' into dev 2019-01-20 20:19:22 -08:00
Paulus Schoutsen 5276db5d23 Add themes to demos (#2518) 2019-01-20 20:19:01 -08:00
Paulus Schoutsen 6bf954ccb2 Merge pull request #2517 from home-assistant/dev
20190120.0
2019-01-20 16:20:37 -08:00
Paulus Schoutsen 26dbef8d4c Bumped version to 20190120.0 2019-01-20 16:19:40 -08:00
Paulus Schoutsen 1d1e85e1d7 Update translations 2019-01-20 16:19:37 -08:00
Bram Kragten 755a3d5cf1 Edit dialogs for mobile (#2513)
* Edit dialogs for mobile

* unused
2019-01-20 16:18:00 -08:00
Bram Kragten e9c5011a6d Remove ids from demo configs (#2515) 2019-01-20 16:16:29 -08:00
Paulus Schoutsen 871ee33229 Add teachingbirds demo (#2516)
* Add teachingbirds demo

* Remove some custom cards

* Lint
2019-01-20 16:15:53 -08:00
Paulus Schoutsen 3b66d58f91 Fix demo translations (#2511)
* Fix demo translations

* Comment out some more panels

* Fix reference
2019-01-20 11:24:39 -08:00
kernehed 69c10256ef Update entities.ts (#2510)
Forgot one translation.. Fixed now.
2019-01-20 10:38:15 -08:00
Bram Kragten 480b92c960 Make edit-dialog look ok on mobile (#2501)
* Make edit-dialog look ok on mobile

* Wide on wide screen

* Remove apply

* Remove variable, as it only used in one place...
2019-01-20 10:01:49 -08:00
kernehed 6098b433be Update entities.ts (#2508)
* Update entities.ts

Did some translations and change a few friendly names.

* Update entities.ts
2019-01-20 10:00:57 -08:00
kernehed d91bf4c2a9 Update lovelace.ts (#2509)
Did some translations
2019-01-20 10:00:27 -08:00
Paulus Schoutsen bad9369ce6 Update WC polyfills (#2505) 2019-01-20 09:59:59 -08:00
Paulus Schoutsen 3ba9189612 Upgrade Lit Element to RC3 (#2504) 2019-01-18 21:24:51 -08:00
Paulus Schoutsen bb71fe0bec Add demo (#2502)
* Add demo

* Fix stuff

* Lint

* Typescript and demo card

* More fixes

* Allow switching through configs

* Lint

* Lint2

* Add two demo configs

* Lint

* Lint
2019-01-18 21:24:32 -08:00
Tontze 65359aabe3 Update demo-hui-entity-button-card.ts (#2503)
Entity button change to correct format
2019-01-18 09:52:46 -08:00
yosilevy 233b646917 RTL fix for precipitation (#2495) 2019-01-17 11:07:46 -08:00
Bram Kragten 3263d84def Deep clone config (#2496) 2019-01-17 11:07:05 -08:00
Franck Nijhof faee6a7163 🎨 Optmizes image assets (#2499) 2019-01-17 11:06:29 -08:00
Paulus Schoutsen 00ad91af9a Merge pull request #2493 from home-assistant/dev
20190116.0
2019-01-16 16:13:01 -08:00
Paulus Schoutsen 4081fea5f2 Merge remote-tracking branch 'origin/master' into dev 2019-01-16 16:11:15 -08:00
Paulus Schoutsen 97f7da198c Bumped version to 20190116.0 2019-01-16 16:10:15 -08:00
Paulus Schoutsen f6be8153bb Update translations 2019-01-16 16:10:09 -08:00
Paulus Schoutsen d67e035198 Position thermostat correctly (#2492) 2019-01-16 16:09:29 -08:00
Thomas Lovén f7a67af71b Put geo_events on a map instead of an entities card. (#2489) 2019-01-16 14:01:49 -08:00
Thomas Lovén 41554ab14d Ignore weblinks that don't exist when converting groups to lovelace config (#2488)
* Ignore weblinks that don't exist when converting groups to lovelace config

* Simplify
2019-01-16 13:59:58 -08:00
Bram Kragten 1b2e052f05 Activate edit mode after taking control (#2486)
* Activate edit mode after taking control

* Move to take-control
2019-01-16 13:57:54 -08:00
Paulus Schoutsen 427f0f5e66 Update translations 2019-01-15 15:34:34 -08:00
Paulus Schoutsen 86502c5cd8 Bumped version to 20190115.0 2019-01-15 15:32:51 -08:00
Bram Kragten edf7485578 Fix getCardSize iFrame (#2487) 2019-01-15 15:16:37 -08:00
Bram Kragten 01c5b64c63 Climate entity row for water-heater (#2485)
* Add entity row climate for water-heater

* Update create-row-element.ts
2019-01-15 14:17:33 -08:00
Adam Mills 690188b4a3 Split time_pattern triggers from time trigger (#2413)
* Split interval triggers from time trigger

* Default smaller interval units to zero

* Rename interval to schedule

* Rename schedule trigger to time_pattern
2019-01-15 09:33:46 -08:00
yosilevy 42e60beb0d paper-slider RTL fix (#2476)
* paper-slider RTL fix

* CSS enclosed in ``

* Removed attr reflection and fixed style (forgot RTL reference)
2019-01-15 09:32:23 -08:00
Thomas Lovén 0ddc82601a Fix ll-rebuild only keeps the card that should be deleted (#2481)
* Fix ll-rebuild only keeps the card that should be deleted

* Do the same thing for stack cards. (Untested. Leeeeroyyyyy Jenkins)

* Copy then replace instead of mutating

* Use map
2019-01-15 09:30:33 -08:00
Paulus Schoutsen f943366ecd Honor group control hidden setting (#2478)
* Honor group control hidden setting

* Lint
2019-01-14 19:33:16 -08:00
Paulus Schoutsen 732237d4e1 Use static get styles to embed ha-style (#2479)
* Use static get styles

* Fix errors
2019-01-14 19:32:57 -08:00
Paulus Schoutsen d8d77d0238 Convert label badge to use static get styles (#2480) 2019-01-14 19:32:33 -08:00
Tommy Jonsson f98fff9ffd Skip opening url if an action was called (#2475) 2019-01-14 10:53:44 -08:00
Paulus Schoutsen 9565b5490b Update translations 2019-01-14 09:31:25 -08:00
Odin Hørthe Omdal 8b19ea8e87 Be specific on Danish-Norwegian translation name (#2468)
* Be specific on Danish-Norwegian translation name

* Update translationMetadata.json

* Alphabet
2019-01-14 09:31:06 -08:00
Paulus Schoutsen 2e6d79a60f Use right constant for alarm panel (#2471) 2019-01-14 07:46:09 -08:00
Paulus Schoutsen 07f624fd1c Used wrong config key and TS didn't raise (#2472) 2019-01-13 23:52:37 -08:00
Bram Kragten 3408392aea Style edit card button (#2466)
* Change style of edit card button

* remove margin 0
2019-01-13 14:53:33 -08:00
Bram Kragten 864f2619a2 Rebuild card instead of entire stack (#2467) 2019-01-13 14:49:11 -08:00
Paulus Schoutsen bd2c57169b Bumped version to 20190113.0 2019-01-13 09:37:17 -08:00
Paulus Schoutsen 8f1c75c57b Update translations 2019-01-13 09:37:11 -08:00
Paulus Schoutsen 1c86fbd52c Set preferred panel right away (#2465) 2019-01-13 09:31:33 -08:00
Bram Kragten 937a939907 Make Lovelace default (#2414)
* Set Lovelace as default

* Remove template

* Make link follow OPT_IN_PANEL
2019-01-13 09:30:25 -08:00
Paulus Schoutsen 7173b16ef3 Fix long press directive (#2464) 2019-01-13 09:15:09 -08:00
Bram Kragten d738f6e2f6 Rebuild just the card instead of entire view (#2452)
* Rebuild just the card instead of entire view

* Only rebuild card, not view
2019-01-12 23:34:03 -08:00
Paulus Schoutsen b0d32b5674 upgrade lit (#2458)
* upgrade lit

* Lint
2019-01-12 23:32:53 -08:00
Paulus Schoutsen 0f53b7c832 migrate long press to paper ripple (#2457)
* migrate long press to paper ripple

* Add comment
2019-01-12 15:46:59 -08:00
Bram Kragten 668d4e82ba Fix gauge (#2456) 2019-01-12 14:44:34 -08:00
David F. Mulcahey 963bdcc53c address outstanding items (#2454) 2019-01-12 14:38:26 -08:00
Tommy Jonsson d34dada9d8 Allow push notifications to suggest its device name (#2446)
* Allow push notifications to suggest its device name

* Lint
2019-01-11 20:35:10 -08:00
yosilevy 5ae599b1b2 RTL support for history timeline (#2444)
* RTL support in history timeline

* RTL support in history timeline
2019-01-11 14:53:23 -08:00
Bram Kragten ebbd308be6 Thermostat: check if we are attached before getting clientWidth (#2447)
* We need to be attached to get the cleintWidth

* Use isConnected and set _loaded
2019-01-11 12:09:53 -08:00
David F. Mulcahey 6d43c9e86a Expand ZHA configuration panel (#2421)
* node panel

* cleanup

* add entities

* entities split into own element

* cleanup

* add clusters

* cleanup and attributes and commands

* start cluster attributes

* finish cluster attribute interaction

* cluster command panel

* scope cleanup

* fix parseInt

* guards and template cleanup

* cleanup

* cleanup

* fix missing button

* type info

* make names consistent

* cleanup - review comments

* split out fetch attributes command - review comment

* move _computeReadAttributeServiceData - review comment

* move readAttributeValue to zha.ts - review comment

* move fetchCommandsForCluster - review comment

* move fetchClustersForZhaNode - review comment

* move fetchEntitiesForZhaNode - review comment

* style changes - review comment

* cleanup - review comments

* fully sort imports

* use updated vs update - review comment

* remove unnecessary ids - review comment

* remove empty attributes - review comment

* fix read attribute value - review comment

* switch reconfigure to web socket command - review comment
2019-01-11 12:07:58 -08:00
Paulus Schoutsen 339a0f70e3 Bumped version to 20190109.1 2019-01-11 11:47:27 -08:00
Paulus Schoutsen 94df67a7cb Correctly wrap weblink entities (#2440) 2019-01-11 11:46:44 -08:00
yosilevy 1d4f74cda3 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-11 11:46:44 -08:00
Ian Richardson 07a4505f1e 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-11 11:46:44 -08:00
Paulus Schoutsen e96c9daad6 Correctly wrap weblink entities (#2440) 2019-01-10 16:21:26 -08:00
yosilevy 08f3496818 Force dev panels to LTR even in RTL language to make it usable. Same for logbook. (#2432) 2019-01-10 15:39:41 -08:00
Tommy Jonsson 326931277e Add dismiss functionality to html5 notifications. (#2435)
* Add dismiss function to notifications.

* fix let -> const
2019-01-10 13:46:53 -08:00
Ian Richardson a2ef8bbe70 🛠️ add resources to lovelace struct (#2439)
* 🛠️ add `resources` to lovelace struct

`resources` are being removed by Raw Config Editor on save

* make resources optional

* Prevent removal of extra keys
2019-01-10 13:33:34 -08:00
Paulus Schoutsen 4bcb51bf5a Merge branch 'master' into dev 2019-01-09 15:29:09 -08:00
Paulus Schoutsen bda5c3a0c9 Fix version bump 2019-01-09 15:29:01 -08:00
Paulus Schoutsen e228f60c39 Version bump to 20190109.0 2019-01-09 15:13:52 -08:00
Paulus Schoutsen 67c032c85a Merge pull request #2429 from home-assistant/dev
2019109.0
2019-01-09 14:39:11 -08:00
Paulus Schoutsen 417ffde3e8 Update translations 2019-01-09 14:37:32 -08:00
Paulus Schoutsen f3064f0071 Bumped version to 2019109.0 2019-01-09 14:36:55 -08:00
Bram Kragten e9d912cc87 Remove styleMap for base-unit (#2428) 2019-01-09 14:04:49 -08:00
yosilevy 2517e5ba60 Proper RTL support in weather forecast card (#2424)
* Proper RTL support in weather forecast card

* States panel force left to right since RTL is not usable

* Updated class names and switched div to span
2019-01-09 21:34:24 +01:00
Bram Kragten 64b405dd4d Set min height to thermostat card (#2416)
* Set min height

* Set min height on #root

* Add min-height on firstUpdated and remove after roundSlider is loaded

* Move back to #thermostat
2019-01-08 11:27:01 -08:00
Bram Kragten ddb050d1fd Change title to name (#2425) 2019-01-08 08:18:44 -06:00
hulkhaugen 3f6a8cac80 Removed excessive bracket in css (#2411)
* Removed excessive bracket in css code

* lint
2019-01-07 10:40:12 +01:00
Bram Kragten ad113367e6 🛠️ Small fixes to sensor editor (#2415)
* Small fixes to sensor editor

* any -> string | number
2019-01-06 20:06:59 -06:00
David F. Mulcahey f4f08ab0d1 Config panel for ZHA (#2389)
* zha config panel

* implement issue cluster command

* update layout

* read zigbee attribute service

* set attribute and manufacturer code override

* cleanup

* adjust style and documentation wording

* html cleanup

* ha-call-ws-api-button

* use call-ws-api-button

* fix deprecated syntax - travis error

* emulate new z-wave node info functionality

* start converting to lit

* fix style includes

* fix help toggle

* remove old panel

* cleanup

* cleanup

* convert to lit / ts

* import styles

* types - review comment
2019-01-04 19:11:08 -06:00
John Arild Berentsen c2a57099d3 Allow for removal of broadcast node in UI (#2390)
* allow for removal of broadcast

* prettier

* prettier
2019-01-03 23:31:30 +01:00
Emil Stjerneman adf0c6d891 Lovelace alarm panel respects the code_format attribute on the alarm entity (#2379) 2019-01-03 23:09:07 +01:00
Milan V 38a2627227 Fix climate control rounding error (#2375)
* Fix climate rounding error

* Update ha-climate-control.js
2019-01-03 23:07:37 +01:00
Ian Richardson 5a90edc893 thermostat card: follow same step logic as more-info (#2369)
* Follow same step logic as more-info

* Address review comments

* Address review comments

* Address review comments and cleanup
2019-01-03 22:53:55 +01:00
Ian Richardson 88473581c2 UI Editor for entity-button card (#2393) 2019-01-03 22:53:10 +01:00
Bram Kragten 88d23eb9dd Check config on save (#2346)
* Check config on save

Untested...

* views is list of objects, resources not required

* Lint

* Only warn on "# " to prevent warnings on colors

Could miss some comments...

* Improve # check

Warn on # at the start of a line or when followed by white space

* Faster

* Multiline

* Check if # is added

* Also handle paste and just show the warning on every #
2019-01-03 22:46:57 +01:00
Andrey 25c788871f Allow empty name (#2388) 2019-01-03 22:46:14 +01:00
Xus Badia f272801253 Update favicon-apple-180x180.png (#2385) 2018-12-28 18:22:40 +01:00
Ian Richardson 2e750dc1e2 UI Editor for map card (#2287)
*  UI Editor for `map` card

* Address review comments

* Revert change properly

* Address review comments

* Note to change to interface after LL conversion

* Remove config options if empty

Should apply to other editors

* entitites is required

* cleanup

* cleanup

* Fix for number values

* Name chunk

* Remove zoom default
2018-12-21 13:53:26 +01:00
Paulus Schoutsen 3c5fb6d1ad Update translations 2018-12-19 14:43:12 +01:00
Paulus Schoutsen 32cd683b8a Bumped version to 20181219.0 2018-12-19 14:42:39 +01:00
Paulus Schoutsen 6c029b39e0 Merge branch 'master' into dev 2018-12-19 14:03:44 +01:00
Paulus Schoutsen 7efad04e42 Merge pull request #2367 from home-assistant/20181211-2
20181211.2
2018-12-19 14:02:48 +01:00
Paulus Schoutsen b6f7781a87 Bumped version to 20181211.2 2018-12-19 13:59:16 +01:00
Paulus Schoutsen 16a147f389 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:59:10 +01:00
Zack Arnett 79b71ed753 Update UI and Add Move Card to a Dialogue (#2282)
* Update UI

* REmove useless import

* Add Notification if saved is done

* Move Register Dialog

* Updates from suggestions

* Updates box shadow on card options

* Update color and viewselection

* Add pointer

* Update Cursor

* Update check next to save

* Comment Updates

* Text area
2018-12-19 13:08:17 +01:00
Paulus Schoutsen 49fa74cc07 Fix incorrect state display being cached (#2356)
* Fix incorrect state display being cached

* Remove test for cache
2018-12-19 13:05:39 +01:00
Ian Richardson 0a2eaec884 Cleanup of picture card editor (#2364)
* Cleanup of `picture` card editor

* Fix `action-editor`
2018-12-18 20:40:51 +01:00
Ian Richardson 4c5d3138c1 UI Editor for picture card (#2240)
* UI Editor for `picture` card

This is a WIP.
* How should I handle service data? It's kind of freeform and I don't really have a good idea on what I should do.
* in action-editor I have two issues for `_navigation_path` and `_service` have TS errors saying the property doesn't exist on `ToggleActionConfig`. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?

* Remove `id`

* Cleanup. Service-data still WIP

* Could use some help on service_data

* Perhaps a better/more structured method?

* Revert "Perhaps a better/more structured method?"

This reverts commit 1e1a1e44c16a18c5ffc380347cffd01e7fad52f9.

* Just playing around

* MVP doesn't include service data

* Address review comments

* Address review comments

* Name chunk and remove when unused

* Remove `more-info` action option

* Address review comments
2018-12-18 17:25:56 +01:00
Paulus Schoutsen 5e1cd389b3 Name all chunks (#2363) 2018-12-18 17:14:33 +01:00
Ian Richardson 7ced08a899 UI Editor for weather-forecast card (#2285)
*  UI Editor for `weather-forecast` card

* Missed name

* Fix typo

* Address review comments

* Remove unused optional configs with no defaults

* cleanup

* Name chunk
2018-12-18 14:26:34 +01:00
Malte Franken 603cf7ba0f two new geo location map demo cards (#2349) 2018-12-18 11:29:12 +01:00
Ian Richardson c47ba65c3b 🧹 remove unused configs when empty (#2347)
* Remove unused configs when empty

* Handle unused numbers & fix glance entities

* Sneak in the chunk names
2018-12-18 11:15:32 +01:00
Ian Richardson 849ed80e78 🚫 render error-entity-row when state not available (#2352) 2018-12-18 11:14:55 +01:00
quthla b78c48ecec Fix android external auth (#2319)
* Fix android external auth

* Update external_auth.ts

* Update external_auth.ts

* Update external_auth.ts
2018-12-17 20:37:10 +01:00
Paulus Schoutsen 8d2da9c5a6 Merge branch 'master' into dev 2018-12-17 10:51:19 +01:00
Ian Richardson 9664e8258c UI Editor for plant-status card (#2286)
*  UI Editor for `plant-status` card

* Address review comments

* Require entity

* Cleanup

* Cleanup

* Address review comments

* Update hui-plant-status-card-editor.ts
2018-12-17 10:45:23 +01:00
Paulus Schoutsen 5f5bf17df0 Merge pull request #2345 from home-assistant/20181211-1
20181211 1
2018-12-17 10:20:35 +01:00
Paulus Schoutsen ca7674cd15 Bumped version to 20181211.1 2018-12-17 10:17:32 +01:00
Paulus Schoutsen 3f5f5bb1ee Fix service button element (#2343) 2018-12-17 10:17:18 +01:00
Paulus Schoutsen e7ee9c7054 Fix undefined on plant/weather card (#2339) 2018-12-17 10:17:18 +01:00
Ian Richardson 4f6ecf5c21 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:17:17 +01:00
Zack Arnett 87eac4cdee remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-17 10:17:16 +01:00
Paulus Schoutsen d267196bff Call super updated (#2293) 2018-12-17 10:16:50 +01:00
Paulus Schoutsen f683337cbe Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-17 10:13:19 +01:00
Paulus Schoutsen 1a6226270f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-17 10:13:19 +01:00
Paulus Schoutsen 64714c64c7 Fix notifications drawer (#2344) 2018-12-17 10:08:23 +01:00
Ian Richardson b7c34c483a 🔨 Fix for element positioning (#2335)
* Fix for element positioning

* Address comments
2018-12-17 10:07:59 +01:00
Paulus Schoutsen e5bf842801 Fix service button element (#2343) 2018-12-17 09:36:55 +01:00
Ian Richardson d1a56d6acc UI Editor for media-control card (#2336)
*  UI Editor for `media-control` card

* Address review comments

* Note on LL interface
2018-12-17 09:31:58 +01:00
Malte Franken cac7f8d1ab Extended map to support geo location entities (#2337)
* initial version of geo location map

* configuring entities not required but source is

* extending existing map instead of adding a new one

* renamed source to geo_location_source; clearer handling of geo location entities vs defined entities

* geo location sources must now be an array

* code cleanup
2018-12-17 09:04:58 +01:00
Ian Richardson 9d2b37c9f2 Remove unnecessary editor types (#2342) 2018-12-17 07:50:27 +01:00
Paulus Schoutsen e20a02c52c Fix undefined on plant/weather card (#2339) 2018-12-16 13:52:13 -05:00
Zack Arnett c46d04eaa6 Alarm Card Conversion (#2259)
* Alarm Card COnversion

* Map buttons

* Reducing margin under alarm code

* Update src/panels/lovelace/cards/hui-alarm-panel-card.ts

Co-Authored-By: zsarnett <arnett.zackary@gmail.com>

* Comment Updates

* Review updates

* Reorder css

* Update actions

* TSlint

* TS LINT

* Idk whats going on here

* Fix import
2018-12-14 11:16:43 +01:00
Zack Arnett 2ec8b97378 remove Animation for thermostat and light (#2303)
* Update Animation

* Update light
2018-12-13 21:45:21 -05:00
Paulus Schoutsen b3b9ca9c3f Fix setting aspect ratio in percentage (#2289)
* Fix setting aspect ratio in percentage

* Use endsWith

* Fix invalid test
2018-12-13 23:36:01 +01:00
Paulus Schoutsen 71ed83ef07 Fix opening edit dialog twice when closed by clicking on overlay (#2290) 2018-12-13 21:46:57 +01:00
Paulus Schoutsen 47635055d0 Clear view cache edit mode (#2291)
* Clear view cache when canceling edit mode

* Fix enabling edit mode on not first view
2018-12-13 21:46:50 +01:00
Paulus Schoutsen 0dfca2f33b Call super updated (#2293) 2018-12-13 09:26:23 -05:00
Ian Richardson 18de427145 🧹 domain-filter as attribute as it does not change (#2271)
* 🔨 `domain-filter` as attribute as it does not change

* Address review comments
2018-12-13 09:40:57 +01:00
Bram Kragten 118f28285e 📷 Add camera card on generate (#2279) 2018-12-12 08:00:00 -06:00
Paulus Schoutsen 6a9cfbfa1c TS create element functions (#2276)
* TS create element functions

* Name chunk
2018-12-12 14:21:34 +01:00
Bram Kragten 8c61624a9c Change edit mode + add edit lovelace (#2277)
* Change edit mode + add edit lovelace

* Comments

* Fix (yes it was used :-)

* Raw edit header changed
2018-12-12 13:59:19 +01:00
Paulus Schoutsen d277571735 Generalize errors (#2275) 2018-12-12 09:47:32 +01:00
Paulus Schoutsen a6f3684846 Fix gauge (#2274) 2018-12-12 09:29:46 +01:00
Paulus Schoutsen edef4ba2f5 Speed things up (#2270)
* Speed things up

* Fixes
2018-12-12 08:51:59 +01:00
Matthias Dötsch 7cd6619a79 Added some missing translate tags for cards (#2188)
* Added some missing translate tags for cards

more-info of:
 - sun
 - script
 - updater

* Added some missing translate tags for cards

* Added some missing translate tags for cards
2018-12-12 08:27:56 +01:00
Ian Richardson 2059e36dd6 🔨 Update value attributes to properties (#2269) 2018-12-12 08:12:57 +01:00
Ian Richardson 4a455e9147 🔧 Organize editor imports (#2272) 2018-12-12 08:09:23 +01:00
Ian Richardson fe0b131480 UI Editor for iframe card (#2230)
* UI Editor for `iframe` card

* Remove `id`

* Address review comments

* Cleaned up some inconsistencies
2018-12-11 17:05:01 -06:00
Paulus Schoutsen b1b78c2bb7 Fix stack trace in badge 2018-12-11 21:43:43 +01:00
Paulus Schoutsen 99395360c7 Convert HA-STATE-LABEL-BADGE to lit (#2268) 2018-12-11 21:41:38 +01:00
Ian Richardson bd46e3b8e0 UI Editor for sensor card (#2267) 2018-12-11 21:39:18 +01:00
Paulus Schoutsen 80dd15306e Convert ha-label-badge to lit (#2266)
* Convert ha-label-badge to lit

* Add class to TypeScript map
2018-12-11 21:23:19 +01:00
Ian Richardson 88f0ebf75d UI editor for shopping-list card (#2227)
* Add UI editor for `shopping-list` card

* Cleanup

* Export config

* Remove `id`
2018-12-11 21:23:10 +01:00
Ian Richardson 8679f10f10 UI Editor for light card (#2232)
* UI Editor for `light` card

* Remove `id`
2018-12-11 21:22:21 +01:00
Ian Richardson db4c1e45f5 UI Editor for gauge card (#2229)
* UI editor for `gauge` card

Need to develop a severity input method still

* Config works well but no preview showing

* Add `sensor` domain filter

* Remove `id`
2018-12-11 21:22:08 +01:00
Paulus Schoutsen 65cf2feb7a UI Editor for markdown card (#2231)
* UI Editor for `markdown` card

* Remove `id`
2018-12-11 21:21:38 +01:00
Ian Richardson 97da26eba7 UI Editor for alarm-panel card (#2257)
* UI Editor for `alarm-panel` card

* Adding of states

Can't get the last available state to be recognized as being a selection change

* Ability to remove states

* Clean up

* Clean up

* Remove id
2018-12-11 21:15:29 +01:00
Ian Richardson 8e7d7c5188 UI Editor for thermostat card (#2258) 2018-12-11 21:15:18 +01:00
Paulus Schoutsen 767307ef47 Convert hui-view to Lit (#2265)
* Convert hui-view to Lit

* Add super call to updated

* Update src/panels/lovelace/hui-view.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments"

* Fix things
2018-12-11 19:47:19 +01:00
Paulus Schoutsen ccc6262026 Convert HUI-ROOT to Lit Element (#2264)
* Convert HUI-ROOT to Lit Element

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Update src/panels/lovelace/hui-root.ts

Co-Authored-By: balloob <paulus@home-assistant.io>

* Apply suggestions from code review

Co-Authored-By: balloob <paulus@home-assistant.io>

* Address comments
2018-12-11 19:39:40 +01:00
Bram Kragten 2cdb542112 Add move card to view (#2262)
* Add move card to view

* Fix style

* Fix style and tests

* last style change

* update tests
2018-12-11 19:38:57 +01:00
Paulus Schoutsen 4e232e58ce Address comments 2018-12-11 19:26:26 +01:00
Ian Richardson 27bb175624 Apply suggestions from code review
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:05:01 +01:00
Ian Richardson 5a5a7dad1e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:58 +01:00
Ian Richardson 2d1cf421ef Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:48 +01:00
Ian Richardson 8be25f2020 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:33 +01:00
Ian Richardson 0a8f853a8e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:03:01 +01:00
Ian Richardson a46f5e3d4e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:44 +01:00
Ian Richardson 5de36f9579 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:32 +01:00
Ian Richardson 9b5e79f42a Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:18 +01:00
Ian Richardson a824599a37 Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:02:07 +01:00
Ian Richardson 884b24da0e Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:01:32 +01:00
Ian Richardson 76325a384c Update src/panels/lovelace/hui-root.ts
Co-Authored-By: balloob <paulus@home-assistant.io>
2018-12-11 19:00:57 +01:00
Paulus Schoutsen e2218f1e6e Extract component for editing out of hui-view (#2263) 2018-12-11 17:17:59 +01:00
Paulus Schoutsen 758b686684 Convert HUI-ROOT to Lit Element 2018-12-11 17:06:05 +01:00
Paulus Schoutsen 3a50d47dd2 Merge pull request #2261 from home-assistant/dev
20181211.0
2018-12-11 10:29:13 +01:00
Paulus Schoutsen b4d4591273 Bumped version to 20181211.0 2018-12-11 10:28:16 +01:00
Paulus Schoutsen 432fdd628c Update translations 2018-12-11 10:28:12 +01:00
Paulus Schoutsen bc23dd37be Handle webhook component not loaded (#2255)
* Handle webhook component not loaded

* Fix text
2018-12-11 10:25:16 +01:00
Ian Richardson 0319fd23c5 Remove id 2018-12-10 23:13:26 -06:00
Ian Richardson d7e5993501 UI Editor for markdown card 2018-12-10 23:12:22 -06:00
Paulus Schoutsen 46a9b90ed0 Add webhook trigger to automation editor (#2252) 2018-12-10 19:45:48 +01:00
Bram Kragten b0c68e58c5 Small fixes (#2248)
* Small fixes

* remove returning on undefined in statename

* 16px -> 4px

* Styling
2018-12-10 19:44:34 +01:00
Paulus Schoutsen 7063ced7fd Merge pull request #2247 from home-assistant/dev
20181210.1
2018-12-10 12:49:26 +01:00
Paulus Schoutsen 7d2444868d Bumped version to 20181210.1 2018-12-10 12:48:37 +01:00
Paulus Schoutsen 0899d42967 Add raw config editor for storage mode (#2246)
* Add raw config editor for storage mode

* Lint

* Allow inserting spaces by pressing tab
2018-12-10 12:48:05 +01:00
Bram Kragten d57bcc2701 Disable edit in yaml mode (#2244) 2018-12-10 11:40:34 +01:00
Paulus Schoutsen d9d92c8766 Simplify Lovelace mode (#2243) 2018-12-10 11:38:18 +01:00
Paulus Schoutsen 7a16ed5400 Merge pull request #2242 from home-assistant/dev
20181210.0
2018-12-10 09:51:55 +01:00
Paulus Schoutsen 07e35ff81a Update translations 2018-12-10 09:50:25 +01:00
Paulus Schoutsen 0398944cab Bumped version to 20181210.0 2018-12-10 09:49:42 +01:00
Paulus Schoutsen a33ff7479a Allow moving cards (#2241) 2018-12-10 09:48:59 +01:00
Paulus Schoutsen f9182e5453 Revert lovelace as default (#2237)
* Revert lovelace as default

* Better text
2018-12-10 08:57:51 +01:00
Bram Kragten 4f0a965573 Changes for new storage (#2228)
* Changes for new storage

* Fix lint

* Use indexes for editing

* Use lovelace object

* Use lovelace object

* Lit conversion panel lovelace

* Lovelace obj

* Fix edit cards

* Fix some bugs

* Fix last bugs

* Lint

* Don't drop view content

* Move file

* Add skip button to card picker

* Correctly set lovelace mode
2018-12-10 08:57:29 +01:00
Paulus Schoutsen 2a23487163 Fix long press in FF (#2226)
* Fix long press in FF

* Better fix
2018-12-09 10:09:34 +01:00
Ian Richardson 6b9ba7367d Remove alarm-panel UI editor (#2235)
Remove the editor that I inadvertidently committed to dev so that we can give it a proper review before merging.
2018-12-09 10:09:10 +01:00
Paulus Schoutsen a17ae5546f Lint 2018-12-08 10:54:00 +01:00
Ian Richardson 47de0e9156 UI Editor for alarm-panel card
Still need to get states sorted out
2018-12-07 22:54:18 -06:00
Bram Kragten baeda622de Save columns as string (#2214)
* save columns as string

* set type to number to convert to number before save
2018-12-07 14:14:29 +01:00
Bram Kragten 48220b67ed Fix edit view and layout (#2213)
* Fix edit view and layout

* Colors
2018-12-07 13:20:24 +01:00
Ian Richardson 9ba232249b grammer tweaks (#2209) 2018-12-07 11:44:55 +01:00
Bram Kragten b0580e70d2 Fix horizontal stack (#2210) 2018-12-07 11:43:49 +01:00
Paulus Schoutsen 6c5b274792 Merge branch 'dev' 2018-12-07 07:11:43 +01:00
Paulus Schoutsen 3094b08c5f Bumped version to 20181207.0 2018-12-07 07:11:30 +01:00
Paulus Schoutsen 181539baac Merge pull request #2208 from home-assistant/dev
20181207.0
2018-12-07 07:10:32 +01:00
Bram Kragten 2289773e36 Force refresh on manual refresh (#2200) 2018-12-07 07:09:13 +01:00
Thomas Lovén 1ecb138ec5 Better display of sensor values. E.g. with units. (#2205) 2018-12-07 07:05:15 +01:00
Ian Richardson 3d67d9eba3 Update gallery demos (#2206)
* Update gallery demos

* Update demo-hui-glance-card.ts
2018-12-07 07:04:02 +01:00
Zack Arnett 0fd3c03764 UI Design Update (#2207) 2018-12-07 07:02:17 +01:00
Zack Arnett 6aca1d0d54 fix (#2204) 2018-12-06 20:22:16 +01:00
Zack Arnett 601bbfd88e Light Tap/Hold Action fix (#2191)
* Light action fix

* oops copy pasta
2018-12-06 19:17:41 +01:00
Zack Arnett f600b0522c Add id = 0 handling (#2201)
* Add id = 0 handling

* Add check in view creation
2018-12-06 19:16:06 +01:00
Ian Richardson 647a33ea61 Fix picture-element card elements (#2202) 2018-12-06 19:15:03 +01:00
Paulus Schoutsen 64d59fedc8 Fix Lovelace weather card (#2199) 2018-12-06 17:59:36 +01:00
Bram Kragten 51d592ba0d Fix no or just 1 view (#2194) 2018-12-06 14:38:16 +01:00
Paulus Schoutsen eaaf841a87 Code split edit dialog (#2198)
* Code split edit dialog

* Code split edit view dialog
2018-12-06 14:12:00 +01:00
Paulus Schoutsen c6542e383c Code split jQuery roundslider (#2197) 2018-12-06 14:10:37 +01:00
Paulus Schoutsen 6e3c2bfd6a Code split Leaflet (#2196) 2018-12-06 13:30:05 +01:00
Paulus Schoutsen be3bfc7aa4 Add script to show stats (#2195) 2018-12-06 12:43:43 +01:00
Bram Kragten bbe90c1683 Fix view without badges (#2192) 2018-12-06 11:49:33 +01:00
Ian Richardson 2fe1d04eb0 Action tooltips (#2193)
* Fix tooltips for tap actions and add hold actions

* Cleanup logic
2018-12-06 11:49:19 +01:00
Paulus Schoutsen f5022f4e1e Merge pull request #2190 from home-assistant/dev
20181205.0
2018-12-05 22:40:18 +01:00
Paulus Schoutsen fdbb06de19 Merge remote-tracking branch 'origin/master' into dev 2018-12-05 22:08:30 +01:00
Paulus Schoutsen 0cd4980f44 Bumped version to 20181205.0 2018-12-05 22:07:41 +01:00
Paulus Schoutsen 2d0f14d078 Update translations 2018-12-05 22:07:34 +01:00
Thomas Lovén 9711068f8b Handle mouse events on touchscreens. Fix #2085 (#2170)
* Handle mouse events on touchscreens. Fix #2085

* Some more fixes. Makes listeners non-passive!

* Only prevent preventable events.

* Different approach

* Some travis fixes

* Try to avoid clicking while scrolling
2018-12-05 22:05:51 +01:00
Ian Richardson fb180c7b9b Align picture card tap/hold actions (#2186)
Also removed unneccessary `navigation_path` config from `picture-entity`
2018-12-05 22:00:52 +01:00
Ian Richardson 5947bd6d74 Align picture-glance card tap/hold actions (#2187)
Removed unneccessary `force_dialog` config.
Updated `handleClick` to use `entity` or `camera_image` for `more-info` dialog
2018-12-05 22:00:04 +01:00
Paulus Schoutsen 7e584402ea Add gallery demo for Long Press directive (#2189)
* Convert gallery to TS

* Add long press demo
2018-12-05 20:32:36 +01:00
Bram Kragten 3f113da056 Fix: View should have cards (#2184)
* View should have cards

* Don't need CardConfig yet
2018-12-05 17:25:43 +01:00
Bram Kragten bfef3a96c8 Catch errors in preview and fix entity picker (#2183)
* Catch errors in preview and fix entity picker

* Replace add button with entity-picker
2018-12-05 16:42:22 +01:00
Zack Arnett de3a467697 Update Hold/Tap Actions to Objects (#2182)
* Update Action to Object for entity-button

* Update Actions to Object for Glance Card

* Update to use HandleClick function

* Add navigation

* Updating to use navigation path from Action Config

* Type handle events in glance

* Update Service checks

* Update Picture elements

* oops

* Adding nav back until we convert picture

* Extend typing
2018-12-05 14:27:22 +01:00
Bram Kragten 0f895fd3a1 Make Lovelace the default! (#2181)
* Make Lovelace the default!

* Move states panel to panels
2018-12-05 14:14:53 +01:00
Bram Kragten 16cc3adcff Add badges to view editor (#2176)
* Badges

* Fix entity picker

* Make editor own element
2018-12-05 12:39:04 +01:00
Zack Arnett e2e002b9a9 Fixes Color not being overwritten by themes for cards (#2179) 2018-12-05 12:31:54 +01:00
Zack Arnett 8274284294 Theme Addition (#2178) 2018-12-04 19:49:46 +01:00
Bram Kragten 1d7f574b9b Fix process entity (#2177) 2018-12-04 12:43:03 -05:00
Bram Kragten f680832f78 Add edit/add/delete view (#2172)
* Add edit/add/delete view

* Add delete

* Comments

* Lint

* Fix delete with numeric ids

* fix translations

* add translations
2018-12-04 16:49:12 +01:00
Ian Richardson 77711ea711 Stop MouseEvent from reach parent element (#2174) 2018-12-04 12:57:43 +01:00
Ian Richardson f1a6122699 Convert hui-unused-entities to TypeScript/LitElement (#2173) 2018-12-04 12:57:15 +01:00
Ian Richardson 5fec881c39 Convert hui-picture-entity-card to TypeScript/LitElement (#2168)
* Convert hui-picture-entity-card to TypeScript/LitElement

click/hold are not working on my Chrome dev env

* typo

* Address review comments

Still having issues with clicks/holds on lots of cards on my system

* Add explicit navigate option

* Fixed after testing with touchevents

* Simplify
2018-12-04 10:04:59 +01:00
Ian Richardson 5dc05129ef Convert process-config-entities to TypeScript (#2113)
* Convert process-config-entities to TypeScript

* Address review comments but have issues

* Resolve merge conflicts

* Address review comments

Still a typing error which seems like it shouldn't exist

* Hack to bypass type assertion
2018-12-04 10:01:13 +01:00
Bram Kragten f461ad6d31 Add card functionality (#2160)
* MVP add card

* WIP

* Added stub config

* Little bit of cleanup

* Add all card

* At least it works now...

* clean up and bug fixes

* Fix for switching editor
2018-12-03 14:11:46 +01:00
Ronen Hayun 57b5db4f43 Move computeRTL to a separate file and add RTL support in state-info (#2165)
* RTL support (POC)

* restore yarn.lock

* Move computeRTL to a separate file and add RTL support in state-info

* Move import to top after failed CI

* Replace var to const

* Change HassEntity to HomeAssistant object

* Support RTL in state info and state card display

* Support for RTL in more-info-controls:

* Update src/common/util/compute_rtl.ts

Co-Authored-By: rhayun <ronen.hayun@gmail.com>

* remove default from export

* prefix all computeRTL with underscroe for privately uses
2018-12-03 10:54:29 +01:00
Ian Richardson d015fe5160 Remove .ts extensions (#2169) 2018-12-02 20:35:05 -06:00
Otto Winter f7e3f4a828 Hass.io: Show ANSI color codes in logs (#2155)
* Hass.io: Show ANSI color codes in logs

* Use innerHTML and color classes

* Refactor ANSI function

* Readability

* Make green text black in supervisor logs

* Use assigning while loop
2018-12-02 10:26:32 +01:00
Aephir f3b8d66f4f Update demo-hui-glance-card.js (#2157)
* Update demo-hui-glance-card.js

Fixed updated syntax

* Update gallery/src/demos/demo-hui-glance-card.js

Co-Authored-By: Aephir <waldenb@gmail.com>
2018-12-01 09:41:52 +01:00
Zack Arnett 8ae03dd1ff Convert Sensor Card to Typescript (#2140)
* Sensor Convert

* Types

* Forgot to check stateobj

* Review updates

* lint

* Update for hass and add error handling

* Review Updates

* Graph only shown if graph: line - Breaking Change

* Only rendering when updated

* Date.Now()

* Forgot to reset the date

* Lint

* Review updates

* Forgot to take this out

* Bram the god

* Update to render right things

* Check if line is being drawn

* Make graph if's more readable
2018-11-30 22:50:21 -05:00
Bram Kragten 0e6f6ddbda Add own types + add config validation to glances (#2150)
* Add own types + add config validation to glances

* Cleanup
2018-11-30 13:35:55 -05:00
Ian Richardson 882c503fa9 Extract Supported features into own funciton (#2151)
* External function to check if entity supports a feature

* Typo

* Update hass-media-player-model.js
2018-11-30 16:37:44 +01:00
Paulus Schoutsen 22eb6c6a8d Remove special char 2018-11-30 16:24:13 +01:00
Ian Richardson 8e9ff46bab Extract media-player constants to src/data (#2149) 2018-11-30 14:17:52 +01:00
Paulus Schoutsen 023d8ad893 Upgrade deps (#2156)
* Update TypeScript

* Update webcomponentsjs and shadycss

* Upgrade vaadin
2018-11-30 13:45:50 +01:00
Ian Richardson 6b730b7c40 Allow for state_image and camera_image in picture-elements card (#2143)
* Allow for state_image and camera_image in picture-elements card

* Address review comments

* Remove unneccesary div
2018-11-29 16:44:39 +01:00
Bram Kragten 90cea56a1e Check if config is compatible with UI editor (#2137)
* Check config on loading UI editor

* Clean up

* Add theme and reload editor on reopen

* Reload config element on card type change

* Clean

* Clean

* Add superstruct for config validation

* Take content logic out off return edit-card

* Reverse  logic to prevent unnecessary yaml load
2018-11-29 15:00:30 +01:00
Ian Richardson 5e43d9b6b7 Convert hui-media-player-entity-row to TypeScript/LitElement (#2136)
* Convert hui-media-player-entity-row to TypeScript/LitElement

* Add types

* Address review comments
2018-11-29 11:57:29 +01:00
Ian Richardson e4cac86690 Convert shopping-list clear to WebSockets (#2141) 2018-11-29 11:53:30 +01:00
Jan Castermans a249289211 Display alert entity row as a toggle (#2138)
* Update create-row-element.js

In the default UI alerts where displayed as toggles, this change makes this also the default behaviour in Lovelace

* Change the order to keep the alphabetic order
2018-11-29 11:53:04 +01:00
Ian Richardson 8ecfd9780f Convert hui-entities-toggle to TypeScript/LitElement (#2144)
* Convert hui-entities-toggle to TypeScript/LitElement

* Assign types to _callService
2018-11-29 11:52:22 +01:00
Paulus Schoutsen 913cd2b3d4 Automatically detect plants (#2146) 2018-11-29 11:24:30 +01:00
Ian Richardson c02b7a33fe Resolve warning (#2142) 2018-11-28 21:59:14 -05:00
Bram Kragten 7a0b2060d4 Add delete card func (#2116)
* Add delete card button

* Add delete card button

* fix the non-sense

* lovelace data was moved
2018-11-28 12:34:53 +01:00
Ian Richardson afe9056725 Combine edit and complete shopping-list calls (#2135) 2018-11-28 10:14:45 +01:00
Zack Arnett 49be2ad013 Unit PAtch (#2134) 2018-11-27 20:49:22 -06:00
Zack Arnett 230ec51de5 Fixes: #2084 : Fix for extra padding (#2133)
* Fix for extra padding

* Easy fix
2018-11-27 21:35:41 +01:00
Zack Arnett b37ea482d3 Add name variable - Weather Card (#2131)
* Add name variable

* Update to state name
2018-11-27 15:06:51 -05:00
Zack Arnett bf69c8ce46 Title to Name (#2127) 2018-11-27 20:30:22 +01:00
Zack Arnett d2741af24b Add name to config (#2128) 2018-11-27 20:26:56 +01:00
Zack Arnett f04f58ac88 Change Title to Name (#2129) 2018-11-27 20:25:52 +01:00
Zack Arnett 8757dbb664 Plant add name (#2130) 2018-11-27 20:22:53 +01:00
Zack Arnett ffc7f9706d Update Aspect Ratio on Map card (#2126)
* Update Aspect Ratio

* Update Card Size
2018-11-27 11:48:41 -05:00
Zack Arnett 4487c3dc1a Removes Height, Light Width and Line Color from Sensor (#2122)
* Sensor fix

* SVG prettified - Use Accent Color only - Dont Calc height

* Prettier
2018-11-27 17:17:59 +01:00
Bram Kragten 97f5d8e7e2 Move lovelace data to /src/data/lovelace.ts (#2119)
* move lovelace data

* move types

* change imports from cards
2018-11-27 10:05:33 +01:00
cdce8p 1cc6e09953 Add html to LitElement.prototype (#2120) 2018-11-26 23:27:00 +01:00
Zack Arnett 3752530f96 Update UI in the config Elements (#2117)
* UpdateUI

* Updating continues

* Update name of file
2018-11-26 21:01:07 +01:00
Ian Richardson 21be35bc46 Conert shopping-list update to WebSockets (#2114) 2018-11-26 14:46:40 +01:00
Paulus Schoutsen bb8ec4b2ef Bumped version to 20181126.0 2018-11-26 14:39:06 +01:00
Paulus Schoutsen 278ea184cc Update translations 2018-11-26 14:39:01 +01:00
Paulus Schoutsen 0b17a85c3b Bumped version to 20181121.1 2018-11-26 14:11:11 +01:00
Paulus Schoutsen 0be0e9792f Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:11:02 +01:00
Paulus Schoutsen 14409ff5b7 Use overrideIcon via data binding (#2078) 2018-11-26 14:11:01 +01:00
Bram Kragten d24bc3c07c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-26 14:11:00 +01:00
Paulus Schoutsen 5ab419534c Convert authorize page to lit (#2115)
* Convert authorize page to lit

* Don't use ha-markdown

* Simplify CSS
2018-11-26 14:10:01 +01:00
Paulus Schoutsen 07b65f37db Add Cloud Webhook management (#2102)
* Add Cloud Webhook support

* Lint

* Tweak text

* Rename it to cloudhook

* Fix final type

* fix type

* Catch null
2018-11-26 14:09:27 +01:00
Paulus Schoutsen 8ad5280501 Document types in fireEvent (#2108)
* Document types in fireEvent

* Fix more types for fireEvent

* Adjust new code to new fireEvent
2018-11-25 20:47:29 +01:00
Bram Kragten 69df6179bb Add dialog to save config (#2100)
* Add dialog to save config

* Change types

* Helper funcs for register dialog

* Clean up

* Migrate config after save

* Clean up

* Unused imports

* Comments

* Missed half...

* cardConfig cant be undefined
2018-11-25 20:09:32 +01:00
Paulus Schoutsen b939ae6ab4 Fix wrong import (#2106) 2018-11-25 15:18:41 +01:00
Bram Kragten 101a364a83 Type LovelaceConfig -> LovelaceCardConfig (#2103)
* LovelaceConfig -> LovelaceCardConfig

* Typo
2018-11-24 14:03:54 +01:00
Paulus Schoutsen 412b7595d2 Handle non existing states (#2098) 2018-11-23 20:42:41 +01:00
Paulus Schoutsen a7ab652dd3 Add support for timestamp device class (#2087) 2018-11-23 19:38:28 +01:00
Paulus Schoutsen d41a4cf78b Generate Lovelace config on the fly (#2091)
* Generate Lovelace config on the fly

* Disable editing

* Fix domain name title rendering
2018-11-23 17:39:50 +01:00
Simon Holzmayer 785ed6f9db add "for" input field to numeric_state in trigger editor (#2081) 2018-11-23 11:52:48 +01:00
Ian Richardson 6885abd234 Convert shopping-list add item call to websockets (#2080) 2018-11-23 08:56:35 +01:00
Ian Richardson 3497cb892e Convert toggle functions to TypeScript (#2082)
* Convert toggle functions to TypeScript

* Update hui-picture-glance-card.ts

* Update hui-picture-glance-card.ts
2018-11-22 12:48:12 +01:00
Bram Kragten a82561355c Dont change config on init (#2044)
* dont change config on init

* set default title empty

* used firstUpdated instead of updated

* prevent double events

* check if val changed

* typing

* clean

* lint

* clean

* prettier is having a fight
2018-11-21 22:15:22 -05:00
Paulus Schoutsen f054cdc9ef Use overrideIcon via data binding (#2078) 2018-11-21 21:11:00 +01:00
Paulus Schoutsen 463c7eae54 Merge pull request #2077 from home-assistant/dev
20181121.0
2018-11-21 20:14:51 +01:00
Paulus Schoutsen cbb703e5c1 Bumped version to 20181121.0 2018-11-21 20:04:19 +01:00
Paulus Schoutsen e4dc1884f8 Update translations 2018-11-21 20:04:10 +01:00
Paulus Schoutsen f72a2b7ef8 Merge remote-tracking branch 'origin/master' into dev 2018-11-21 20:02:56 +01:00
Bram Kragten 39819c5c58 Hassio: Fix download snapshot (#2071)
* Fix download snapshot

* async + helper

* pretty

* move catch

* fix

* Update data.ts
2018-11-21 19:28:48 +01:00
Zack Arnett 49542c49fa Entities Card UI Editor (#2072)
* Entity Card ui + extras

* Travis Fix

* Bram already has this in  another PR
2018-11-21 09:29:06 +01:00
Ian Richardson 86e501f0aa Convert retrieval of items in shopping-list to websockets (#2041)
* Convert shopping-list to websockets

* Update shopping-list.ts

* Scale back to just retrieval of items to WS
2018-11-21 09:25:30 +01:00
Paulus Schoutsen 2ca3a784e2 Allow Google unlocking locks (#2073)
* Allow Google unlocking locks

* Fix missing type
2018-11-20 23:23:12 +01:00
Paulus Schoutsen c01bd57ba5 Fix compression hassio build 2018-11-20 17:07:26 +01:00
Paulus Schoutsen ba5d224080 Gen MDI icons during hassio build 2018-11-20 16:16:54 +01:00
Ronen Hayun 5da16db81b RTL support (POC) (#2014)
* RTL support (POC)

* restore yarn.lock
2018-11-20 13:10:40 +01:00
Ian Richardson a9704b110d Convert hui-input-select-entity-row to TypeScript/LitElement (#2048)
* Convert hui-input-select-entity-row to TypeScript/LitElement

* Address Travis issues

* Address review comments

* Return callService promise

* Remove _selected
2018-11-20 13:09:52 +01:00
Ian Richardson b8f048d96a Convert hui-input-text-entity-row to TypeScript/LitElement (#2050)
* Convert hui-input-text-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments

Does anyone know why line 74 seemingly doesn't fire when the value hasn't changed? I think we should blur regardless if the value changed or not on "enter" but only seems to work when setValue is called

* Return promise from call service
2018-11-20 13:09:45 +01:00
Paulus Schoutsen c20a285003 Pin Lit-HTML and Lit-Element (#2070) 2018-11-20 13:01:21 +01:00
Karl Kihlström 07cf1141c5 Improve sensor graph algorithm (#2069) 2018-11-20 12:41:47 +01:00
Zack Arnett ef2aa2ea6f Picture Glance Conversion to TS (#2029)
* First Commit

* Convert to TS

* Extract entity render to own function

* Making it one function like not an idiot

* Addressing Reviews
2018-11-20 12:24:30 +01:00
Pascal Vizeli 2058e0d3fb Fix gz build 2018-11-20 11:36:45 +01:00
Bram Kragten 773711a2d5 Update Hassio with security options (#2067)
* new security options

* Add more info modal

Added more info modal and moved the security components.

* fixes

* show apparmor only if not default

* add colors to apparmor
2018-11-20 10:14:46 +01:00
Bram Kragten 0bb85bc895 Added migrate dialog when card has no ID (#2008)
* Added migrate dialog when card has no ID

* typos

* Fix error messages

* cardId should be a string

* Add translation

* Only load yaml in yaml editor

* revert name change

* Combine migrate and edit in one dialog

* lint

* fixes + inlude and secret yaml

* resize after toggle preview -> value>config

* add loading spinners

* only create preview when type changes

* loader on yaml editor

* Fixed loading spinner not disappearing

* moved dialog

* disable toggle if not avail

* address comments

* cleanup showDialog
2018-11-19 22:19:50 +01:00
Petro31 9a9986cf17 Flatline fix for Sensor Cards (#2064)
* Update hui-sensor-card.js

This fixes issues where the first history item was repeated many times at the start of the graph resulting in a flat line that does not represent the data.

Also, the graph now has the ability to reach a 1 to 1 history graph to sensor graph point representation.  Before 2 to 1 was the highest resolution possible.  This was due to using history.length - 1 as the denominator in cases where the user set the accuracy larger than the total number of points in the history.

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js

* Update hui-sensor-card.js
2018-11-19 16:47:30 +01:00
Jack Wilsdon 1bb62bfc05 Only add a separating colon if there is a valid prefix and suffix (#2060)
This commit changes the media player entity row to only add a colon
separator to the status line when there is both a prefix and a suffix.
2018-11-19 11:59:10 +01:00
Ian Richardson f92f89e8e8 Convert compute functions to TypeScript (#2055)
* Convert compute functions to TypeScript

* Address review comment

* Address Travis complaint

* Attempt to not be dumb :)
2018-11-18 14:50:21 +01:00
Paulus Schoutsen b1a50aa0e0 Fix hassio develop script 2018-11-18 12:25:16 +01:00
Jack Wilsdon 8c2a2fc043 Remove extra > (#2062) 2018-11-17 12:08:52 -05:00
callifo adb39fd820 Update Lovelace Thermostat Card to include all supported thermostat m… (#2039)
* Update Lovelace Thermostat Card to include all supported thermostat modes

* Update hui-thermostat-card.ts

* Update en.json to include

* Update en.json

* Revert "Update en.json"

This reverts commit a71ed49b78.

* Revert "Update en.json to include"

This reverts commit 68b95ca456.

* Removed manual mode, covered in PR #2036

* Update dry colour to #efbd07
2018-11-14 10:16:53 -05:00
TomMini 8a9762dd93 Add icon for manual mode (#2036)
* Add icon for manual mode

* Added state.climate.manual to translations

* Added manual color blue
2018-11-13 22:32:50 -05:00
Paulus Schoutsen 4407da9364 Remove extra > 2018-11-13 17:04:15 +01:00
Paulus Schoutsen b533e4d093 Bumped version to 20181112.0 2018-11-12 10:17:51 +01:00
Ian Richardson 239ec5fb53 Ability to add items to shopping-list-card (#2035)
* Ability to add items to shopping-list-card

* Address review comments
2018-11-12 10:17:19 +01:00
Thomas Lovén d974d5dc52 Fix hold_action not working on chrome for android (#2011) 2018-11-12 10:17:18 +01:00
Zack Arnett 2076949289 Glance fix (#2040) 2018-11-12 08:05:05 +01:00
Paulus Schoutsen 65bd7fd64f Update translations 2018-11-11 22:54:04 +01:00
Paulus Schoutsen 1f0c7297ce Upgrade Lit (#2032) 2018-11-10 20:36:25 +01:00
Ian Richardson efbd97f9a4 Add clearing of checked items to shopping-list-card (#2034) 2018-11-10 20:34:31 +01:00
Paulus Schoutsen 2ccfccc23f Bumped version to 20181103.3 2018-11-09 15:39:07 +01:00
Paulus Schoutsen acbcb6bd45 Fix int in ha-form (#2033) 2018-11-09 15:38:56 +01:00
Paulus Schoutsen e580dbe7f2 Fix int in ha-form (#2033) 2018-11-09 15:38:30 +01:00
Nikolay Vasilchuk 9f55678cb3 Timezone support for displaying header with date in logbook (#2026)
* Fixed display header with date in logbook

* prettier fix
2018-11-09 10:59:03 +01:00
Ian Richardson 9c2b85dd6e Add checked item section to shopping-list-card (#2005)
* Add checked item section to shopping-list-card

* Not getting value back from `this.localize`? at line 109

* Alignment of label

* Address review comment

* Address review comments

* Address review comment and fix Travis errors

* Address review comments

* Hide checked label when empty

* Address review comment
2018-11-09 10:13:44 +01:00
Ian Richardson cb640c2e71 Convert hui-picture-card to TypeScript/LitElement (#2030) 2018-11-09 10:10:17 +01:00
Paulus Schoutsen 56bdb6e352 Fix fetching sub 2018-11-08 19:32:58 +01:00
Paulus Schoutsen 81e1e5be8f Fix link color in persistent notification (#2023) 2018-11-08 10:31:49 -05:00
Ian Richardson 6c44a92e2c Convert hui-group-entity-row to TypeScript/LitElement (#2015)
* Convert hui-group-entity-row to TypeScript/LitElement

* Address review comment and Travis errors
2018-11-08 09:41:46 +01:00
Ian Richardson 9596f737e8 Convert hui-text-entity-row to TypeScript/LitElement (#2017)
* Convert hui-text-entity-row to TypeScript/LitElement

* Address review comments

* Fix Travis errors
2018-11-08 09:41:25 +01:00
Ian Richardson ad5f815273 Convert hui-scene-entity-row to TypeScript/LitElement (#2021)
* Convert hui-scene-entity-row to TypeScript/LitElement

script-entity-row and this could probably extend a common base class. The only thing that differs them is the domain used in the callService and the button text.

* Stop more-info
2018-11-08 09:39:02 +01:00
Ian Richardson 4a893d96a0 Convert hui-script-entity-row to TypeScript/LitElement (#2020)
* Convert hui-script-entity-row to TypeScript/LitElement

* Stop more-info
2018-11-08 09:37:22 +01:00
Ian Richardson 59a681fcb7 Convert hui-lock-entity-row to TypeScript/LitElement (#2022) 2018-11-08 09:35:55 +01:00
Paulus Schoutsen 787ea885cc Add text color to error row (#2007)
Fixes #2002
2018-11-07 11:37:04 -05:00
Paulus Schoutsen a26a37233b Use non-forked version of fecha 2018-11-07 10:48:49 +01:00
Paulus Schoutsen c1e3259b08 Bumped version to 20181107.0 2018-11-07 10:31:22 +01:00
Paulus Schoutsen 9c735bb088 Merge branch 'master' into dev 2018-11-07 10:28:10 +01:00
Paulus Schoutsen 10092dcadf Bumped version to 2018117.0 2018-11-07 10:27:07 +01:00
Paulus Schoutsen d31cea70bc Update translations 2018-11-07 10:26:19 +01:00
Paulus Schoutsen b04ab6faa1 Bumped version to 20181103.2 2018-11-07 10:11:47 +01:00
Ian Richardson 23163b3095 Fix iframe aspect_ratio (#2004) 2018-11-07 10:11:35 +01:00
Thomas Lovén 849d7d2d95 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-07 10:11:35 +01:00
Paulus Schoutsen a58a324073 Format html (#2006)
* Upgrade prettier

* Format files with prettier
2018-11-07 09:56:43 +01:00
Ian Richardson 7c2135f444 Fix iframe aspect_ratio (#2004) 2018-11-07 09:42:46 +01:00
Ian Richardson f9719957b0 Convert call-service to TypeScript (#1985)
* Convert call-service to TypeScript

* Address Travis error

* Address review comments
2018-11-07 09:31:01 +01:00
Ian Richardson 9ce74e2da1 Convert hui-toggle-entity-row to TypeScript/LitElement (#1939)
* Convert hui-toggle-entity-row to TypeScript/LitElement

* Properly set generic-entity properties

* Addressed review comments

* Address review comments
2018-11-07 09:30:05 +01:00
Paulus Schoutsen 14b959b91b Fix cover showing error 2018-11-06 15:17:01 +01:00
Paulus Schoutsen e2b9893b17 Expose entities for Google/Alexa (#680)
* Add entity filter

* Show exposed entities on cloud panel

* Fix tests

* Revert some testing changes

* Cursor: pointer

* Fix

* Update tests to TS
2018-11-06 14:22:59 +01:00
Thomas Lovén 54e43758d3 Make conditional not take up space in stacks when hidden (#1999)
* Make conditional not take up space in stacks when hidden

* Update hui-conditional-card.ts
2018-11-06 12:39:00 +01:00
Paulus Schoutsen 92af45d7fd Lint 2018-11-06 11:51:33 +01:00
Michael Scherer 5891a6ee7d Fix for thermostats without current temperature (#1979)
* fix for thermostats without current temperature

* make linter happy

* always render value, uom only when there is a value

* Update hui-thermostat-card.ts
2018-11-06 11:25:25 +01:00
Ian Richardson c10e409634 Convert cover-row to TypeScript/LitElement (#1933)
* Convert cover-row to TypeScript/LitElement

* Extract `supports` methods from cover model

* Address review comments

* Revert line endings mixup

I suck at vs code apparently...

* Address review comments

* Address review comments: error-row not working
2018-11-06 11:07:15 +01:00
Ian Richardson 6432207bf1 New Card: Shopping List (#1970)
* New Card: Shopping List

Following features:
- Add item
- Edit item
- Complete item
- Clear items

* Address Travis complaint

* Addressed review comments

* Update translation variable name

* Line up input row text

* Taking MVP to heart

Addressed review comments and scaled this back to just get a simple shopping list card out there and we can discuss/debate how best to add the additional pieces with smaller PRs

* Remove calling connected in set hass
2018-11-06 10:47:24 +01:00
Zack Arnett 935639e5e0 Add getElementConfig to Glance + Add Form UI for updating YAML (#1944)
* Working version

* Working kind of

* Some more changes

* More review changes

* Progress

* Review updates

* Adding new changes

* Remove un-needed code

* Adding Types

* Updating UI Editor a bit

* Updating from missed reviews

* Updates from Reviews

* Yaml is not update each time. Instead stored as LovelaceConfig.

* Update to not pull config from preview but store it each time it changed

* Updating from Reviews

* Try catch fix

* Update hui-dialog-edit-card.ts
2018-11-06 10:09:28 +01:00
Paulus Schoutsen cdb2093ea6 Ts all the tests (#1998)
* Convert tests to TypeScript

* Add types for tests

* Rename files to TS

* Fix up test imports

* Fix TSC errors

* Liiiint

* Add types to util method signatures

* Some more types
2018-11-06 10:09:09 +01:00
Karl Kihlström 856ef34964 <path> error fix & literals (#1993) 2018-11-05 19:46:41 +01:00
Karl Kihlström cf19ceb193 Filter out non number states instead of assigning them 0 (#1987) 2018-11-05 16:28:36 +01:00
Paulus Schoutsen e5fe2950af Split up cloud card (#1983)
* Split up cloud card

* Fix quotes
2018-11-05 09:59:19 +01:00
Paulus Schoutsen 1ca242405b Convert auth to TS (#1976)
* Convert auth to TS

* Lint

* Update HA-JS-WS to 3.2.0

* Migrate ws collections to TS

* Upgrade to latest HAWS

* Bump HAWS

* Lint

* Add types to WS calls
2018-11-04 10:01:33 +01:00
Michael Scherer bcbf0ba75a add vscode extension recommondations (#1978) 2018-11-03 22:57:45 +01:00
Michael Scherer 4810042373 Hide state if its unknown e.g. the climate entity does not have one (#1977)
* Hide state if its unknown e.g. the climate entity does not have one

* state can not be null

* better comparsion

* use double quotes
2018-11-03 21:51:55 +01:00
Paulus Schoutsen e1c90d74e3 Bumped version to 20181103.1 2018-11-03 19:17:48 +01:00
Zack Arnett 984570c55b Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:16:55 +01:00
Zack Arnett f489d88be4 Revert RTL PR (#1975)
* Revert RTL PR

* Missed this change
2018-11-03 19:15:51 +01:00
Paulus Schoutsen 6a84395303 Merge pull request #1974 from home-assistant/dev
20181103.0
2018-11-03 13:40:00 +01:00
Paulus Schoutsen a3847ddd2a Merge remote-tracking branch 'origin/master' into dev 2018-11-03 13:26:48 +01:00
Paulus Schoutsen dc0f023754 Version bump to 20181103.0 2018-11-03 13:24:36 +01:00
Paulus Schoutsen 89677577ef Update translations 2018-11-03 13:24:20 +01:00
Ronen Hayun 0922314134 POC for RTL support (#1966)
* POC for RTL support

* POC for RTL support

* POC for RTL support
2018-11-03 13:21:58 +01:00
Paulus Schoutsen c68604d1fe Mark edit as alpha (#1973) 2018-11-03 13:19:44 +01:00
Zack Arnett 372cfdecf4 Light, Thermostat, and Gauge - Theme Addition (#1947)
* Update to have theme options

* Make ShouldUpdate into a help function

* Adding types to changed function
2018-11-02 20:59:14 +01:00
Paulus Schoutsen ef40a0ceea Update frontend to 20181026.4 2018-11-02 20:08:01 +01:00
Paulus Schoutsen 343d18241b Update translations 2018-11-02 20:07:46 +01:00
Paulus Schoutsen 2ecb6e0f9e pic 2018-11-02 20:07:32 +01:00
Paulus Schoutsen 38b8e5e7b7 Update translations 2018-11-02 20:07:06 +01:00
Zack Arnett 058f8d178e Adding div arround each row to deal with spacing 2018-11-02 19:48:13 +01:00
Paulus Schoutsen fbc1a722bd Normalize all line endings 2018-11-02 16:00:25 +01:00
Paulus Schoutsen 727cfe92e3 Force correct line endings 2018-11-02 15:59:48 +01:00
Paulus Schoutsen 4bcb13486e Version bump to 20181026.3 2018-11-02 14:06:02 +01:00
Paulus Schoutsen 4aa8603ebf Stop release if TypeScript throws 2018-11-02 14:05:49 +01:00
Paulus Schoutsen ba33c8a456 Fix broken shit 2018-11-02 14:05:36 +01:00
Paulus Schoutsen 6f4cd88988 Merge branch 'master' into dev 2018-11-02 12:44:44 +01:00
Paulus Schoutsen 1f2deff6f0 Version bump to 20181026.2 2018-11-02 12:29:51 +01:00
Paulus Schoutsen 575882be5a Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-11-02 12:27:56 +01:00
Paulus Schoutsen d591c45e4d Propagate hass correctly (#1918) 2018-11-02 12:27:55 +01:00
Paulus Schoutsen f9b06adc9f Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-11-02 12:27:55 +01:00
Ian Richardson 6cc67dc790 New warning row for non-existent entities (#1946)
* New warning row for non-existent entities

* Update src/panels/lovelace/entity-rows/hui-error-entity-row.ts

* Address my own comments
2018-11-02 12:26:20 +01:00
Ian Richardson c0c7c0f41a Remove .js from imports (#1948)
* Remove .js from lovelace

Also cleaned up some trailing whitespace

* Go big or go home

* More removals

* Revert changes to gallery webpack

* Revert changes to webpack.config.js
2018-11-02 12:26:03 +01:00
Paulus Schoutsen eb505d4bd7 don't compress for CI runs (#1949) 2018-11-02 12:15:45 +01:00
Zack Arnett aebd1a1be1 Remove side effects of render and Add types - Button/Glance (#1919)
* Remove side effects of render and Add types

* Addressing changes

* Updating when to apply theme

* Review Updates

* Fixing last reviews

* Updates from travis
2018-11-02 10:13:49 +01:00
Bram Kragten 447c06d817 Fix overlapping device cards (#1940) 2018-11-01 09:18:12 +01:00
Ian Richardson ce78131258 Remove unused mixin (#1934) 2018-10-31 09:49:11 +01:00
Ian Richardson acab465c96 Move click and tooltip function to LL folder (#1935) 2018-10-31 09:45:38 +01:00
Zack Arnett 4ea83b8bd5 Fixes: #1902 - Thermostat/Light Background (#1931)
* Thermostat theme fixes

* Might as well put the light card in there
2018-10-31 09:38:56 +01:00
Zack Arnett 094eb632f2 Update Types for various cards (#1920)
* Update Types

* Travis fix

* Travis change

* Add HTMLElementTagNameMap for gauge

* Review Changes

* Formatting values as string to be accepted into format temp
2018-10-31 09:34:12 +01:00
Paulus Schoutsen 03b1e40593 Add preview to edit LL card (#1929) 2018-10-30 20:31:56 +01:00
Bram Kragten 2164b629cf catch translation errors (#1928) 2018-10-30 19:16:20 +01:00
Thomas Lovén a081047008 Fix calculation of glance card size (#1930) 2018-10-30 15:57:08 +01:00
Paulus Schoutsen 2e395c1b0d Update version to 20181030.0 2018-10-30 11:33:37 +01:00
Paulus Schoutsen 520e03a612 Update translations 2018-10-30 11:33:20 +01:00
Paulus Schoutsen a771a44557 Fix conditional card with undefined hass (#1927)
* Fix conditional card with undefined hass

* Conditional appendChild

* Allow updating card properly
2018-10-30 11:30:57 +01:00
Ian Richardson 38bfe8c8de Convert hui-call-service-row to TypeScript/LitElement (#1894)
* Convert hui-call-service-row to TypeScript/LitElement

* Update on _config change

* Addressed review comments

* Made `service_data` optional and verified that `callService` does use `entity` if it is available in the passed config.
* Removed check in `entities-card` for `service-data` and will remove the full config check once other PRs have been applied to avoid merge conflicts
* Will create a docs PR to update the docs

* Addressed review comments

* Removed entity config check in entities-card
* Made `icon` optional. Default now `remote`
* Made `action_name` optional. Default now 'Run'

* `.icon`
2018-10-30 11:15:12 +01:00
Zack Arnett 7ca2ef4c4c Addition to Edit Love Lace Cards (#1885)
* Initial Commit

* Removing old code

* Switching to litlement and ts

* remove .ts from extension

* Addressing a few reviews

* Added ShowDialog Still no whammy

* Fix some things

* Extract one more data method

* Add more types

* Clean up imports

* Call super

* Finishing touches

* Fix typescript check
2018-10-30 11:15:02 +01:00
Paulus Schoutsen de5f02d706 Update TypeScript to latest (#1924) 2018-10-30 11:05:56 +01:00
Paulus Schoutsen 6f7ddef4a4 Update mdi icons (#1922) 2018-10-30 11:04:25 +01:00
Paulus Schoutsen d78b5fac73 Update vaadin components (#1923) 2018-10-30 11:04:17 +01:00
Paulus Schoutsen 7cf65ba066 Update testing tools (#1925) 2018-10-30 11:04:06 +01:00
Paulus Schoutsen 91966f676a Update polymer (#1921) 2018-10-30 09:25:04 +01:00
Paulus Schoutsen 5a1ca3855b Propagate hass correctly (#1918) 2018-10-30 08:38:27 +01:00
Zack Arnett 226203143b Merge pull request #1874 from zsarnett/light-card
LoveLace Light Card
2018-10-29 23:39:12 -04:00
Zack Arnett a5304115f0 UPdate Type for color 2018-10-29 22:24:23 -04:00
Zack Arnett f7458b8d41 Add Hs_color to types 2018-10-29 20:12:20 -04:00
Zack Arnett 410b66d40f Adding more types 2018-10-29 18:15:35 -04:00
Zack Arnett 1fcf510278 Adding Type to Returns 2018-10-29 18:11:34 -04:00
Zack Arnett bb4ce278b0 Fixing Gallery and updating timeout type 2018-10-29 18:07:57 -04:00
Zack Arnett 6dac48e5b8 Merge pull request #1913 from home-assistant/entities-padding-fix
Fixes #1910 - Entities Margin correction
2018-10-29 15:45:15 -04:00
Zack Arnett 7178d208d3 Light Card addition 2018-10-29 14:33:38 -04:00
Zack Arnett 00935c86d0 Add themes to entities (#1909) 2018-10-29 19:29:27 +01:00
Zack Arnett 3dde78cadf Adding div arround each row to deal with spacing 2018-10-29 13:54:10 -04:00
Zack Arnett 630214ddb9 Merge pull request #1911 from home-assistant/add-bypass
add arm_custom_bypass
2018-10-29 13:25:56 -04:00
Zack Arnett b3f8781646 Merge pull request #1912 from home-assistant/prettier-fix
Fixes errors in PRs based on dev
2018-10-29 11:54:36 -04:00
Zack Arnett b717402d26 Fixes errors in PRs based on dev 2018-10-29 11:37:23 -04:00
Zack Arnett 0d339e0cba add arm_custom_bypass 2018-10-29 11:33:01 -04:00
Ian Richardson 1d014bf6e3 Convert hui-section-row to TypeScript/LitElement (#1897)
* Convert hui-section-row to TypeScript/LitElement

* Address review comments
2018-10-29 10:53:17 +01:00
Zack Arnett 5ab15dc27f add arm night (#1908) 2018-10-29 08:59:33 +01:00
Timmo c347be6f35 Lovelace - Weather Card: Adjust margins and move text (#1880)
* Thermostat fix (#1867)

* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator

* Add version bump script

* Fix hass setting on stack (#1868)

* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint

* Bumped version to 20181026.1

* 🔨 move not text to header and name to secondary text

* 🔨 reduce some other margins
2018-10-29 08:30:56 +01:00
Paulus Schoutsen d47c2a6fe0 Merge remote-tracking branch 'origin/master' into dev 2018-10-29 08:29:44 +01:00
Ian Richardson 82eb33a7d4 Convert hui-climate-entity-row to TypeScript/LitElement (#1899)
* Convert hui-climate-entity-row to TypeScript/LitElement

* Address review comments

* Address review comments
2018-10-28 21:09:41 +01:00
Ian Richardson 4f6bae193d Convert hui-weblink-row to TypeScript/LitElement (#1898)
* Convert hui-weblink-row to TypeScript/LitElement

* Addressed review comments

* Made name and icon fields optional. Will create a corresponding PR to the docs to update them as Optional
* Updated entities-card to not check weblink config as that is the job of the element (entities-card should be updated to not check service-call config either as that is the job of the row element as well)

* Addressed review comments

That's cool!
2018-10-28 21:08:58 +01:00
Ian Richardson b8752c4158 Convert hui-divider-row to TypeScript/LitElement (#1896)
* Convert hui-divider-row to TypeScript/LitElement

* Add return types

* Fixed style issues

* Address review comments
2018-10-28 21:07:30 +01:00
Zack Arnett b6d0d777bf Gauge convert and fix issues (#1886)
* Gauge convert and fix issues

* Fixing Unit_of_Measurement

* Addressing Reviews

* Updating typing
2018-10-28 20:47:21 +01:00
Ian Richardson 8c155d4d0e Convert hui-state-badge-element to TypeScript/LitElement (#1892)
* Convert hui-state-badge-element to TypeScript/LitElement

The state image is not updating. This is true with the image-element as well. There's probably something simple between them both that I'm missing in my syntax for defining them

* Added htmlmap interface

* Addressed review comments
2018-10-28 20:36:53 +01:00
Ian Richardson bdf5d0f5c6 Convert hui-state-icon-element to TypeScript/LitElement (#1891)
* Convert hui-state-icon-element to TypeScript/LitElement

The icon is not currently dispalying and therefor cannot determine if changing as well. Everything else is working. Should probably create a base class for all these elements to extend for simple things like checking for the entity and setting hass correctly once I get that sorted out.

* Fixed setting of properties

* Remove ! on this._config

* Addressed review comments

* Moved event handlers to private functions to avoid arrow function creation on each render
* Check for `hass` before looking for state
* Movevd absolute import above relative imports
2018-10-28 20:35:48 +01:00
Ian Richardson 4959b861bd Convert hui-image-element to TypeScript/LitElement (#1890)
* Convert hui-image-element to TypeScript/LitElement

WIP
Some of the state portions passed down to ha-image are not updating the view.

* Fixed setting of properties

* Add tagnamemap interface

* Address review comments
2018-10-28 20:25:12 +01:00
Paulus Schoutsen a4fa0ae64b Handle no operation mode (#1901)
* Handle no operation mode

* Upgrade HAWS so we can use correct types

* Lint
2018-10-28 20:07:05 +01:00
Ian Richardson 7cd5f36c7a Convert hui-service-button-element to TypeScript/LitElement (#1888)
* Convert hui-service-button-element to TypeScript/LitElement

Will need to rebase once hui-icon-element PR is merged

* Added return types

* Convert ha-call-service-button attributes to properties

* Re-order imports
2018-10-28 13:57:52 +01:00
Ian Richardson ecfdb16957 Convert hui-state-label-element to TypeScript/LitElement (#1893) 2018-10-28 09:09:43 +01:00
Ian Richardson d31195fc87 Add to HTML tag name map (#1900) 2018-10-28 09:00:37 +01:00
eyager1 f3ef4cef74 Change icon to set operation_mode to "off" (#1883)
The choice of the "fan-off" icon to set the climate operation_mode to off should be changed . Many HVAC thermostats have a manual fan control.   The use of the fan icon in this card would imply that it would change or toggle the fan_mode of a climate component, not the operation_mode.  If setting the fan_mode of a climate component via this card were to be implemented in the future the use of "fan" and "fan-off" icons would be the most logical choices for icons.   I propose changing the icon that would set the operation_mode to off to generic power icon such as "power", or "power-off" to avoid confusion and to reserve the "fan" and "fan-off" icons for future use to change the the state of fan_mode.
2018-10-28 08:57:54 +01:00
Ian Richardson ec6db9c8ca Merge pull request #1895 from iantrich/row-types
Make hass optional within EntityRow as it may not be defined
2018-10-27 21:17:45 -05:00
Ian Richardson bb483c9d72 Make hass optional within EntityRow as it may not be defined 2018-10-27 21:00:06 -05:00
Zack Arnett 414448137a Merge pull request #1871 from iantrich/typescript-icon-element
Convert hui-icon-element to TypeScript/LitElement
2018-10-27 21:50:09 -04:00
Ian Richardson d0acef3ecb Add return types 2018-10-27 18:01:07 -05:00
Ian Richardson 5617416932 cleaned up elementconfig type order 2018-10-27 16:54:27 -05:00
Ian Richardson bf0eb798d9 Implemented navigate function
Fix linting error
2018-10-27 16:51:44 -05:00
Ian Richardson 8afc3812b7 Remove element-click refactor
Was unable to get computeTooltip to work for non-converted elements. There are not many elements that use this so will just remove this mixin once conversion of all to TS has been completed.
2018-10-27 16:40:43 -05:00
Ian Richardson 5a7841e6bf Pass correct node to handleClick 2018-10-27 15:51:34 -05:00
Ian Richardson 2758e86fab Convert hui-icon-element to TypeScript/LitElement and extract ElementClick mixin functions 2018-10-27 15:51:34 -05:00
Paulus Schoutsen d9935a714e Bumped version to 20181026.1 2018-10-27 12:05:14 +02:00
Paulus Schoutsen d6a9d6829b Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:05:06 +02:00
Paulus Schoutsen 8b02371786 Fix hass setting on stack (#1868)
* Fix hass setting on stack

* Don't set hass on pic elements if undefined

* Don't set hass on entity rows if undefined

* prefix config prop

* Pic elements set hass yoooo

* Remove interface

* Make stack config private

* Fix import

* Lint
2018-10-27 12:00:40 +02:00
Paulus Schoutsen 9a5b692204 Add version bump script 2018-10-27 11:40:52 +02:00
Zack Arnett 0b504c7df2 Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 11:16:10 +02:00
Zack Arnett 6cab3bbc8e Thermostat fix (#1867)
* Thermostat fix

* Fix for unknown operation mode

* No title for you

* I suck at removing unnecessary things

* Fixing pointless Ternary operator
2018-10-27 10:59:33 +02:00
Paulus Schoutsen 35194cf345 Extract navigate mixin (#1865)
* Extract navigate to function

* Remove eventsmixin properly and side effects
2018-10-27 10:56:03 +02:00
Paulus Schoutsen 13c5724d7c Fix version extract (#1866) 2018-10-26 23:22:45 +02:00
Zack Arnett 156ea62ffa Merge pull request #1863 from home-assistant/states-sensor-badges
States Sensor badges Padding fix
2018-10-26 15:24:10 -04:00
Zack Arnett 22693bcbcc Updating to meet Material Design standards 2018-10-26 14:11:11 -04:00
Zack Arnett ba70220659 Prettier fixes (#1864) 2018-10-26 19:40:53 +02:00
Gabriel Oliveira fc96d33d6a 1813 - Improve Hass.io System cards UI (#1862)
* 1813 - Improve Hass.io System cards UI

* 1813 - Move margin to proper card file
2018-10-26 19:38:02 +02:00
Zack Arnett 685915e13c Fix States Badges Padding 2018-10-26 12:39:40 -04:00
Paulus Schoutsen c39b17f12c Version bump to 20181026.0 2018-10-26 10:10:27 +02:00
Paulus Schoutsen 110d9a4cc1 update translations 2018-10-26 10:07:24 +02:00
Piotr Dobrowolski 8902328b30 Allow custom UI on "card" entities (#1824)
This will always render entities with `custom_ui_state_card` attribute
set in `entities` state card. Fixes custom UI on `media_player` objects.
2018-10-26 10:06:17 +02:00
Ian Richardson 7ff9211dfc Convert hui-picture-elements-card to TypeScript/LitElement (#1853)
* Convert hui-picture-elements-card to TypeScript/LitElement

Elements are not showing currently

* Address review comments

* Update demo
2018-10-26 10:04:04 +02:00
Paulus Schoutsen 17b4f873e7 Enforce prettier for TypeScript (#1860) 2018-10-26 09:37:47 +02:00
Zack Arnett 741c0c08b9 Thermostat Card LoveLace (#1814)
* POC/WIP: Thermostat Card

* Fix jQuery imports

* Cleaning out testing code and working on reviews

* Colors Dynamic + mode dynamic

* Minor changes

* adding html prefix

* Dynamic Text size and colors - getting somwhere slowly.

* Review Changes - Working version (i think)

* Updating Gallery Entry

* Travies Review

* Remove provide plugin, move CSS to JS

* Add provideHass to demo

* Demo fixes

* tweak margins

* Travis changes

* Style Tweaks

* Update to client Width range
2018-10-26 09:30:58 +02:00
Ian Richardson c42d9385d1 Convert hui-horizontal-stack-card to TypeScript/LitElement (#1851)
* Convert horizontal-stack to TypeScript/LitElement

Base stack-card class for horizontal and vertical stack cards to extend as their code overlaps a lot. Not sure if it should be in `common` or not

* rename locale hass variable

* Address review comments

* Abstract getCardSize
2018-10-26 09:27:57 +02:00
Thomas Lovén 8cbd667286 Lovelace - Long Press for everything (#1848)
* Long-press controller and lit-directive

* Enable long-press for glance card

* Enable long-press for entity-button

* Use new long-press for picture-elements

* Enable long-press for picture-entity card
2018-10-26 09:27:39 +02:00
Paulus Schoutsen 8bf60d502a Allow mocking websocket commands in the gallery (#1859)
* Allow mocking rest/websocket commands in the gallery

* typo
2018-10-26 09:27:10 +02:00
Zack Arnett 9f60499a3f Fix for input slider on states ui (#1861) 2018-10-25 20:15:31 -04:00
Paulus Schoutsen 56a9ff2b35 Gallery: fix notifs, fake config/services, glance demo (#1857)
* Gallery: fix notifs, fake config/services, glance demo

* Fix missing glance states

* Fill in more missing entities

* Add controller to entity filter card
2018-10-25 14:05:22 +02:00
Paulus Schoutsen 8c7b62509b Fix stack card getSize (#1856) 2018-10-25 12:29:05 +02:00
Ian Richardson 5e61065b64 Convert hui-error-card to TypeScript/LitElement (#1852) 2018-10-25 09:28:15 +02:00
Zack Arnett 39dd0524f8 Merge pull request #1792 from zsarnett/entities-card-lit
Updating Entities Card to TS+lit
2018-10-24 21:12:08 -04:00
Zack Arnett 25c6a4d3a6 Switching to new version of localize 2018-10-24 16:34:20 -04:00
Zack Arnett 0b9a4c56a9 Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett faa08f9e1f Review Update 2018-10-24 16:34:20 -04:00
Zack Arnett 7fbe0937df Review updates 2018-10-24 16:34:20 -04:00
Zack Arnett 66f5e34d52 Removing log console 2018-10-24 16:34:19 -04:00
Zack Arnett ddf59c8d5c Readding Homeasistant call in types 2018-10-24 16:34:19 -04:00
Zack Arnett 0856073e85 Changing element to unknown 2018-10-24 16:34:19 -04:00
Zack Arnett 06aef18d0c addressiing reviews 2018-10-24 16:34:19 -04:00
Zack Arnett be63648238 Review Update 2018-10-24 16:34:19 -04:00
Zack Arnett 56e01e66fb Review fix 2018-10-24 16:34:18 -04:00
Zack Arnett 772153e58a Update entities 2018-10-24 16:34:18 -04:00
Zack Arnett 3882a5aa89 Fix for Click Event 2018-10-24 16:34:18 -04:00
Zack Arnett edf8027bf4 Updating repeat array 2018-10-24 16:34:18 -04:00
Zack Arnett 2fd459381d Updating from Reviews 2018-10-24 16:34:17 -04:00
Zack Arnett 76e67d27e7 Update to Togglable entities 2018-10-24 16:34:17 -04:00
Zack Arnett 18be134ad8 Updating Entities Card to TS+lit 2018-10-24 16:34:17 -04:00
Paulus Schoutsen 1feb9f6a27 Bump version to 20181024.0 2018-10-24 22:14:06 +02:00
Paulus Schoutsen 337a760e73 Update translations 2018-10-24 22:13:49 +02:00
Thomas Lovén 54cd412107 Fix for some dev pages crashing on iOS. (#1850)
This should probably be reverted when the fixes in
https://bugs.webkit.org/show_bug.cgi?id=174629 has been rolled out.
2018-10-24 22:04:27 +02:00
Ian Richardson cf2171ece1 Convert hui-vertical-stack-card to TypeScript/LitElement (#1846)
Failed to rebase previous branch and am taking my working changes and applying to a new branch based off of current master.

Updated tslint.json to allow for prefixed `_` to variable names
2018-10-24 12:11:09 +02:00
Paulus Schoutsen 47fb8a5513 Fix mixin names (#1849) 2018-10-24 12:10:58 +02:00
Ian Richardson 06bf134bd4 Remove extending of HassLocalizeMixin as it is not needed (#1847) 2018-10-24 11:42:09 +02:00
Timmo cf8899fcbe ↕️ fix sorting of addons (#1845) 2018-10-24 09:58:44 +02:00
Charles Garwood c05b77961e Reduces device registry card height to only show 4 entities before scrolling (#1844) 2018-10-23 17:40:31 +02:00
Paulus Schoutsen 19c365cd12 Update version to 20181023.0 2018-10-23 14:01:51 +02:00
Paulus Schoutsen 29f032087e Update translations 2018-10-23 14:01:22 +02:00
Paulus Schoutsen d0cb7b9724 TS history data (#1839)
* Convert history data to TS

* Lint

* Extract cached history

* Move around
2018-10-23 13:54:52 +02:00
Thomas Lovén ad162677a6 Introduce typescript to hui-conditional-card (#1831) 2018-10-23 12:11:06 +02:00
Thomas Lovén fbbbe7d17d Add HomeAssistant object hass to LovelaceCard interface (#1843) 2018-10-23 10:53:42 +02:00
Ian Richardson ef0d11c042 connection is being populated for HomeAssistant type, not conn (#1841) 2018-10-23 09:33:04 +02:00
Ian Richardson fc2608980f Generate icons from `.ts. files (#1842) 2018-10-23 09:32:27 +02:00
Tom Raithel cc97e82a78 Improve size of device cards and add max-width for entities (#1838)
fixes #1751
2018-10-23 00:12:39 +02:00
Paulus Schoutsen 54e3191de6 Reinstate first call true 2018-10-22 21:40:35 +02:00
Paulus Schoutsen 4f8c8762c7 Fix second visit to history panel (#1835) 2018-10-22 21:37:21 +02:00
Zack Arnett c190f1986e Merge pull request #1834 from home-assistant/fix-chart-tooltip
Fix chart tooltip
2018-10-22 15:13:25 -04:00
Paulus Schoutsen b418048bc9 Fix chart tooltip 2018-10-22 21:07:31 +02:00
Paulus Schoutsen 0fdd1c74f2 Always define localize func (#1830) 2018-10-22 20:31:43 +02:00
Thomas Lovén 3b1b2b95e7 Add option to pick number of columns for glance card (#1832) 2018-10-22 20:10:48 +02:00
Paulus Schoutsen 3bb5484b7f Bump version to 20181021.0 2018-10-21 20:32:05 +02:00
Paulus Schoutsen d93c09b27b Fix reference to this.language (#1825) 2018-10-21 20:31:41 +02:00
Paulus Schoutsen e7ec18d270 Fix lint 2018-10-21 20:31:24 +02:00
Paulus Schoutsen 3ebe21e135 Update translations 2018-10-21 20:16:09 +02:00
Ian Richardson aca1ecf1ee Convert hui-markdown-card to TypeScript/LitElement (#1808)
* Convert hui-markdown-card to TypeScript/LitElement

* Addressed review comments

* Addressed review comments

* Addressed review comments
2018-10-21 20:09:11 +02:00
Charles Garwood e8ef2fdc2c this.language -> this.hass.language (#1816) 2018-10-21 15:12:28 +02:00
Paulus Schoutsen b129d5fb08 Refresh cloud status if paying sub info comes in (#1822) 2018-10-21 12:28:16 +02:00
Zack Arnett 11f4564465 Merge pull request #1807 from home-assistant/safer-icon-brightness
Safer brightness calculation for icons
2018-10-19 20:58:46 -04:00
Thomas Lovén c9d140281b fix typo in variable name 2018-10-19 16:35:52 +02:00
PhracturedBlue fa637a37d5 Fix mailbox issues with this.fire() and this.language undefined (#1809)
* Fix bug with this.fire and this.language

* Proper language variable
2018-10-19 16:15:31 +02:00
Thomas Lovén 1589c3fc51 Better error message 2018-10-19 15:29:05 +02:00
Thomas Lovén bdc2b31202 Complain and ignore instead of fixing 2018-10-19 12:07:33 +02:00
Thomas Lovén 0970e1e33c Fix overflow of image elements. (#1811)
* Fix overflow of image elements.

* Positioning safeguards
2018-10-19 10:41:08 +02:00
Timmo 028003dffc Set attributes in input form controls (#1805)
* 🔨 add autocapitalize, autocomplete, autocorrect and spellcheck attributes

* 🔨 switch autocapitalize to none

* 🔨 add attributes to dev-state

* 🔨 add attributes to entity-picker
2018-10-19 09:13:45 +02:00
Thomas Lovén 1eb4ac7f34 Safer brightness calculation for icons 2018-10-19 00:01:23 +02:00
Zack Arnett d97e356376 Merge pull request #1794 from zsarnett/glance-unavailable
Glance Card update to show when entity is unavailable
2018-10-18 11:21:08 -04:00
Zack Arnett d36352af16 Removing Repeat 2018-10-18 10:26:42 -04:00
Zack Arnett 05ae92d5f8 Merge pull request #1786 from zsarnett/glance-column-change
Changing Glance Column Width default to fill card
2018-10-18 09:52:16 -04:00
Paulus Schoutsen dce612f944 Trim whitespace 2018-10-18 15:40:37 +02:00
Ian Richardson 3a196203c3 Convert hui-iframe-card to LitElement/TypeScript (#1801)
* Convert hui-iframe-card to LitElement/TypeScript

* style cleanup

* Address review comments

* Addressed review comments
2018-10-18 15:37:01 +02:00
Zack Arnett 33578a6289 Updating from reviews 2018-10-18 09:28:49 -04:00
Zack Arnett 4c3db2119b Update to show when entity is unavailable 2018-10-18 09:14:32 -04:00
Zack Arnett 4a7ff3cd94 Removing Column width variable in interface 2018-10-18 09:06:29 -04:00
Paulus Schoutsen 5578580d78 Verison bump to 20181018.0 2018-10-18 13:39:45 +02:00
Paulus Schoutsen dc1d8366a5 Fix automation editor (#1804) 2018-10-18 13:39:18 +02:00
Paulus Schoutsen 252f0692c8 Add hass on badge (#1802)
* Add hass on badge

* Add more hass everywhere
2018-10-18 13:21:06 +02:00
Thomas Lovén 9d13925280 Show currently selected language in profile settings. Resolves #1797 (#1800) 2018-10-18 09:55:28 +02:00
Thomas Lovén 5462a71f52 Use this.hass.language since this.language is removed from localize mixin. (#1799) 2018-10-18 09:54:01 +02:00
Josh McCarty 42953a0b62 Use title case for all configuration pages (#1793)
Localize translations will need to be updated separately.
2018-10-18 09:25:35 +02:00
Thomas Lovén f146a1d80f Lovelace: Allow press-and-hold on picture-elements elements. (#1745)
* Allow press-and-hold on picture-elements elements.
2018-10-17 22:16:17 +02:00
Zack Arnett a113c71de7 Merge branch 'master' into glance-column-change 2018-10-17 15:06:29 -04:00
Zack Arnett 1f642f436a Adding Theme option to Glance and Button Cards (#1783)
* Adding Theme option to Glance and Button Cards

* Updateing Theme default to `default`

* Prettier Update
2018-10-17 20:20:05 +02:00
Zack Arnett 62d27a17d5 Takes out column width variable 2018-10-17 13:06:57 -04:00
Zack Arnett 35941a58a5 Prettier Fixes 2018-10-17 11:11:29 -04:00
Paulus Schoutsen 2ace2165e0 version bump to 20181017.0 2018-10-17 14:06:59 +02:00
Paulus Schoutsen 1cfcacfa9a Update translations 2018-10-17 14:06:20 +02:00
Paulus Schoutsen e020fd1154 👋 decorators (#1790) 2018-10-17 13:58:24 +02:00
Paulus Schoutsen 1dcc645fec Guard cloud info being null (#1788) 2018-10-17 13:48:31 +02:00
Thomas Lovén 87fba75860 Fix margins in vertical-stack (#1789) 2018-10-17 13:48:04 +02:00
Paulus Schoutsen 294360d35a Fix babel config 2018-10-17 09:20:41 +02:00
Paulus Schoutsen a7684d7206 Add some decorators (#1784)
* Add some decorators

* Disable sort keys

* Add babel plugins

* Update typescript to 7.1
2018-10-16 23:30:13 +02:00
Paulus Schoutsen af81ede100 Fix showing sub info (#1785) 2018-10-16 23:29:40 +02:00
Zack Arnett 698beedaa2 Changing Clance Column width default to fill card 2018-10-16 16:20:28 -04:00
Paulus Schoutsen a6b4cce7f3 Upgrade MDI icons (#1781) 2018-10-16 20:02:09 +02:00
ehendrix23 ba66ff840f Added domain icon for homekit (#1782)
Added domain icon home-automation for domain homekit. With PR home-assistant/pull/17180 the homekit component will create entries within logbook. This PR is to set the icon displayed then for those logbook entries to be the home-automation icon.
2018-10-16 19:06:19 +02:00
Zack Arnett c296f33ba1 Update Button Card to TS + Lit (#1778)
* Updating from Reviews - Reset commits and force pushing

* Removing Redundant check on config

* Checking Entity before setting config
2018-10-16 19:04:29 +02:00
Paulus Schoutsen e7a49192bd Type check as part of lint (#1780)
* Type check as part of lint

* Lint

* Validate service exist for call-service action

* Fix for of
2018-10-16 17:21:05 +02:00
Thomas Lovén 5774d913af Lovelace: Add a label entity row (#1779)
* Add a label entity row

* Style fixes

* Allow blank label text

* Rename to section
2018-10-16 16:50:40 +02:00
Charles Garwood b068db3f7a Hide Z-Wave "Remove/Replace Failed Node" Buttons unless nodes are failed (#1777)
* Hide failed node buttons if node isn't failed

* Cleanup
2018-10-16 09:05:15 +02:00
Paulus Schoutsen 8e49241e7c Add types to hass object (#1776) 2018-10-16 09:04:10 +02:00
Tom Raithel b8cee5cc9c Fix Icon spacing in Logbook list (#1774) 2018-10-15 21:02:32 +02:00
Zack Arnett 794808d3a7 Button Card - Lovelace Addition (#1766)
* Initial Commit - Button Card

* Fixing Coloring Review

* Resolving Reviews

* Updating last Reviews
2018-10-15 20:07:13 +02:00
Zack Arnett 48f6d1dfec Adding Alarm Panel to Lovelace (#1758)
* Adding Alarm Panel

* Updating error in Lint

* Review Changes

* Using label-badge for upper right icon

* Resolving Reviews

* Prettier Fixes

* Updating style to fix overlapping state badge

* Adding Alarm Card back to create element

* Resolving reviews and reposition of Icon

* Updating to Localize Labels
2018-10-15 19:14:43 +02:00
Paulus Schoutsen 97e1aae9c0 Introduce TypeScript (#1773) 2018-10-15 19:07:08 +02:00
Paulus Schoutsen e2511c5ed3 Remove default export fire event (#1772)
* Remove default export fire event

* Update provide_hass.js
2018-10-15 06:17:33 +02:00
Paulus Schoutsen 74bdfc8c2d Use style.setProperty instead of updateStyles 2018-10-14 22:53:33 +02:00
Paulus Schoutsen fbccf23d36 Clean up localize mixin (#1771) 2018-10-14 22:40:43 +02:00
Paulus Schoutsen 906aaa15a3 20181014.0 2018-10-14 19:05:46 +02:00
Paulus Schoutsen 0ae1f9c754 Update Translations 2018-10-14 19:05:45 +02:00
Adam Mills f1bd89fd02 Fix checking for syntax if for doesn't exist (#1769) 2018-10-14 19:04:51 +02:00
Paulus Schoutsen 3949b47e51 Introduce object rest spread (#1763) 2018-10-14 19:03:25 +02:00
Bram Kragten 2f6595bca7 add min-width to childeren of horizontal stack (#1761)
See https://css-tricks.com/flexbox-truncated-text/
2018-10-13 16:02:47 +02:00
Paulus Schoutsen 3bcd0ddc46 Migrate Babel 6 -> 7 (#1762)
* Migrate Babel 6 -> 7

* Update babel-eslint
2018-10-13 11:25:03 +02:00
Paulus Schoutsen ca93c2cfcd Convert glance card to lit (#1760)
* Convert glance card to lit

* Guard for hass before config

* Lint

* better click listening

* Move config check

* Format HTML
2018-10-12 22:18:38 -07:00
Paulus Schoutsen a633e3c553 version bump to 20181012.0 2018-10-12 14:49:33 +02:00
Paulus Schoutsen bef2731207 Update translations 2018-10-12 14:49:15 +02:00
Paulus Schoutsen ee53ee4077 Missing localize (#1757) 2018-10-12 12:50:58 +02:00
Paulus Schoutsen 34bfc12647 Prettier 💎 (#1737)
* Add prettier

* Apply Prettier
2018-10-11 12:22:11 +02:00
Nikolay Vasilchuk 3b425c3e14 Logbook: filter by entity and period (#1728)
* Filter logbook by entity_id

* Filter logbook by period

* Filter logbook styles

* CI Fix

* Review

* Review

* CI Fix
2018-10-11 11:46:16 +02:00
Zack Arnett 69eb007ea2 Adding Gauge Card to Lovelace (#1742)
* Commiting Only needed Files. Adds Gallery Entry

* Adding Attribute current_temperature to gallery entry config

* Fixing code from review and updating gallery

* Updating Gallery to show errors

* Resolving Reviews and updating gallery

* Deleting unused line

* Minor changes

* Address my own comments.
2018-10-11 10:30:56 +02:00
Jerad Meisner 90c3350d40 Fix error when only one state history entry. (#1750) 2018-10-09 11:12:04 +02:00
John Arild Berentsen a7ddbd72b3 Fix non-working zwave log andriod PWA (#1714)
* Fix non-working andriod PWA

* Forgot clearing dialog setInterval

* Correctly identify pwa or browser interval clearing

* Move isPwa to common

* Stab at making imorted dialog

* Redone refresh

* Remove unused property
2018-10-09 11:10:32 +02:00
Paulus Schoutsen 5a2ee98ae2 Version bump to 20181007.0 2018-10-07 23:15:44 +02:00
Karl Kihlström ea0b5d5e26 Add sensor-graph-card (#1744)
* Added sensor-graph-card

* Removed Object as type

* Removed unused attributes

* Fixed card config

* Changed svg rendering to lit html svg

* Fixed config conversion

* Changed to _config, _entity, _line as private

* Removed lit-element package

* Renamed to hui-sensor-card

* lit-html 0.6.2 changes

* Added logic for graph config option
2018-10-07 23:13:10 +02:00
Paulus Schoutsen af2cb1be1a Update Lit to 0.6.2 (#1748) 2018-10-07 21:32:50 +02:00
Jerad Meisner c30e7ac683 Add time created to persistent notifications. (#1733)
* Add time created to persistent notifications.

* Add tooltip to show actual date.

* Fix style rules.

* Fix duplicate ids.
2018-10-07 18:59:54 +02:00
Paulus Schoutsen 7fb5ac11fd Update translations 2018-10-07 18:52:30 +02:00
Paulus Schoutsen b2dc0ac819 Proper fix for mjs to hassio too 2018-10-07 18:52:01 +02:00
Paulus Schoutsen dbdf873ba4 transpile mjs (#1746) 2018-10-07 14:11:33 +02:00
Paulus Schoutsen 1b70b6e88c Introduce Lit Element (#1738) 2018-10-07 11:07:02 +02:00
Paulus Schoutsen c90e13d35e Inline domain icon (#1739) 2018-10-05 21:29:50 +02:00
Paul Davis 442375f76e fix dockerfile for new setups (#1740) 2018-10-05 21:23:31 +02:00
Paulus Schoutsen 81d493e1d6 Version bump to 20181005.0 2018-10-05 17:46:49 +02:00
Paulus Schoutsen 151f16af47 Update translations 2018-10-05 17:46:34 +02:00
Adam Mills 606a220603 [WIP] Handle dict syntax in state trigger "for" (#1725)
* Handle dict syntax in state trigger "for"

* padStart polyfill
2018-10-05 11:33:27 +02:00
Thomas Lovén 362e758c40 Lovelace: Allow glance card to assume theme colors (#1732)
* Allow glance card to assume theme colors

* Better configuration options

* Added example to gallery

* Fixing problems from review
2018-10-05 10:26:31 +02:00
Paulus Schoutsen 2eb3a55f59 Remove last used from long lived access token list. (#1727) 2018-10-05 10:23:29 +02:00
Paulus Schoutsen 6720c03cbc Fix language reference (#1735) 2018-10-04 13:24:07 +02:00
Jerad Meisner a76386b53b Fix console errors in LL when entities are unavailable. (#1734) 2018-10-04 09:44:01 +02:00
Thomas Lovén 0243632357 Remove margin from conditional if not shown (#1730) 2018-10-04 09:36:14 +02:00
Paulus Schoutsen bb24b55a67 Update translations 2018-10-03 15:28:12 +02:00
Paulus Schoutsen f47fd8eec4 Bump version to 20181002.0 2018-10-02 14:17:58 +02:00
Paulus Schoutsen f1f9f13d82 Update translations 2018-10-02 14:17:44 +02:00
Paulus Schoutsen d2dd82c0ec Use new LL command (#1702) 2018-10-02 14:16:52 +02:00
Paulus Schoutsen e1738b625d Fix link color for Hass.io update panel (#1721) 2018-10-02 14:16:35 +02:00
William Scanlon 7aa37183b6 Convert climate water heaters to new water_heaters component (#1661)
* Water heater support

* Attempt to fix lint errors.

* Fixed another lint issue
2018-10-02 14:16:19 +02:00
Jason Hu c91b28a850 L10N config-entries (#1718)
* L10N config-entries

* Lint

* Address review comment

* Add back parentheses
2018-10-02 13:27:18 +02:00
Adam Mills 70225c1a18 Expose state trigger For configuration in editor (#1723) 2018-10-02 13:26:56 +02:00
Jason Hu 3d9d7d899d Fix zero degree in weather card (#1720)
* Fix zero degree display in weather card

* Fix zero degree display in weather more-info dialog
2018-10-01 13:30:48 +02:00
Otto Winter f0619c7d13 Add pressure sensor device class (#1713) 2018-10-01 12:32:03 +02:00
Jason Hu 305fa84d38 Apply user language preference on datetime formatting (#1719) 2018-10-01 12:08:21 +02:00
Jason Hu edf0e2bedb Add l10n suppor for profile panel (#1717)
* L10N support for profile panel and mfa module

* L10N support for mfa setup flow

* Lint

* Lint

* Lint
2018-10-01 12:02:41 +02:00
Anders Melchiorsen 8be5561d19 Remove turn_off from brightness slider (#1715) 2018-10-01 10:56:08 +02:00
Paulus Schoutsen f11ca53282 Version bump to 20180927.0 2018-09-27 23:03:17 +02:00
Paulus Schoutsen 2c25d6cc0a Update translations 2018-09-27 23:03:02 +02:00
Paulus Schoutsen db6ab4d8ec Update Z-Wave icon (#1711) 2018-09-27 23:02:22 +02:00
Jerad Meisner 3961eff372 Extend paper-slider to fix rounding issue. (#1709) 2018-09-27 10:06:56 +02:00
Charles Garwood 458a7827f9 Fix for content appearing behind header in hassio and config panels (#1708)
* Call iron-resize on route change

* Add EventsMixin to hassio-main
2018-09-26 20:37:03 +02:00
Paulus Schoutsen 68d1c77a79 Bump version to 20180926.0 2018-09-26 11:10:46 +02:00
Paulus Schoutsen aa97e30d51 Add card for entities without devices (#1706)
* Add card for entities without devices

* Better empty check
2018-09-26 11:09:33 +02:00
Paulus Schoutsen 9027d7d391 Update translations 2018-09-26 10:57:56 +02:00
Paulus Schoutsen 974fd5de0f Allow description when creating entry (#1704)
* Allow description when creating entry

* Lint
2018-09-25 16:32:45 +02:00
Paulus Schoutsen f9d28fbf83 Add alert icon" (#1703) 2018-09-25 14:42:23 +02:00
Paulus Schoutsen b944089087 Version bump 20180924.0 2018-09-24 11:46:26 +02:00
Paulus Schoutsen 7b6cf28459 Update translations 2018-09-24 11:46:10 +02:00
Paulus Schoutsen be91688efb Add link to release notes (#1694) 2018-09-24 11:05:23 +02:00
Paulus Schoutsen a5d47231aa Fix text color for system panel (#1695) 2018-09-24 11:05:16 +02:00
Paulus Schoutsen 01e833a399 Fix ha-paper-slider (#1700) 2018-09-24 11:05:03 +02:00
Charles Garwood c363ba8056 Fix more-info graph when expanded (#1696) 2018-09-24 10:01:40 +02:00
schumpeter2 7cec39ba6c Fix more-info dialog call for groups of entities having a common domain (#1698) 2018-09-24 09:58:25 +02:00
PhracturedBlue 3f15cbd2bd Add support for multiple separate mailboxes (#1660) 2018-09-21 11:56:30 +02:00
Paulus Schoutsen 3235d33463 Add firmware 2018-09-21 10:41:25 +02:00
Paulus Schoutsen 140597c7f8 Minor CSS Fixes 2018-09-21 10:00:03 +02:00
Paulus Schoutsen e1407a7d73 Use human readable description if possible (#1688)
* Use human readable description if possible

* lint
2018-09-21 09:20:07 +02:00
Paulus Schoutsen 03525c010f Allow toggling cloud integrations (#1690) 2018-09-21 09:02:24 +02:00
Paulus Schoutsen 8dc202af92 Version bump to 20180920.0 2018-09-20 10:53:41 +02:00
Paulus Schoutsen 369977f8f3 Update translations 2018-09-20 10:52:56 +02:00
randellhodges 7f8c092dfc Normalize more-info bottom padding (#1682) 2018-09-20 10:20:12 +02:00
randellhodges d517cad6e6 fixed weather-lightning icon (#1684) 2018-09-20 10:19:04 +02:00
Paulus Schoutsen 62a68890d3 Show sub info (#1685)
* Show sub info

* Fix observer
2018-09-20 10:18:39 +02:00
Paulus Schoutsen 3d8a8cc77b Fix minifier (#1683) 2018-09-20 00:08:25 +02:00
Paulus Schoutsen 55dc35a8fc Update version to 20180919.0 2018-09-19 15:16:35 +02:00
Paulus Schoutsen 82e49a5e44 Update translations 2018-09-19 15:16:14 +02:00
Paulus Schoutsen 17ac6f96a0 Update deps (#1678)
* Update deps

* Lint

* Fix lint
2018-09-19 15:15:16 +02:00
Pascal Vizeli 085db3e0a6 Fix URL for nabucasa page (#1677) 2018-09-19 14:59:59 +02:00
Paulus Schoutsen 348bebc417 Update material design sidebar (#1676) 2018-09-19 14:59:48 +02:00
Paulus Schoutsen 15d21cc673 Fix miniy fail (#1674) 2018-09-19 11:32:24 +02:00
Paulus Schoutsen 7e0ff14f28 Merge overview into integrations (#1672)
* Merge overview into integrations

* Lint
2018-09-19 11:11:00 +02:00
Charles Garwood 67d09e8b3d Add loaded components popup to dev-info (#1666)
* Add loaded components popup to dev-info

* Change dialog handling
2018-09-18 14:54:37 +02:00
randellhodges ce3b53a920 Image aspect ratio (#1665)
* Allow user to specify an aspect ratio for various images

* added a comment on what is supported

* fixed typo

* Fixed lint and test errors
2018-09-17 21:16:00 +02:00
Paulus Schoutsen a32809e14b Update padding checkbox 2018-09-17 17:23:56 +02:00
Paulus Schoutsen 1d8c515da2 Bump to 20180917.0 2018-09-17 14:17:08 +02:00
Paulus Schoutsen 81e0f1a025 Update translations 2018-09-17 14:16:47 +02:00
Paulus Schoutsen c593e2789c Add basic overview page (#1668)
* Add basic overview page

* Add empty state

* Show hub devices

* Add more info to config entries page

* Lint
2018-09-17 14:11:07 +02:00
cdce8p 650d2d7a47 Lovelace Custom ui fallback (#1670)
* Custom ui elements fallback to default instead of error

* Lint

* Changed fallback to timeout
2018-09-17 14:06:17 +02:00
Paulus Schoutsen 2665c86683 Show entities under configured integrations (#1663) 2018-09-17 10:00:21 +02:00
Jerad Meisner 8b262f3424 Added entity row for media players. (#1495)
* Added entity row for media players.

* Use artist:track/series:episode for music/tvshow.

* Add controls

* Comments

* Fixes

* Fixes for off states. Added gallery demo.

* Resolve conflicts. Change to use template extension points.

* Fixes
2018-09-17 09:58:43 +02:00
Jerad Meisner 5187f3b84f Get persistent_notifications for lovelace from websocket. (#1649)
* Get persistent_notifications for lovelace from websocket.

* Only fetch notifications on event.

* Use collection for notifications.
2018-09-17 09:53:14 +02:00
Charles Garwood 443e083a79 Add Z-Wave Entity Information/more-info button (#1664)
* Add Entity Info button

* Cleanup
2018-09-17 09:43:13 +02:00
Paulus Schoutsen 6c262c20ce Handle defaults, required and optional fields (#1662)
* Handle defaults, required and optional fields

* Lint
2018-09-17 09:42:43 +02:00
Paulus Schoutsen cfbf2903c1 Version bump to 20180916.0 2018-09-16 21:20:49 +02:00
Paulus Schoutsen 19b8ff7d9f Update translations 2018-09-16 21:20:24 +02:00
Paulus Schoutsen ec6ffd2115 Update text 2018-09-16 21:19:58 +02:00
Paulus Schoutsen 433b1e2979 Fix translation 2018-09-12 15:30:33 +02:00
Paulus Schoutsen bd3d079dfb Version bump to 20180912.0 2018-09-12 13:13:49 +02:00
Paulus Schoutsen fe776191b7 Update translations 2018-09-12 13:13:30 +02:00
Paulus Schoutsen c546d8787d Add last used to token on profile page (#1659) 2018-09-12 13:12:26 +02:00
Jason Hu a672b84b88 Disable delete icon if token is current used one (#1658) 2018-09-12 09:50:12 +02:00
Paulus Schoutsen e3a137c675 Version bump to 20180911.0 2018-09-11 21:35:28 +02:00
Paulus Schoutsen 10aa99abdc Update translations 2018-09-11 21:35:08 +02:00
Paulus Schoutsen 34567d451f Add UI for tokens (#1656)
* Add UI for tokens

* Update strings

* Update text

* Update text
2018-09-11 21:29:40 +02:00
PhracturedBlue 494e3dc62c Fix authorization and display issues in mailbox view (#1610)
* Mailbox: Fix authorization issues.  Remove backdrop

* Fix linting issues

* Use HA Dialog system.  Fix authorization

* Add back missing backdrop

* Linting errors

* Use callApi.  Add error checking and spinner

* linting error

* more linting errors

* minor requested fixes

* Use let/const.  Fix lint issues

* Remove blob test that can never fail

* More let vs var fixes

* More minor requested fixes

* Rework code to use fetchWithAuth

* Async tweaks

* Lint

* Fix onboarding

* Add credentials for onboarding

* Lint
2018-09-11 11:33:57 +02:00
Paulus Schoutsen 0997274f29 Update external auth (#1655)
* Update external auth

* Lint
2018-09-11 10:24:01 +02:00
cdce8p 76161329b6 Add lovelace template extension points (#1653) 2018-09-10 23:15:29 +02:00
John Arild Berentsen 8505750958 Load ozw-log in new window, and add tail-like button. (#1652)
* Load log in new window, and add tail

* avoid duplicate code
2018-09-10 21:53:16 +02:00
Paulus Schoutsen 4077105db1 Version bump to 20180910.0 2018-09-10 13:28:51 +02:00
Paulus Schoutsen 3f31d83a55 Update translations 2018-09-10 13:28:33 +02:00
Paulus Schoutsen d729e3c567 Update HAWS to 3.1.2 2018-09-10 13:25:50 +02:00
Paulus Schoutsen 9af75f9a43 Prevent changing domain entity ID (#1650) 2018-09-10 13:14:21 +02:00
Alessandro Staniscia d32d334a2e Review Docker management (#1113)
* Review Docker management ( linked with #934 )

*  fix comment by @balloob

* Explicit remove of  package-lock.json

* moved on feature branch, merge docker scripts, added documetation

* Used alphine as requested by @balloob on https://github.com/home-assistant/home-assistant-polymer/pull/947 and followed the @mcspr comment https://github.com/home-assistant/home-assistant-polymer/issues/934

* Remove package-lock from gitignore, we don't use npm

* Update for new build instructions
2018-09-10 11:58:18 +02:00
Charles Garwood 94006a843c ZWave Panel Updates (#1647)
* Add padding to zwave log text

* Replace entity dropdown with actual entity_id

* Add Node Information button for more-info popup, and remove less-functional Node Info card.

* Fix indentation

* Address review comments

* Fix lint/mixin

* Update comment
2018-09-10 10:16:10 +02:00
Jason Hu 4790590327 Try to resolve workbox warning (#1648) 2018-09-10 10:15:20 +02:00
Charles Garwood 7cf7763e21 Fix body stream already read error (#1646) 2018-09-08 21:06:07 +02:00
Paulus Schoutsen 0d7979a72f Add revoke token to (external) auth (#1639)
* Add revoke token to external auth

* Lint

* Update to HAWS 3.1.1

* Fix constant
2018-09-07 20:37:06 +02:00
Paulus Schoutsen 300425e698 Redirect to onboarding from auth page (#1640)
* Redirect to onboarding from auth page

* Remove left over trial code
2018-09-07 20:13:00 +02:00
Stephen Vanterpool 59010baf89 Fix the way calls are made over the javascript bridge (#1644)
* Fix the way calls are made over the javascript bridge

* Update external_auth.js
2018-09-07 20:12:52 +02:00
Paulus Schoutsen 47fcb122a2 Don't delete system generated user (#1638) 2018-09-07 19:41:06 +02:00
Paulus Schoutsen bbb50b1397 Better handle auth (#1637)
* Better handle auth

* Lint
2018-09-07 19:40:56 +02:00
Paulus Schoutsen ae8724d699 Compress using zopfli (#1636) 2018-09-05 11:41:03 +02:00
Paulus Schoutsen 2169f6979d Remove link to alexa web 2018-09-04 15:02:35 +02:00
Paulus Schoutsen 9cc577e9c7 Add external auth (#1621)
* Add external auth

* Lint

* Warn when external auth not present
2018-09-03 09:00:39 -07:00
Paulus Schoutsen 6ead58f62f Version bump to 20180903.0 2018-09-03 13:17:04 +02:00
Paulus Schoutsen ec3118227c Update translations 2018-09-03 13:16:45 +02:00
Paulus Schoutsen 0d3d9bc78a Upgrade MDI icons (#1630) 2018-09-03 13:07:58 +02:00
Jason Hu e16b3db0d4 Ask "save to login" after hassConnected (#1631) 2018-09-03 13:07:34 +02:00
Timmo cdab874b5b Autocapitalization of username field (#1627)
* 🔨 fix capitalization of username field

* 🔨 change words to on
2018-09-03 13:06:15 +02:00
Paulus Schoutsen bf40995b16 Show an error when invalid client id or redirect uri (#1620) 2018-09-02 10:29:38 -07:00
Paulus Schoutsen 68b3a4fbb7 Version bump to 20180831.0 2018-08-31 12:45:59 +02:00
Paulus Schoutsen c38bfa1101 Update translations 2018-08-31 12:45:42 +02:00
Jerad Meisner af7a85eeb7 Force line chart for climate state history. (#1617)
* Force line chart for climate state history.

* Simplify climate check
2018-08-31 12:44:07 +02:00
Paulus Schoutsen 2bd5dc21a8 Fix refresh user (#1618)
* Fix refresh user

* Lint
2018-08-31 12:28:32 +02:00
Paulus Schoutsen 18a151c8e8 Fix Safari Profile page (#1619) 2018-08-31 11:17:57 +02:00
Paulus Schoutsen da19a1a9c6 Fix header for glance cards 2018-08-31 11:15:06 +02:00
Paulus Schoutsen 45cdb5a3e4 Use new version of HAWS (#1612)
* Use new version of HAWS

* Fix init page

* Lint

* Fix tests

* Update gitignore

* Clear old tokens, use new key to store
2018-08-31 09:45:58 +02:00
Paulus Schoutsen ab19dbc35e Version bump to 20180829.1 2018-08-29 22:49:34 +02:00
Paulus Schoutsen 6a443734a1 Update translations 2018-08-29 22:49:21 +02:00
Jason Hu f0251d3056 Fix for login flow switch (#1609)
* Fix for login flow switch

* Switch flow shall clear step data
2018-08-29 22:48:32 +02:00
Paulus Schoutsen 31127ccf29 Version bump to 20180829.0 2018-08-29 10:23:27 +02:00
Paulus Schoutsen b97e055b39 Update translations 2018-08-29 10:22:57 +02:00
Jason Hu f4ce1ee0fa Add some translation for login flow (#1608)
* Add some translation for login flow

* Fix typo
2018-08-29 10:18:55 +02:00
PhracturedBlue 2a29311ca5 Lovelace: Don't show badge entities in unused list (#1607) 2018-08-28 20:34:12 +02:00
Paulus Schoutsen 8cfd7ee170 Version bump to 20180827.0 2018-08-27 22:20:31 +02:00
Paulus Schoutsen 59a8354a7f Update translations 2018-08-27 22:20:17 +02:00
Paulus Schoutsen f443942e03 Authorize onboarding (#1603)
* Tweak onboarding + authorize

* Authorize/Onboarding pimp

* More tweaks

* Comments
2018-08-27 22:10:15 +02:00
Alok Saboo 772208ba22 Fixed typo (#1604) 2018-08-27 21:50:14 +02:00
Paulus Schoutsen e46a1be5d7 Center svg in markdown 2018-08-26 22:00:57 +02:00
Paulus Schoutsen d295a9d0e4 Version bump to 20180826.0 2018-08-26 21:24:03 +02:00
Paulus Schoutsen f0bf34073b Update translations 2018-08-26 21:23:25 +02:00
Jason Hu 73098d106d disableXssFilter ==> allowSvg (#1600)
* disableXssFilter ==> allowSvg

* Move allowSvg patch to _render()

* Add comment
2018-08-26 11:50:37 -07:00
Jason Hu c8ea4cd85e Disable XSS filter in flow step desc markdown (#1599) 2018-08-26 12:44:50 +02:00
Paulus Schoutsen f64ddf46e2 Update frontend to 20180825.0 2018-08-25 11:13:29 +02:00
Paulus Schoutsen 5e6e3dd793 Update translations 2018-08-25 11:13:14 +02:00
Paulus Schoutsen 13ff59ec89 Fix hass icons 2018-08-24 21:59:53 +02:00
Jason Hu 7cc3fc728b Add ha-mfa-modules-card and setup flow (#1590)
* Add ha-mfa-modules-card and setup flow

* Add hass-refresh-current-user event

* Address code review comment
2018-08-24 19:35:33 +02:00
Glenn Waters ec79e12bf3 Fix for missing 'Disarm' button (#1549)
* Fix for missing 'Disarm' button

Disarm button does not show when in `arming` and `disarming` state.

* Update more-info-alarm_control_panel.js

Disarm button visible on arming state.
2018-08-24 16:57:04 +02:00
Paulus Schoutsen d38b989c02 Version bump to 20180824.0 2018-08-24 15:50:17 +02:00
Paulus Schoutsen f9a629bf8d Update translations 2018-08-24 15:49:58 +02:00
Jerad Meisner 02edbce460 Notification drawer (#1536)
* Notification drawer MVP concept

* Localization

* Don't use events.
2018-08-24 15:46:58 +02:00
Jerad Meisner b9f84d012f Add default_zoom option to map card. (#1592) 2018-08-24 10:27:36 +02:00
Jerad Meisner 421478bb49 Hide toolbar on scroll. (#1595) 2018-08-24 10:25:58 +02:00
Jerad Meisner cde106bd77 Fix custom icon colors in entities and glance cards. (#1587)
* Fix custom icon colors in entities and glance cards.

* Use ha-icon directly in state-badge.
2018-08-23 22:24:21 +02:00
John Arild Berentsen 144f00e2cc reset entity properties on 404 (#1591) 2018-08-23 22:23:00 +02:00
squidwardy 74185f0beb Add support for JS modules in custom panels. (#1588)
* Added support for JS modules in custom panels.

* Update load-custom-panel.js

* Corrected syntax

* Force push

* Fixed EOL

* Delete index.html

* Fixed tempA href missing module_url name
2018-08-23 11:14:47 +02:00
Paulus Schoutsen 09f238162e Cleanup (#1575) 2018-08-21 08:59:54 +02:00
Jerad Meisner 13ece650bc Fix input_number flexbox. (#1586) 2018-08-21 08:59:39 +02:00
Paulus Schoutsen cbef262805 Version bump to 20180820.0 2018-08-20 11:50:51 +02:00
Paulus Schoutsen cbdd641d5f Update translations 2018-08-20 11:50:33 +02:00
Paulus Schoutsen f435c38aa5 Upgrade websocket lib to 2.1 (#1583) 2018-08-20 11:49:24 +02:00
Paulus Schoutsen 4e135681bc Fix push notifications (#1585) 2018-08-20 11:49:13 +02:00
Paulus Schoutsen 8da969455b Add period to push notif toggle description 2018-08-19 18:51:24 +02:00
Paulus Schoutsen f4ebf77b36 bump frontend to 20180818.0 2018-08-18 11:11:58 +02:00
Paulus Schoutsen bb3af18e46 Only ask to save login with new auth (#1581) 2018-08-18 11:11:17 +02:00
Jerad Meisner c025df2974 Use core temperature units for climate entities. (#1580) 2018-08-17 09:29:42 +02:00
Paulus Schoutsen 5cf5e6ec6c Version bump to 20180816.1 2018-08-16 22:14:26 +02:00
Paulus Schoutsen 6236252a90 Fix editor 2018-08-16 22:14:06 +02:00
Paulus Schoutsen 9f71d9331c Fix automation editor safari (#1576)
* Use ha-textarea

* Lower Safari requirement to 10.3

* Lint
2018-08-16 21:49:35 +02:00
John Arild Berentsen 488e6d09ca Fix Ascii not updating properly and code length limited to current code length (#1577) 2018-08-16 20:49:19 +02:00
Paulus Schoutsen 00b1fbe091 Version bump to 20180816.0 2018-08-16 14:21:06 +02:00
Paulus Schoutsen c1ea1bb54f Update translations 2018-08-16 14:20:54 +02:00
John Arild Berentsen 49a5d922fc Zwcp small fixes, style, refactor etc. (#1570)
* Fix promise errors

* Style, fixes and refactors

* Missed some files

* Short key
2018-08-16 14:18:50 +02:00
Paulus Schoutsen a960084438 Include ES5 version of hass-icons (#1574) 2018-08-16 13:39:43 +02:00
Jason Hu 8ae44e6f7f Fix stateObj.attributes.entity_id null issue (#1572) 2018-08-16 10:16:34 +02:00
Paulus Schoutsen 95ea220936 Fix build 2018-08-15 12:30:45 +02:00
Paulus Schoutsen 7ffdb3ddc7 Use ha toast for frontend notification 2018-08-15 10:48:23 +02:00
Jason Hunter decbbc9acd Media Player: Standardize computePlaybackControlIcon (#1571)
* standardize computePlaybackControlIcon and add play/pause icon for UNKNOWN state

* fix linting errors
2018-08-15 10:45:36 +02:00
Paulus Schoutsen 496e05651e Version bump to 20180813.0 2018-08-13 21:24:42 +02:00
Paulus Schoutsen efd36bf207 Update translations 2018-08-13 21:24:42 +02:00
Paulus Schoutsen 283668ef18 Fix disconnected notification (#1569) 2018-08-13 21:22:23 +02:00
Paulus Schoutsen 310299367b Ask to store auth (#1568)
* Ask to store auth

* Reorg auth
2018-08-13 21:10:39 +02:00
Paulus Schoutsen 63c7c55843 Cleanups (#1566)
* Cleanup core.js

* Add ha-toast

* Lint

* Remove unused import
2018-08-13 15:48:54 +02:00
Jerad Meisner 4bc83b01d3 Remove _hiddenState method. (#1557)
* Remove _hiddenState method since it always has the same result.

* Hide state when row element is narrow. Add input_number row to gallery.
2018-08-13 09:42:09 +02:00
Paulus Schoutsen 743c3ab784 update version to 20180811.0 2018-08-11 08:55:10 +02:00
Paulus Schoutsen 98d2b0b889 Update translations 2018-08-11 08:54:55 +02:00
Paulus Schoutsen c39417c93d Move user settings to profile page (#1560) 2018-08-11 08:46:16 +02:00
Paulus Schoutsen 1b2b62f04c Reorg root (#1559)
* Extract element from entrypoint

* Reorg root

* Extract more

* Lint

* Extract connection

* Extract notification

* Lint

* Also split out more info dialog

* Consolidate dynamic element creation
2018-08-11 08:45:11 +02:00
Jerad Meisner 1a31855fc8 Right-align climate row state display. (#1558) 2018-08-10 08:22:58 +02:00
Paulus Schoutsen f4e92dedff Fix links to dev tools
Fixes #1556
2018-08-09 23:13:33 +02:00
John Arild Berentsen 85d6be64cc Remove zwave rename functions (#1553) 2018-08-09 11:47:38 +02:00
Jason Hu 033e058745 Fix access token expires issue (#1554) 2018-08-09 11:17:40 +02:00
Paulus Schoutsen 1cbe0b7b9f Don't put components in entrypoint (#1548)
* Don't put components in entrypoint

* Remove extra deps
2018-08-07 23:11:57 +02:00
Paulus Schoutsen 22433d1a39 Update translations 2018-08-07 09:40:53 +02:00
John Arild Berentsen e048060c72 Fix wrong targetnode and nonupdating othergroupnodes (#1541) 2018-08-06 10:40:31 +02:00
Paulus Schoutsen 60d04b5c58 Bump version to 20180804.0 2018-08-04 15:16:42 +02:00
Paulus Schoutsen 0a991ecdf8 Update translations" 2018-08-04 15:16:28 +02:00
Paulus Schoutsen a9f29a3151 Fix custom panel include (#1539) 2018-08-04 15:15:44 +02:00
Jason Hu 50f417a7e2 Fix dropdown in new login form (#1538) 2018-08-04 15:05:44 +02:00
Paulus Schoutsen d69492988a Version bump to 20180803.0 2018-08-03 13:37:05 +02:00
Paulus Schoutsen 286fa14a30 Update translations 2018-08-03 13:36:52 +02:00
Paulus Schoutsen 8fa9b15fbe Fix margin gallery 2018-08-03 13:31:11 +02:00
Marius b432324159 Fixed conditional card state on 1st render (#1537)
* Fixed conditional card state on 1st render

* Moved method to correct location
2018-08-03 13:03:28 +02:00
Conrad Juhl Andersen 255ea41648 Update state-card and more-info card to support new methods. (#1532)
* Update state-card and more-info card to support new start and pause methods

* Revert some changes

* fixed checking the same thing twice
2018-08-03 11:23:28 +02:00
Jason Hu 6bcfdfaaf8 Support for voluptuous-serialize 2.0.0 (#1529) 2018-08-02 17:03:26 +01:00
Paulus Schoutsen 2dada41791 Version bump to 20180802.0 2018-08-02 14:18:11 +02:00
Paulus Schoutsen 4b5152a348 Update translations 2018-08-02 14:17:55 +02:00
Paulus Schoutsen c537a8d389 Use correct keys for localization. (#1533) 2018-08-02 13:17:41 +01:00
Jerad Meisner 716e505c88 Fixed passing service_data to call-service-button. (#1531) 2018-08-02 13:12:24 +01:00
Alexei Chetroi cc652a9476 allow 'same-origin' credentials for fetch() (#1530) 2018-08-02 13:11:53 +01:00
Conrad Juhl Andersen db310646b7 Vacuum: Added support for STATES (#1497)
* Changed vacuum state-card

* Stupid copy/paste error

* Added support for vacuum in lovelace

* Implement backwards compat.

* Remove lovelace changes

* Added new lovelace

* Updated lovelace code to reflect changes in entity

* Hopefully fix me being bad at git?

* even more fixes

* remove lovelace for now

* Fixed styling errors

* fix styling

* Fallback to toggle

* Fixed errors

* 🐫

* Updated ui

* fix lint error

* Added error to translation

* Added translations

* Removed a comma

* Added the last translations

* Support translation for actions

* Styling

* abcd, removed states from ui.card.vacuum, and moved actions to ui.card.vacuum.actions

* abcd and use this._interceptable

* Removed unused import

* _computeLabel(state, interceptable)
2018-07-27 16:03:27 +02:00
Paulus Schoutsen a8ce5e3e25 Add profile badge to sidebar header (#1525)
* Add profile badge to sidebar header

* Lint

* Update ha-sidebar.js

* Address comments
2018-07-27 09:12:14 +02:00
c727 7ca7d3e12c Add conditional card for Lovelace (#1524)
* Add conditional card for Lovelace

* Make it work

* Fix cardSize

* Lint

* Check if visible in cardSize

* Fix

* Add demo, remove visible in cardSize

* Check if undefined
2018-07-27 08:37:09 +02:00
Jerad Meisner be7fb50f8c Hide change password card for non-homeassistant auth_providers. (#1526) 2018-07-27 08:27:59 +02:00
c727 fdbaa3908a Try to fix history graph for lovelace (#1523)
* Try to fix history graph for lovelace

* Reset interval

* Sort

* Lint
2018-07-26 20:16:23 +02:00
Paulus Schoutsen ec9a259fc0 Version bump to 20180726.0 2018-07-26 09:31:52 +02:00
Paulus Schoutsen 1287f98357 Update translations 2018-07-26 09:31:38 +02:00
Paulus Schoutsen 6cbca6d88a Use webpack plugin to generate HTML (#1521)
* Use webpack plugin to generate HTML

* Generate index.html

* Remove unused packages
2018-07-26 09:30:03 +02:00
quthla e458cf1388 Fix name styling (#1522)
* Fix name styling

* Update hui-glance-card.js

* Demo

* Update demo-hui-glance-card.js

* Update hui-glance-card.js
2018-07-26 00:56:25 +02:00
c727 36ba37c59c Fix margin for row action buttons (#1520)
* Fix margin for row action buttons

* Also cover controls
2018-07-25 21:13:37 +02:00
c727 1b18315e96 Add icon support for picture glance (#1518)
* Add icon support for picture glance

* Add gallery demo

* Replace icon-button with ha-icon
2018-07-25 11:02:25 +02:00
Jerad Meisner 690252a6ba Added row entity for climate entities. (#1494)
* Added row entity for climate entities.

* Revert to old climate state style.

* Added climate entity to entities-card in gallery.
2018-07-25 10:40:21 +02:00
c727 72390aaadc Add support for CSS imports (#1517)
* Add support for CSS imports

* Abc
2018-07-24 20:31:15 +02:00
c727 7b579c8e7a Fix header toggle for entity objects (#1514)
* Fix header toggle for entity objects

* Finish

* Lint
2018-07-24 16:02:52 +02:00
quthla b32a6d58f3 Allow empty names (#1515) 2018-07-24 16:01:41 +02:00
Paulus Schoutsen 7953d960b6 Version bump to 20180724.0 2018-07-24 14:13:30 +02:00
Paulus Schoutsen e9e7a3cdf3 Update translations 2018-07-24 14:13:08 +02:00
Paulus Schoutsen f7d9aecf47 Allow changing entity id (#1508)
* Allow changing entity id

* _entityId

* Use set properties
2018-07-24 14:07:40 +02:00
c727 201959841c Hide name or state in picture entity (#1511)
* Hide name or state in picture entity

* Lint
2018-07-24 13:54:54 +02:00
c727 5e91fbc54f Glance: replace turn-on with call-service (#1510)
* Glance: replace turn-on with call-service

* Fix demo

* Lint
2018-07-24 13:50:01 +02:00
c727 d1d248ab87 Add call-service row element (#1513) 2018-07-24 13:49:12 +02:00
c727 00bee73bf1 Fix toggle if state = unavailable (#1512) 2018-07-24 10:06:54 +02:00
c727 c375e5900b Fix toggle-able for group row elements (#1507) 2018-07-24 08:42:33 +02:00
c727 dcc47b6b83 Add prefix and suffix for state-label (#1509)
* Add prefix and suffix for state-label

* Feedback
2018-07-24 08:36:09 +02:00
Paulus Schoutsen b589412fdd More info (#1500)
* Add more info

* Lint

* Minor cleanup

* Address comments
2018-07-23 22:40:42 +02:00
c727 a899fb1df8 Use local and optimized images in gallery (#1506) 2018-07-23 15:40:58 +02:00
John Arild Berentsen 0aee48cb2c Add ability to set Zwave protection commandclass (#1433)
* Add protection selector

* Review changes

* Naming

* forgot one literal

* Further reveiw changes
2018-07-23 15:31:44 +02:00
Paulus Schoutsen d30bf6d566 Tweak divider example (#1505) 2018-07-23 14:46:57 +02:00
c727 22ed241286 Add row divider for entities card (#1503)
* Add row divider for entities card

* Add gallery demo

* Change hr to div, less attributes needed
2018-07-23 10:02:33 +02:00
c727 44ab96d590 Entities card: special row types, weblink (#1493)
* Add special row-cards: weblink

* Fix binding

* Fix yaml

* Lint

* Feedback

* Fix build

* Lint

* Lint
2018-07-23 03:57:42 +02:00
Alok Saboo af4df647cc Updated picture-elements demo card (#1501)
* Update floorplan image

* Add image elements

* Updated card to use different elements

* Change light name

* Light name

* Updated path
2018-07-22 20:31:05 +02:00
Paulus Schoutsen bdf26bbccd Tweaks (#1489)
* Tweaks

* Lint

* No need for copy plugin

* Allow handling more complex service calls

* Missed a state

* Add locks

* Lint

* Add cover entity

* Make generic entity constructor

* Light to handle homeassistant.X services

* Lint

* Fix translations

* final tweaks
2018-07-22 11:41:56 +02:00
Paulus Schoutsen 3b2d4de313 Add example to show single entity conditionally (#1498) 2018-07-22 10:55:13 +02:00
Alok Saboo aaea698a6c Added basic picture-elements demo card (#1496)
* Added basic picture-elements card

* Cleanup

* Added title

* Remoted comment
2018-07-22 09:53:51 +02:00
c727 97f548a9f1 Custom icons for row cards and glance (#1492)
* Custom icons for row cards

* Remove var fallback

* Add icon support to glance

* Fix glance
2018-07-21 09:04:45 +02:00
c727 6b1d04584e Improve CSS for entity rows (#1491) 2018-07-21 03:10:42 +02:00
Jerad Meisner 5d7e4322eb Automation and vacuum rows toggleable. (#1490) 2018-07-21 01:42:24 +02:00
Nathan Knotts bc71019573 ha-cover-controls: handle opening/closing states (#1485)
* ha-cover-controls: handle opening/closing states

* added missing semi-colons

* fixed entityObj reference
2018-07-20 23:00:38 +02:00
c727 f42bddd447 Add more hass data to gallery (#1487)
* Add more hass data to gallery

* Fix media player images
2018-07-20 22:13:34 +02:00
Paulus Schoutsen 93b1e29876 Bump version to 20180720.0 2018-07-20 12:27:06 +02:00
Paulus Schoutsen 388c2c5db4 Update translations 2018-07-20 12:26:51 +02:00
Paulus Schoutsen 3e60083633 Add js-yaml to yarn 2018-07-20 12:24:16 +02:00
Jerad Meisner 06532def08 Add custom elements to picture-elements. (#1482) 2018-07-20 12:04:11 +02:00
Jason Hu abf85ae19b Only send auth/current_user if new auth is enabled (#1483) 2018-07-20 12:02:30 +02:00
Paulus Schoutsen 9634a13dc2 Fix static assets (#1484) 2018-07-20 11:42:07 +02:00
c727 a78aba5f50 Add more gallery cards (#1481)
* Add more gallery cards

* Lint
2018-07-20 03:22:16 +02:00
Paulus Schoutsen 1b039aee50 tweak demo cards layout (#1479)
* tweak demo cards layout

* Lint
2018-07-19 23:44:12 +02:00
c727 54860d7762 Add more features to gallery (#1477)
* Add more features to gallery

* Feedback

* Fix margin

* Use array-style config

* Split into DemoCards and DemoCard

* Move padding

* Use min-height
2018-07-19 22:57:51 +02:00
Paulus Schoutsen 5c74e31629 Add some styling to the gallery (#1478) 2018-07-19 22:19:10 +02:00
Paulus Schoutsen 61d3d446f4 picture glance: better handle if no title (#1474)
* Better handle if no title

* Simplify code

* Arrays in ifs

* Remove unused method

* Always render the middle div

* Always show both entity divs
2018-07-19 21:18:24 +02:00
Paulus Schoutsen ec54036f1e Tweak readme 2018-07-19 21:12:59 +02:00
Paulus Schoutsen a5befbe153 Add more demos (#1476) 2018-07-19 17:00:18 +02:00
Paulus Schoutsen f952d9c307 Fix build scripts for first run 2018-07-19 15:45:44 +02:00
Paulus Schoutsen 68b94cd7c7 Remove bower.json 2018-07-19 15:27:56 +02:00
Paulus Schoutsen 56907fb922 Add gallery (#1475)
* Add gallery

* Add build script

* Lint

* Remove cache
2018-07-19 15:24:30 +02:00
Paulus Schoutsen 5cc6d20674 Version bump to 20180719.0 2018-07-19 10:51:56 +02:00
Paulus Schoutsen da78dacca9 Update translations 2018-07-19 10:51:40 +02:00
Paulus Schoutsen 964c028c72 Tweaks to user flow (#1473)
* Tweaks to user flow

* Mobile layout

* Final tweaks
2018-07-19 10:51:00 +02:00
Jerad Meisner 708447b6f1 Added change password card to profile panel. (#1464)
* Added change password dialog to profile panel.

* Switch change password from dialog to card

* Restore current password verification.
2018-07-19 09:39:56 +02:00
Jason Hu 7e257f6ee9 Display Unnamed User if no name found in user object (#1469)
* Display Unnamed User if no name found in user object

* address review comment
2018-07-19 09:11:21 +02:00
c727 10d44db8e6 Allow views with badges and no cards (#1471) 2018-07-19 08:45:59 +02:00
c727 e84f5c683c Fix Lovelace docs URL #2 (#1470)
last PR was to false branch xD
2018-07-19 02:16:13 +02:00
Paulus Schoutsen bfdde116e2 Version bump to 20180718.0 2018-07-18 17:28:45 +02:00
Paulus Schoutsen 51020d7e68 Update translations 2018-07-18 17:28:39 +02:00
c727 8c44e243e1 Separate row entity elements for Lovelace (#1461)
* Separate row entity elements for Lovelace

* Update

* Update

* Add fan

* Add support for last changed

* Feedback

* Feedback2

* Update

* Update

* Fix timer

* Update

* Lint
2018-07-18 17:25:13 +02:00
Paulus Schoutsen 9ab4158e0a Use callWS helper (#1465) 2018-07-18 17:13:53 +02:00
c727 4c3e039423 Use separate duration for relative time (#1463) 2018-07-18 09:50:31 +02:00
c727 7c5c5ea9b6 Use custom off states in picture glance (#1462) 2018-07-18 09:49:11 +02:00
Jerad Meisner 6db76c8ab4 Refactored element creation out of picture-elements class. (#1446)
* Refactored element creation out of picture-element class.

* Fix navigation element listener.

* Cleanup. Change service-icon -> icon.

* Fixes.

* More fixes.

* More fixes.

* Feedback

* More fixes.
2018-07-18 09:48:27 +02:00
Paulus Schoutsen 3f0824bd39 Version bump to 20180717.0 2018-07-17 10:56:18 +02:00
Paulus Schoutsen e2c4695613 Add compat layer 2018-07-17 10:55:23 +02:00
Paulus Schoutsen 37678d99af Update translations 2018-07-17 10:06:19 +02:00
Paulus Schoutsen 90328cfc33 Add an onboarding flow (#1452)
* Add an onboarding flow

* Address comments
2018-07-17 10:05:27 +02:00
Paulus Schoutsen 84b0542fb6 Fix spacing picture glance (#1460) 2018-07-17 10:04:48 +02:00
Paulus Schoutsen 229d167f89 Add current user to hass object (#1451)
* Add current user to hass object

* Add enter key support to login form
2018-07-17 09:25:46 +02:00
c727 5c5a7e50da Remove capitalize from card heading (#1455)
fix: https://github.com/home-assistant/ui-schema/issues/107
2018-07-17 08:45:52 +02:00
c727 bac1c8f630 Make Glance column width configurable (#1456) 2018-07-17 08:44:01 +02:00
Marius 9c66d47afa Fixes picture-glance no longer compatible with entity-filter (#1448)
* fixes https://github.com/home-assistant/ui-schema/issues/101

* Updates based on feedback

* More updates from feedback

* Cleanup
2018-07-17 08:43:20 +02:00
Jason Hu 1f80769d9e Submit form when Enter pressed in new login form (#1459) 2018-07-17 08:38:40 +02:00
c727 8dcda2dae9 Fix translation for weather states (#1454)
we should rename the keys on lokalise before we merge this

fix: #1414
2018-07-17 00:34:46 +02:00
Jason Hu 348b284ba6 Check access token expires before we use it. (#1444)
* Check access token expires before we use it.If we found access token expires, we proactive call refresh token.So that we can avoid uncessary invalid auth error in backend.

* Move expires  calc to fetchToken() and refresToken()

* Address code review comment
2018-07-16 23:11:05 +02:00
Paulus Schoutsen b5ff52febf Version bump to 20180716.0 2018-07-16 08:47:24 +02:00
Marius 832f4ba6cd Make custom cards work as panel (#1447)
* Make custom cards work as panel

* Fixed some errors and implemented suggestion from comments
2018-07-15 14:05:32 +02:00
Paulus Schoutsen 89f9589084 Version bump to 20180713.0 2018-07-13 15:33:00 +02:00
Paulus Schoutsen ed0d0ab944 Update translations 2018-07-13 15:32:37 +02:00
Paulus Schoutsen ed9c73429f Allow managing users (#1436)
* Allow managing users

* Address comments

* table -> card-content

* Don't close dialog on error
2018-07-13 15:31:22 +02:00
c727 c11cf53f96 Lovelace: add basic support for badges (#1443)
* Lovelace: add basic support for badges

* Lint

* Check in entityId exists in states

* Hide badges container if no badges

* setProperties

* lint
2018-07-13 13:42:34 +02:00
quthla 834528506a Override history names (#1405) 2018-07-13 12:12:50 +02:00
c727 f2c56a624b Glance card: hide name or state (#1442) 2018-07-12 13:56:25 +02:00
c727 6a35fc9eb5 Picture elements: add service-icon (#1439)
* Picture elements: add service-icon

* Default for servie_data

* Lint

* Remove file
2018-07-12 12:34:05 +02:00
c727 1b262f7cea Picture glance: introduce DOMAINS_TOGGLE (#1440)
* Picture glance: introduce DOMAINS_TOGGLE

* Use set instead of array
2018-07-12 11:58:11 +02:00
c727 c5fd32afac Glance: add toggle and turn_on as action (#1438)
* Glance: add toggle and turn_on as action

* Lint
2018-07-12 09:08:54 +02:00
Jerad Meisner 19e58c775e Add image type for picture-elements card. (#1428)
* Add image type for picture-elements.

* Rebased master. Move overflow rule to parent.

* Cleaned up click handler.
2018-07-12 08:56:53 +02:00
Paulus Schoutsen c90a3dcdfd Version bump to 20180710.0 2018-07-10 11:58:39 +02:00
Jerad Meisner 5df758c0b2 Add configurable filter and state_filter to hui-image. (#1423)
* Add configurable filter and state_filter to hui-image.

* Rename state -> stateObj.

* Cleanup

* Remove unnecessary CSS

* Use placeholder for broken images.

* Update broken image
2018-07-10 11:37:46 +02:00
Jason Hu 77c65d43ae Add password field support to ha-form (#1418)
* Add password field support to ha-form

* Lint

* Load ha-iconset-svg
2018-07-10 11:20:11 +02:00
Paulus Schoutsen dbb6a8e6d4 Fix when not using oauth (#1434) 2018-07-10 10:49:51 +02:00
Paulus Schoutsen 89ab6a7d5d Add release drafter 2018-07-10 10:21:24 +02:00
Paulus Schoutsen c378eda17b Version bump to 20180709.0 2018-07-09 18:26:24 +02:00
Paulus Schoutsen 133d198e7c Make Lovelace filter card more robust (#1431)
* Make Lovelace filter card more robust

* Update hui-entity-filter-card.js
2018-07-09 18:25:00 +02:00
Paulus Schoutsen 2e4ddebcda Use IndieAuth for client ID (#1427)
* Use IndieAuth for client ID

* Lint
2018-07-09 18:24:49 +02:00
Jerad Meisner 13819937a7 Show more-info for media_players in picture-glance. (#1429)
* Show more-info for media-players in picture-glance.

* Cleanup
2018-07-09 18:21:47 +02:00
c727 b89ad9b217 Fix language detection for country codes (#1426)
* Fix language detection for country codes

navigator.languages = ["de-DE"],  navigator.languages = "de-DE" was detected as en before

* Use for each

* Use for of
2018-07-09 14:43:36 +02:00
Jerad Meisner e51177b3c2 Fix picture-glance crash when state unavailable. (#1425)
* Fix picture-glance crash when state unavailable.

* Replace this.hass with hass, available check also for dialog-entities

* Lint
2018-07-08 23:59:16 +02:00
Jerad Meisner bb7dc76996 Open more info for camera in picture-glance card. (#1424) 2018-07-08 19:30:11 +02:00
Paulus Schoutsen 274f8e1b64 Version bump to 20180708.0 2018-07-08 17:24:53 +02:00
Paulus Schoutsen d1d3ff9013 Update translations 2018-07-08 17:24:36 +02:00
quthla c39b6bb665 Fix Lovelace (#1420) 2018-07-08 17:19:55 +02:00
Paulus Schoutsen 52f2c29726 Cleanup the webpack config (#1417)
* Cleanup the webpack config

* Typo
2018-07-08 17:16:19 +02:00
c727 b0f29744bf Lovelace map: hide overflow, reset focus button (#1421)
* Lovelace map: hide overflow, reset focus button

* Increase margin for better clicking
2018-07-08 15:03:56 +02:00
c727 c17f390f58 State card lock (#1419)
* Add state-card-lock

* Cleanup

* Feedback

* Lovelace: Exclude covers and locks from header toggle
2018-07-08 03:24:22 +02:00
quthla f58c612018 Lovelace custom ui (#1404)
* Lovelace custom ui

* Allow ForOf

* Move code
2018-07-07 21:04:11 +02:00
c727 d96c5f6bde Don't modify stateObj (#1410)
* Don't modify stateObj

* Lint
2018-07-07 13:25:06 +02:00
Jerad Meisner e649d37c05 Love: Added map card (#1412)
* Added map card

* Prefer arrow functions.

* Fix lint errors.

* Extract Leaflet setup. Debounce events. Cleanup.

* Cleanup.

* Add disconnectedCallback. More cleanup.
2018-07-07 05:36:01 -04:00
Jerad Meisner 594c1d6615 Don't show more info for weblinks. (#1416) 2018-07-07 05:35:03 -04:00
c727 10009eea2e Lovelace: Style view backgroud (#1408)
* Lovelace: Style view backgroud

based on: #1403

fix: https://github.com/home-assistant/ui-schema/issues/30

```yaml
background: center / cover no-repeat url("https://images.pexels.com/photos/977736/pexels-photo-977736.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260")

background: radial-gradient(crimson, skyblue)

background: orange
```

* Reset background if not defined

* Simplify

* Lint

* Add global backround

* Fix backround in unused entities

* Lint
2018-07-06 15:12:43 -04:00
Hmmbob cb60904912 Replace Fitbit Config Screenshot (#1411)
Fixes https://github.com/home-assistant/home-assistant/issues/15235
2018-07-06 15:10:01 -04:00
c727 ddd37f63a0 Remove line-height 0 from ifram card (#1413) 2018-07-06 02:25:17 +02:00
Jerad Meisner d71a80c4f8 Love: Rework layout to use static sized view area (#1403)
* Rework view layout.

* Don't edit ha-app-layout

This reverts commit 7b32161

* User classList.toggle instead of attribute binding.

* Change view to a div.
2018-07-05 11:27:28 -04:00
c727 6b10eeb1e9 Hassio: Add button to change hostname (#1406)
* Hassio: Add button to change hostname

* Lint

* Lint
2018-07-04 22:49:29 -04:00
Paulus Schoutsen e3d82f9e37 version bump to 20180704.0 2018-07-04 11:57:58 -04:00
c727 6739c88428 Add a button to show new entities (#1390)
* Add a button to show new entities

* Fix copy paste

* Test

* Update

* To-do: Menu CSS

* Set _curView to -1

* Lint

* Feedback

* Fix menu

* Feedback
2018-07-04 04:44:13 +02:00
Paulus Schoutsen 5b0ca026d5 version bump to 20180703.1 2018-07-03 14:51:34 -04:00
c727 42525ae1df Fix navigation path title (#1401) 2018-07-03 14:51:10 -04:00
Paulus Schoutsen c201a9073f Fix opening menu triggers column change (#1400) 2018-07-03 14:47:36 -04:00
Paulus Schoutsen ad4814dfad Use ha-icon when user can set icon (#1399) 2018-07-03 14:33:43 -04:00
Paulus Schoutsen e5c900aec1 Use navigation_path for picture-elements navigation element 2018-07-03 11:13:51 -04:00
Paulus Schoutsen 6f8385afa7 20180703.0 2018-07-03 10:59:08 -04:00
Paulus Schoutsen 5cccf4836f Add navigation_path to picture-glance (#1397)
* Add navigation_path to picture-glance

* Lint
2018-07-03 10:57:26 -04:00
sbYm d299166f2a Fix json detect (#1391)
* Fix json detect

Content-type is not always "application/json" when using nginx.    
eg: application/json; charset=utf-8

* Update hass-call-api.js

* Lint

* Lint 2
2018-07-03 10:17:15 -04:00
Jerad Meisner c0ae7d50ad Replace camera-preview card with picture-entity card. (#1393) 2018-07-03 09:28:54 -04:00
c727 dc034038c0 P-Elements: Add title to navigation icon (#1395)
* P-Elements: Add title to navigation icon

...and removed computeDomain()

* Improve code
2018-07-03 05:51:37 +02:00
c727 536b1e7b73 Fix scrollbar issues in vertical stack card (#1394)
* Fix scrollbar issues in vertical stack card

* Update vstack
2018-07-03 05:51:13 +02:00
Paulus Schoutsen 20d6f6d530 Don't allow toggle if can't toggle. Allow hiding info (#1389)
* Don't allow toggle if can't toggle. Allow hiding info

* Allow tap_action: toggle

* cleanup

* Lint
2018-07-03 01:55:46 +02:00
Paulus Schoutsen 173cd8126c Picture Entity to use name instead of titles (#1388)
Entities have names, states have titles.
2018-07-02 22:39:23 +02:00
Paulus Schoutsen e452384ecd Bump version to 20180702.1 2018-07-02 14:20:48 -04:00
Jerad Meisner 918c2ce29e Love: Update hui-image to use entity instead of state. (#1386)
* Update hui-image to use entity instead of state.

* Removed old function.
2018-07-02 14:20:16 -04:00
Paulus Schoutsen 66803cd4eb Add panel mode (#1383) 2018-07-02 14:17:48 -04:00
Paulus Schoutsen 66ae61374d Add navigation element (#1384)
* Add navigation element

* Lint

* Add missing import
2018-07-02 14:17:23 -04:00
Paulus Schoutsen cf5460bf58 Add simple picture card (#1385)
* Add simple picture card

* navigate_path -> navigation_path
2018-07-02 14:16:29 -04:00
Paulus Schoutsen c868df2718 Only allow state filter for filter card (#1387)
* Only allow state filter for filter card

* Lint

* Address comments
2018-07-02 14:03:59 -04:00
Paulus Schoutsen 25fddad446 Version bump to 20180702.0 2018-07-02 08:54:05 -04:00
Paulus Schoutsen 890dc0512b Update translations 2018-07-02 08:52:45 -04:00
Paulus Schoutsen 6b8fbd91c6 Use name for entities (#1380)
* Use name for entities

* Glance: title -> name
2018-07-02 08:44:10 -04:00
Jerad Meisner 06cf03bff0 Fix image filtering when no off state is defined (#1379)
* Fix image filtering when no off state is defined

* Change Offline to Unavailable.
2018-07-02 02:12:18 +02:00
c727 22ee205807 Love: picture elements: nowrap for buttons (#1378) 2018-07-01 21:15:20 +02:00
Paulus Schoutsen 7bbe8dc2f3 Version bump to 20180701.0 2018-07-01 12:57:13 -04:00
Marius e410274684 Lovelace: entity-filter: hide card when entities[] empty (#1373)
* Implements https://github.com/home-assistant/ui-schema/issues/48

Fixed lint

* Updates based on review

Reset display on new config

Fixed reset as setConfig was not being called

Fixed lint
2018-07-01 12:55:27 -04:00
Paulus Schoutsen 76256699e0 Fix card size calculation stacks (#1375) 2018-07-01 12:25:28 -04:00
Paulus Schoutsen dc5213a79a Fixes (#1377)
* Fix legacy wrapper in browsers without native custom elements

* Better error reporting for picture-elements

* Lint
2018-07-01 12:25:00 -04:00
Jerad Meisner 54fcb21917 Love: Allow custom title per entity in entities card (#1374)
* Allow custom title per entity in entities card

* Change entityConfig to config

* Only pass title to state-cards
2018-07-01 11:28:25 -04:00
Jerad Meisner 1a9af5595f Love: Added <hui-image> element for handling different image sources (#1365)
* Added hui-image element. Converted picture-glance and picture-entity.

* Fixed hui-image data bindings

* Hide image if no source. Error message l10n

* Pass entire state object to hui-image

* Renamed isObject function. Fix camera image updating.
2018-07-01 11:26:41 -04:00
c727 5f44009177 Love: Add badges to picture elements (#1371)
* Love: Add badges to picture elements

* Lint

* Fix toggle text

* Simplify service button config

* Add default for service data

* Lint
2018-06-30 15:52:02 +02:00
Marius 42026f096f Renamed row and column (#1370) 2018-06-30 01:22:55 +02:00
c727 122414e7bd Love: Set love as default page (#1368)
* Love: Set love as default page

* Make toggle, move to dev-info

* Typo
2018-06-29 15:56:40 -04:00
Paulus Schoutsen c781163f6b Version bump to 20180629.1 2018-06-29 15:38:26 -04:00
Paulus Schoutsen cdb7a6261e Random fixes (#1369)
* Random fixes

* weather card to use legacy wrapper

* Lint
2018-06-29 15:35:46 -04:00
Paulus Schoutsen a8063f3359 Version bump to 20180629.0 2018-06-29 11:05:41 -04:00
Paulus Schoutsen bb670b76a9 Migrate cards to use setConfig to get config. (#1363)
* Experiment with setConfig

* More cleanup

* fix filter card

* Wait for DOM to be done

* 1 line

* Lint

* Lint2

* Lint
2018-06-29 10:54:52 -04:00
Jerad Meisner 05816374a8 Love: Fix config parsing in hui-glance-card (#1364)
* Fix config parsing in hui-glance-card

* Don't modify config.
2018-06-29 10:20:52 -04:00
c727 5b67a3691a Love: change keys from "name" to "title" (#1367)
* Love: change keys from "name" to "title"

* Change action to tap_action
2018-06-29 16:08:04 +02:00
Jerad Meisner fb2fc9fbbb Love: Add optional title to hui-glance-card (#1355)
* Add optional title to hui-glance-card

* Use entity instead of entity_id. Allow both simple and complex entities in glance card config.

* Fix lint errors.

* Make coerceEntitiesToObjects accept single entity or array.

* Fix entities helper function. Add entities validation function.

* Fix conflicts
2018-06-29 05:34:05 +02:00
c727 ee0308849e Love: cleanup (#1362)
* Love: cleanup

* Fix
2018-06-29 05:16:01 +02:00
c727 51f169aa13 Love: Add reload button to error screen (#1360)
* Love: Add reload button to error screen

* Move slot

* Feedback
2018-06-29 05:13:10 +02:00
c727 038f5b644b Love: Rework PictureEntityCard (#1359)
* Love: Rework picture-entity-card

* Rework

* Use OFFLINE const

* Add optional title

* Fix issue, lint
2018-06-28 22:36:52 -04:00
c727 3442700e1f Love: more cleanup (#1361)
* Love: more cleanup

* Fix

* Lint
2018-06-28 22:30:17 -04:00
c727 07d76739b4 Love: cleanup (#1358)
* Love: cleanup

* Lint

* Fix CopyPaste

* Change config key names for history

* Restore old card size

* Add function description

* Use createErrorCardConfig
2018-06-28 21:53:56 +02:00
Paulus Schoutsen d40dea6d3b Fix auth redirect url (#1357) 2018-06-28 14:48:01 -04:00
c727 8bbc8e0bb8 Love: Add column and row card (#1353)
* Love: Add column and row card

* Lint

* Add row card, also broken CSS

* Add cardSize logic

* Fix CSS

* Working now

* Feedback

* Lint
2018-06-28 04:42:13 +02:00
c727 9e2d311ce6 Hassio: fix scroll issues (#1354)
* Hassio: fix scroll issues

* Feedback

* Lint

* Lint

* Move to dom
2018-06-28 04:20:16 +02:00
c727 de91aea3b9 Revert "Love: Add column and row card"
This reverts commit e0ccc1999a.
2018-06-27 22:12:01 +02:00
c727 e0ccc1999a Love: Add column and row card 2018-06-27 22:00:30 +02:00
Paulus Schoutsen b55004d73b Bump version to 20180627.0 2018-06-27 14:20:48 -04:00
Paulus Schoutsen 3d18462ec0 Update translations 2018-06-27 14:20:43 -04:00
Paulus Schoutsen 654e74294d Default view (#1349)
* Do not rebuild config twice on tab change

* Allow setting default page
2018-06-27 14:18:58 -04:00
Paulus Schoutsen 20e92893e0 Organize createElement (#1348)
* Organize createElement

* Fix line-height
2018-06-27 14:18:05 -04:00
c727 f2d30ad850 Love: Permalinks for views (#1340)
* Love: Permalinks for views

* Cleanup

* Do not redraw unnecessarily
2018-06-27 14:05:00 -04:00
c727 88453733eb Love: Picture elements: Add service button and text state (#1343)
* Love: Picture elements: Add service button and text state

* Feedback

* Lint

* Separate div.element

* Remove line-height

* New class for state-text

* Add line height
2018-06-27 13:56:19 -04:00
c727 584e959f1a Fix weather card getUnit 2018-06-27 17:25:46 +02:00
c727 479de6c4c7 Love: Entities card: add turn on/off all (#1337)
* Love: Entities card: add turn on/off all

* Cleanup

* Fix hide toggle

* Lint

* Lint

* Feedback

* Lint

* Fix ent pic card
2018-06-27 17:20:18 +02:00
c727 be7900cd87 Fix air pressure uom in weather cards (#1346)
* Fix aire pressure uom in weather cards

* Feedback

* Lint
2018-06-27 17:16:16 +02:00
cdce8p 7bfc01b02c Fix climate state without translation (#1344) 2018-06-27 05:51:18 -04:00
c727 590bba0aca Love: Card to show entites on picture (#1341)
* Love: Card to show entites on picture

* Lint

* MVP + x

* Feedback

* Add toggle action

* Lint
2018-06-27 03:45:40 +02:00
c727 aa27ee609d Love: Improve code in glance picture (#1339)
* Live: Improve code in glance card

* Lint

* Fix constants
2018-06-26 10:52:53 -04:00
c727 e1e88aa8b2 love: Fix div overflow (#1338)
thought I tested this :( too many local branches....
2018-06-26 10:52:01 -04:00
c727 e3d7220c0b Love: Rework history graph (#1335)
* Love: Rework history graph

* Lint
2018-06-26 10:51:34 -04:00
c727 9fd1db0493 Love: move create card element to component, improve error card (#1328)
* Love: move create card element to component, improve error card

* Remove whenDefined

* Fix config check

* Allow enity_id only card config

* Feedback

* Fix conflicts

* Add import

* Lint

* Lint

* Lint -.-"
2018-06-26 10:50:51 -04:00
Paulus Schoutsen 748b5a8e41 Version bump to 20180625.0 2018-06-25 16:00:46 -04:00
Paulus Schoutsen 8991c966d2 Update translations 2018-06-25 16:00:29 -04:00
Paulus Schoutsen 2cfff991ac Do not use async await in custom panels (#1336)
* Do not use async await in custom panels

* Lint
2018-06-25 15:59:17 -04:00
Eu 376228e0fe [Lovelace] Add iframe card (#1330)
* Create hui-iframe-card.js

* Update compute-card-element.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Update hui-iframe-card.js

* Lint

* Update hui-iframe-card.js

* Change height to aspect_ratio
2018-06-25 15:24:04 -04:00
Mattias Welponer 4c1feb313b Add HomematicIP Cloud Config Flow picture (#1306)
* Add HomematicIP config picture

* Reduce size

* Remove the border

* Picture trimmed now properly

* Wrong file, this one is small and has no transparent border

* Created config_flows and moved the picture
2018-06-25 14:21:04 -04:00
c727 b0561d7766 Love: Add conversation button (#1333) 2018-06-25 15:54:42 +02:00
c727 bda2d42994 Love: Fix entity_pic in glance card (#1334) 2018-06-25 15:54:31 +02:00
Mariusz Łuciów d225105e58 Fixed invalid contant type header (#1331)
The `application` is not a valid MimeType:
https://www.iana.org/assignments/media-types/media-types.xhtml#application
2018-06-24 21:53:11 +02:00
c727 313a3dd2c9 Hassio: Fix error in store, remove asyn await (#1325) 2018-06-23 00:36:15 +02:00
Paulus Schoutsen c579d7fed3 Version bump to 20180622.1 2018-06-22 12:44:31 -04:00
c727 c83184654e Hassio: New API for HassOS (#1319)
* Hassio: New API for HassOS

* Fix

* Use async await
2018-06-22 12:44:11 -04:00
Paulus Schoutsen 7e0be4a2f6 Version bump to 20180622.0 2018-06-22 10:22:58 -04:00
Paulus Schoutsen 53e698c757 Compatibility fix for custom panel (#1321)
* Compatibility fix for custom panel

* Lint
2018-06-22 10:17:06 -04:00
c727 8d5c862908 Love: Fix stateObj not in states error (#1322)
* Love: Fix stateObj not in states error

* Add ()

* Make it dynamic
2018-06-22 10:06:30 -04:00
Paulus Schoutsen d5266c1c56 Version bump to 20180621.2 2018-06-21 17:35:08 -04:00
Paulus Schoutsen 44d64bc7ce Catch for no resources defined 2018-06-21 17:34:42 -04:00
Paulus Schoutsen 545af4c6d2 Version bump to 20180621.1 2018-06-21 17:14:47 -04:00
Paulus Schoutsen 501033df15 Allow specifying external resources (#1318)
* Allow specifying external resources

* Lint
2018-06-21 17:14:25 -04:00
c727 1f82934c93 Cleanup hui-markdown-card (#1316) 2018-06-21 23:12:31 +02:00
Paulus Schoutsen 9d22645e87 Fix wrapping in the entities card (#1317) 2018-06-21 17:10:07 -04:00
Paulus Schoutsen b312533948 Version bump to 20180621.0 2018-06-21 14:56:32 -04:00
Paulus Schoutsen 77f623d519 Lovelace: Small reorg (#1315)
* Small reorg

* Add markdown card

* Tweak closeness
2018-06-21 14:46:54 -04:00
c727 8cebddcccc Love: Pimp filter card (#1314)
* Love: Pimp filter card

* Make it work

* Update

* getCardSize

* Import elements

* Lint

* Lint

* Remove this._cardSize
2018-06-21 13:57:19 -04:00
Paulus Schoutsen 75502bac6e Bump min version for latest to use async/await (#1312)
* Bump min version for latest to use async/await

* Use async functions

* Load async support for es5

* Lint
2018-06-21 13:57:01 -04:00
Paulus Schoutsen 18b52b53cb Upgrade deps (#1311)
* Update polyfills

* Upgrade deps
2018-06-21 10:43:24 -04:00
Paulus Schoutsen b6ee5442f0 Track when cards get defined (#1310) 2018-06-21 10:42:52 -04:00
c727 691b80c08a Lovelace: Add picture card (#1308)
* Lovelace: Add scene card

* Fix radius

* Lint

* Add acitvate text

* Change on-click name

* Requested changes

* Remove navigate

* 2

* Lint

* Fix Cannot read property '_entityDisplay' of undefined
2018-06-21 09:37:24 -04:00
c727 f8b38ced26 Lovelace: Add picture-glance card (#1309)
* Lovelace: Add glance-toggle card

* Update

* Option to force dialog

* Fix box height

* Rename const

* Change name, separate sensors

* Lint

* Lint
2018-06-20 23:16:35 -04:00
Paulus Schoutsen 63b123fc8f Fix hiding menu button when not needed 2018-06-20 16:12:42 -04:00
Paulus Schoutsen a92c187627 Version bump to 20180620.0 2018-06-20 15:09:30 -04:00
c727 92111cd5be Exp. UI: Add glance card (#1305)
* Exp. UI: Add vertical entities card

* Remove iron-icon import

* Add light

* Change name

* Flex

* Fix CSS

* Rebuild view to work with themes

* Lint

* Default title Home Assistant

* Tweaks
2018-06-20 15:08:01 -04:00
Paulus Schoutsen 1f8f6f52bc Rename experimental UI to lovelace (#1307)
* Rename experimental UI to lovelace

* Lint
2018-06-20 14:18:18 -04:00
Adam Mills 626b054540 Use localized operation modes in climate more-info (#1304) 2018-06-19 22:37:06 -04:00
Paulus Schoutsen 4acfa2ba88 Show an error screen when panel cannot be resolved (#1303)
* Show an error screen when panel cannot be resolved

* Lint
2018-06-19 15:50:52 -04:00
Paulus Schoutsen 87bd9ed48a Ask for reload on service worker change (#1302)
* Ask for reload on service worker change

* Lint and remove alert

* Fix it once and for all

* Lint
2018-06-19 15:50:41 -04:00
Paulus Schoutsen ce4280e816 Version bump to 20180619.0 2018-06-19 10:55:16 -04:00
Paulus Schoutsen 3382430c8f Update translations 2018-06-19 10:55:13 -04:00
c727 c186a5aab2 Hassio: Add scrollbar to supervisor logs (#1301) 2018-06-19 15:31:16 +02:00
c727 21dcbb3b9d Fixes and cleanup for #1299 and #1296 (#1300)
* Fixes and cleanup

* Rename function to genHassioIcons

* Update
2018-06-19 14:36:43 +02:00
c727 cd33e2568a Exp. UI: add support for "big" cards (#1296)
* Exp. UI: add support for "big" cards

* Lint

* Requested changes

* Revert outdated changes

* ...2

* ...3

* Feedback
2018-06-18 22:18:20 -04:00
c727 4cf7959b12 Hassio: Fix menu button icon (#1299)
* Hassio: Fix menu button icon

* Move comments

* Hups
2018-06-19 01:32:40 +02:00
c727 dc9a227aa3 Exp. UI: Add error card (#1298)
* Exp. UI: Add error card

* Cleanup

* Lint

* Typo

* Requested changes
2018-06-18 19:19:01 -04:00
c727 2a8462951b Hassio: Fix glitch in HA update card (HA 0.72+) (#1297) 2018-06-18 18:01:49 -04:00
c727 449751c59f Exp. UI: add errorHandling for CustomElement and getCardSize() (#1295)
* Exp. UI: add errorHandling for CustomElement and getCardSize()

* Add ";"

* Lint
2018-06-18 13:04:12 -04:00
c727 d2eb0ef23f Exp. UI: add support for more info dialog (#1294)
* Exp. UI: add support for more info dialog

* Sort items

* Rename HIDE_MORE_INFO to DOMAINS_HIDE_MORE_INFO
2018-06-18 10:07:58 -04:00
Paulus Schoutsen d752060f7a Version bump to 20180618.0 2018-06-18 09:54:55 -04:00
Paulus Schoutsen cc74374390 Update translations 2018-06-18 09:54:44 -04:00
Paulus Schoutsen dd87502688 Fix config entries (#1293)
* Fix config entries

* Reset error msg when flow is closed
2018-06-18 09:53:37 -04:00
Paulus Schoutsen 4e608e6a2c Version bump to 20180617.0 2018-06-16 22:33:33 -04:00
Paulus Schoutsen ba2c3edc87 Fix closing tag 2018-06-16 22:32:46 -04:00
Paulus Schoutsen 13c8a00e97 Cleanup deps (#1288)
* Upgrade uglify-js

* Remove unused deps

* Add views
2018-06-16 22:32:05 -04:00
Paulus Schoutsen 1076fd8fc4 Version bump to 20180616.0 2018-06-16 17:32:05 -04:00
Paulus Schoutsen 5f226d1809 Add experimental UI (#1205)
* Add experimental UI

* Allow theming a view

* Name it css

* Allow applying themes

* Add filter card

* Add normal column layout logic
2018-06-16 17:29:18 -04:00
c727 75e3f1f37b Remove icon-set validation from customize (#1286)
we could set to hass or mdi but the use could still use a custom set
2018-06-16 06:50:26 -04:00
Paulus Schoutsen b43b34263e Version bump to 20180615.0 2018-06-15 13:43:41 -04:00
Paulus Schoutsen f79feae120 Update translations 2018-06-15 13:43:24 -04:00
Paulus Schoutsen 052e659782 Clean up calendar panel (#1285) 2018-06-15 13:38:02 -04:00
Paulus Schoutsen 890c31fb96 Add calendar translation and icon 2018-06-15 12:59:43 -04:00
Thibault Cohen 58a0f6aab9 Add scheduler panel (#1146)
* Add scheduler panel

* Rename scheduler to calendar

* Continue

* First working version

* Fix lint errors

* Fix comments

* Fix calendar display

* Continue fixing comments

* Continue fixing comments 2

* Continue fixing comments 3

* Fix UI to work with the new PRs

* Use preact-compat instead of react

* Fix tests

* Move css file in a panels specific folder

* Fix tests

* Add Event details dialog

* Improve date format

* Remove event details

* Continue

* Continue calendar

* continue

* Continue

* Cleaning

* Fix PR comments

* Lint

* Clean useless import and css

* Fix PR comments

* Fix PR comments

* Fix PR comments

* Clean Event handler

* Fix week view

* Continue
2018-06-15 11:17:46 -04:00
c727 2905cefd39 Localize more_info_settings (#1284) 2018-06-15 11:13:00 -04:00
Paulus Schoutsen 67cef55f34 Fix grey background partial-cards 2018-06-12 22:22:56 -04:00
Paulus Schoutsen 710d98feda Version bump to 20180613.0 2018-06-12 21:16:55 -04:00
Paulus Schoutsen b085121ab4 Update translations 2018-06-12 21:16:50 -04:00
c727 274e1a671f Localize media player dialog (#1279) 2018-06-12 20:45:06 -04:00
c727 98df34c0a8 Replace \$= with $= (#1280) 2018-06-12 20:44:43 -04:00
c727 e28c651930 Hassio random fixes (#1278)
* Fix img width in markdown

* Flexify add-on view

* Hide deployment if null

* Fix mobile add-on view
2018-06-12 23:51:20 +02:00
Yevgeniy 8e8d907090 Change weather card to support forecasts with two modes (#1277)
* Separation of date and time

* Remove <div>, hour to numeric, text uppercase

* Revert style, fix <br>
2018-06-12 21:29:21 +02:00
starkillerOG cf3d864378 General sound mode support (#1275)
* Add sound mode support

* Add sound mode support

* Rebase Sound Mode support

* Cammel case fix

* Sound mode support

* Add sound mode support

* change to attr-for-selected

* Simplify sound mode support
2018-06-12 21:27:54 +02:00
Paulus Schoutsen 7f133d0316 Don't rely on get panels from websocket package (#1264) 2018-06-12 09:28:41 -04:00
Paulus Schoutsen 9717166fee Allow placeholders for config flow description (#1274) 2018-06-12 09:28:20 -04:00
Paulus Schoutsen 0b6214be2b Random fixes (#1276) 2018-06-12 09:27:46 -04:00
Paulus Schoutsen 7f93317314 Update partial-cards.js 2018-06-10 22:54:36 -04:00
Paulus Schoutsen b89de4b494 Point es5 adapter to frontend-es5 (#1273) 2018-06-08 16:37:52 -04:00
Paulus Schoutsen d243f2ead6 Build a new Hass.io panel (#1271)
* Build a new Hass.io panel

* Use webcomponents-lite.js

* Compress new panel

* Lint
2018-06-08 15:26:48 -04:00
Paulus Schoutsen 92930a2b94 Add es5 adapter to es5 panel (#1272) 2018-06-08 14:58:15 -04:00
Andrey 7a2aff712b Better show custom ui versions (#1269) 2018-06-08 09:35:27 -04:00
Paulus Schoutsen 0ae676d9ba Better configure Carto Basemaps (#1267) 2018-06-07 17:16:08 -04:00
Paulus Schoutsen 673f769237 Remove word "EXPERIMENTAL" from config entry menu option (#1268) 2018-06-07 17:15:49 -04:00
Jaak Laineste bb442c824b fix map URLs (#1265)
Fix attribution and URL for basemaps as in https://github.com/CartoDB/basemap-styles. Disclaimer: I'm PM for CARTO basemaps.
2018-06-07 14:09:01 -04:00
Paulus Schoutsen ab16a3712e Version bump to 20180607.0 2018-06-06 22:40:32 -04:00
Paulus Schoutsen b71a4be67e Update translations 2018-06-06 22:40:24 -04:00
Paulus Schoutsen eb91cedf68 Update config entries text (#1263) 2018-06-06 22:37:34 -04:00
Paulus Schoutsen 9ac1384e1f Remove has-scrolling-region attribute
Fixes #1250
2018-06-06 22:36:34 -04:00
Paulus Schoutsen cab53b3324 Use websocket for entity registry update (#1261)
* Use websocket for entity registry update

* Lint
2018-06-06 22:34:34 -04:00
Paulus Schoutsen bf4d0e6bc9 Use websocket to fetch themes and translations (#1260)
* Use websocket to fetch themes and translations

* Lint
2018-06-06 22:34:20 -04:00
Paulus Schoutsen 10c997b7b2 Remove no longer needed blocks (#1262) 2018-06-05 21:20:34 -04:00
Paulus Schoutsen 4d48a63141 Further simplify build (#1256)
* Remove manual copy

* Use Webpack to create gzip versions
2018-06-04 07:06:12 -04:00
Paulus Schoutsen af14fc6548 Preact: Import components in pages that need them (#1257) 2018-06-04 07:05:51 -04:00
Paulus Schoutsen 4bd14a5280 Version bump to 20180603.0 2018-06-03 12:24:53 -04:00
Paulus Schoutsen cf57cf853b Update translations" 2018-06-03 12:24:37 -04:00
Paulus Schoutsen 8133102bcb Re-add service worker caching (#1247)
* Re-add service worker caching

* Lint
2018-06-03 07:38:22 -04:00
c727 dbcae9cb77 Localize configurator, climate (#1253)
* Localize configurator

* Add climate

* Fix typo

* Lowercase
2018-06-03 07:38:07 -04:00
c727 cb284d9718 Localize lock dialog (#1249)
* Localize lock dialog

* Fix attribute binding

* Add ev
2018-06-03 07:37:35 -04:00
c727 d16f4c846a Pass hass to state-history-charts (#1252) 2018-06-03 07:36:27 -04:00
Paulus Schoutsen ce3564625e Bump version to 20180601.0 2018-06-01 10:51:37 -04:00
Paulus Schoutsen e928be353a Update translations 2018-06-01 10:51:21 -04:00
c727 addb8e3111 Localize cover, fan, light, media player, history charts (#1244)
* Localize cover, fan, light, media player, history charts

* Don't capitalize
2018-06-01 10:50:28 -04:00
c727 fa11fbc85d Localize notification toasts (#1243)
* Localize notification toasts

* Use correct placeholder syntax

* Lint

* Use original string
2018-06-01 10:07:33 -04:00
Paulus Schoutsen c3d67133c2 Improve custom panel support (#1236)
* Add custom panel

* Lint

* Add reference to docs

* Use panel.config
2018-06-01 10:06:28 -04:00
c727 1a3966e55f Localize ha-relative-time (#1241)
* Localize relative time

* Add mixin

* Pass hass to ha-relative-time

* Remove debug

* Add hass

* Add hass everywhere

* Remove value from translation file

* Add quotes to attributes

* Lint

* Fix in hassio file

* Use current placeholder syntax

* Use correct syntax

* Move to ui.components
2018-06-01 09:55:00 -04:00
Marius e11cca28fd Fixes #12707 Nest climate card contains redundant fields (#1234)
* Fixes #12707 Nest climate card contains redundant fields

Updated for better value handling

Fixed lint

* Remove some brackets
2018-06-01 14:58:34 +02:00
Paulus Schoutsen 1f14373117 Version bump to 20180531.0 2018-05-31 17:24:43 -04:00
Paulus Schoutsen 490c37e899 Update translations 2018-05-31 17:24:25 -04:00
c727 3c48973584 Make app toolbar text color themeable (#1225)
* Make app toolbar text color themeable

* Update ha-style.js

* Also theme tab selection bar
2018-05-31 17:23:43 -04:00
cdce8p b378b92aa8 Fix paper-slider overflow issue (#1235)
* Fix overflow issue with slider pin

* Lint

* Reverted changes

* Style changes

* Centered position values a bit higher

* Use ha-labeled-slider

* Small update
2018-05-31 17:23:22 -04:00
Paulus Schoutsen c0919cfe11 Add paper-time-input back (#1242) 2018-05-31 17:20:57 -04:00
c727 f96db5003a Automation dialog: add localization, fix CSS (#1227)
* Automation dialog: add localization, fix CSS

* Feedback

* Add bottom margin to dialog controls

* Remove margin for all
2018-05-30 22:57:45 -04:00
c727 a8fa8d46e5 ACP dialog: remove deprecated pattern check (#1238) 2018-05-30 20:12:57 -04:00
c727 673c7c5184 Remove is="custom-style" (#1237) 2018-05-30 19:59:31 -04:00
cdce8p ff50414cbb Add Template extension points (#1230)
* Added first extension points for cover & climate

* Finished state-summary cards

* Cleanup
2018-05-30 11:41:11 -04:00
c727 b8ac150ee4 ACP dialog: localization, new codeFormat (#1226)
* ACP dialog: localization, new codeFormat

* Fix code validation

* Fix issues

* Fix issues
2018-05-30 09:32:30 -04:00
c727 2f6bb9af0c Correct relative time logic (#1231) 2018-05-30 13:18:14 +02:00
c727 348943f221 Weather card fix typo (#1229) 2018-05-30 01:24:28 +02:00
c727 74e0779d38 Add precipitation to weather card (#1098) (#1221) 2018-05-29 03:29:52 +02:00
Robert Accettura 21e4bc4ee4 Add pin pad to alarm panel (#1134)
* Add pin pad to alarm panel

* Update regex

* Add pin pad to alarm panel

* Lint

* Polymer3-ify

* Add new line
2018-05-29 02:51:03 +02:00
cdce8p af6167b9c8 Fix cover icons for closing & opening (#1220)
* Fix cover icons for closing & opening

* Removed state &&
2018-05-29 02:18:38 +02:00
Paulus Schoutsen eb29b73390 Hassio: no longer point at polymer repo 2018-05-28 19:49:40 -04:00
Paulus Schoutsen e158709b1e Include iconset for hassio 2018-05-28 17:11:54 -04:00
Paulus Schoutsen 045b1d02be Restore old Hass.io HTML build (#1218) 2018-05-27 17:24:40 -04:00
Paulus Schoutsen 66012da4de Generate Hass and Hass.io specific iconset (#1214)
* Generate hass icons

* Generate Hass.io icons

* Convert hass.io to use hassio iconset

* Convert src to use hass iconset

* Give mdi-icons a chunk name

* gen-index-html aware of hass-icons

* Use ha-icon for rendering state icon
2018-05-27 17:04:18 -04:00
Paulus Schoutsen 294f0febbf Move Hass.io panel files to hassio folder (#1215) 2018-05-27 12:00:54 -04:00
Andrey a79f98efbf Add webcomponents-bundle.js.map to dev version (#1216) 2018-05-27 11:56:22 -04:00
Andrey dd57ddbef6 Try to use existing updateStyles for theming (#1217) 2018-05-27 11:56:01 -04:00
Paulus Schoutsen d3b6740488 Version bump to 20180526.4 2018-05-26 19:55:30 -04:00
Paulus Schoutsen f51503af4f Write old mdi.html exactly as hass.io expects (#1213)
* Write old mdi.html exactly as hass.io expects

* Create build dir if it doesn't exist
2018-05-26 19:55:08 -04:00
Paulus Schoutsen 0c92b356a1 Version bump to 20180526.3 2018-05-26 14:28:32 -04:00
Paulus Schoutsen 9393bb2fba Include ha-iconset-svg with mdi (#1212) 2018-05-26 14:28:14 -04:00
Paulus Schoutsen 61bc2d04f3 Version bump to 20180526.2 2018-05-26 11:50:27 -04:00
Paulus Schoutsen 71196b9704 Load icons via JS (#1211) 2018-05-26 11:50:03 -04:00
Paulus Schoutsen 29912d1b63 Update release script 2018-05-26 08:36:02 -04:00
Paulus Schoutsen 2d67a01ec2 Bump frontend to 20180526.1 2018-05-26 08:30:54 -04:00
Paulus Schoutsen 9d8f055f7b Version bump to 20180526.0 2018-05-26 08:26:43 -04:00
Paulus Schoutsen c6f2f43767 Add old polyfill back (#1210) 2018-05-26 08:26:17 -04:00
PeteBa f4c36e37bb Add entity_picture capability to plant card (#1145)
* Add entity_picture support to plant card

* Align font size with camera card
2018-05-25 18:26:47 -04:00
Paulus Schoutsen d3c10d9b49 Forward change event vaadin combo box (#1208)
* Forward change event vaadin combo box

* Stop propagation
2018-05-25 16:46:54 -04:00
Paulus Schoutsen 4e9a7a4a23 Version bump to 20180524.0 2018-05-24 13:02:56 -04:00
Paulus Schoutsen f24a26c686 Update translations 2018-05-24 13:02:40 -04:00
Paulus Schoutsen df384dc23e Restore markdown for old Hass.io build (#1204) 2018-05-22 09:55:50 -04:00
Paulus Schoutsen 008fcbe1dc Update yarn.lock 2018-05-21 11:00:22 -04:00
Paulus Schoutsen 86a522ce65 Version bump to 20180521.0 2018-05-21 10:55:42 -04:00
Paulus Schoutsen 6bf34afc31 Fix ha paper slider (#1203)
* Fix ha-paper-slider

* Fix ha-paper-slider
2018-05-21 10:45:04 -04:00
Paulus Schoutsen 081e8d9824 Add html tag to legacy layer (#1202) 2018-05-21 10:21:46 -04:00
Paulus Schoutsen 8e6929659d Code split out more things (#1199) 2018-05-21 07:50:50 -04:00
Boyi C 4d50ab937a Some tweak for timeline chart (#1201)
* Some tweak for timeline chart

* remove comments
2018-05-21 07:50:29 -04:00
Paulus Schoutsen 0edf06bfb9 Filter out some modules (#1198) 2018-05-20 21:19:47 -04:00
Paulus Schoutsen d1fcdfd5a3 Convert cover and media player models to classes (#1197) 2018-05-20 08:39:24 -04:00
Paulus Schoutsen d7b2a03880 Don't use window to share CoverEntity (#1192)
* Don't use window to share CoverEntity

* Lint
2018-05-19 16:21:29 -04:00
Paulus Schoutsen 4a734fbffc Inline media player entity (#1191) 2018-05-19 16:12:49 -04:00
Paulus Schoutsen 41990767e2 Remove state history cache from window (#1193) 2018-05-19 16:12:38 -04:00
Paulus Schoutsen 0789c0884c Don't expose translation methods on window (#1194) 2018-05-19 16:12:26 -04:00
Paulus Schoutsen 4de7cbec30 Inline hass-attribute-util (#1196) 2018-05-19 16:12:11 -04:00
Paulus Schoutsen 1d144a101c Remove marked from window (#1195) 2018-05-19 16:12:03 -04:00
Paulus Schoutsen 1eda9155fd Version bump to 20180519.0 2018-05-19 10:37:43 -04:00
Paulus Schoutsen 43b0be9581 Fix hass.io panel 2018-05-19 10:37:22 -04:00
Paulus Schoutsen 52b6fe006f Version bump to 20180518.1 2018-05-18 18:11:46 -04:00
Paulus Schoutsen 365d660e79 Lint 2018-05-18 17:57:26 -04:00
cdce8p 34ec3e0ae5 Fix yarn dev script (#1186)
* Fix yarn dev script

* Removed yarn dev

* Update bootstrap
2018-05-18 15:17:50 -04:00
Paulus Schoutsen 059eda861e Fix placeholder camera image flash as broken image 2018-05-18 15:14:51 -04:00
Paulus Schoutsen 5ede26f162 Extract empty image 2018-05-18 15:12:24 -04:00
Paulus Schoutsen 960bdc0c9b Remove hassCallApi from window 2018-05-18 15:01:33 -04:00
Paulus Schoutsen 81fbda49bd Upgrade to home-assistant-js-websocket@2.0.1" 2018-05-18 13:36:38 -04:00
Paulus Schoutsen e57d9f7751 Add websocket helpers to polymer (#1187)
* Add websocket helpers to polymer

* Lint

* Upgrade to home-assistant-js-websocket@2.0.0
2018-05-18 13:25:01 -04:00
Paulus Schoutsen 964ada87b7 Update dev link 2018-05-18 13:21:59 -04:00
cdce8p ba3670c5db Fix fan rotation attributes (#1159) 2018-05-18 11:14:59 -04:00
Paulus Schoutsen 20ea9e5df7 Bump frontend to 20180518.0 2018-05-17 20:53:31 -04:00
Paulus Schoutsen e1c9f3deea Everything through navigate mixin 2018-05-17 18:20:23 -04:00
Paulus Schoutsen dba388f723 Version bump to 20180517.0 2018-05-17 17:53:26 -04:00
Paulus Schoutsen 3d1164f09c Update translations 2018-05-17 17:53:21 -04:00
Paulus Schoutsen bc27f854f1 More cleanup (#1185)
* More cleanup

* Set up correct urls authorize.html

* Fix polymer lint

* Remove reference to bower

* Tweak uglify settings
2018-05-17 17:51:07 -04:00
Paulus Schoutsen cb0db95abe Build hassio panel (#1184)
* Fix hass.io panel

* Add develop scripts

* Build hassio on Travis
2018-05-16 23:03:48 -04:00
Paulus Schoutsen 8ac08bc802 Remove unused import helper 2018-05-16 21:33:39 -04:00
Paulus Schoutsen f70c0aea6c Org files (#1183)
* Organize files

* Import EventsMixin

* Import NavigateMixin

* Dissolve window.hassMixins

* Apply ElementMixin when we use it

* Update tests to point at right dir

* Eslint

* Clean

* Update mixins inside hassio

* Update lint command"

* Fix polymer lint
2018-05-16 13:47:34 -04:00
Paulus Schoutsen d1adc2fed0 Version bump to 20180516.1 2018-05-16 09:38:42 -04:00
Paulus Schoutsen 1971223ad3 Code split voice and more info dialog out (#1182) 2018-05-16 09:38:01 -04:00
Paulus Schoutsen 3fa9896543 computeStateDomain instead of computeDmoain 2018-05-16 09:20:25 -04:00
Paulus Schoutsen 7b3b717f43 Version bump to 20180516.0 2018-05-16 08:55:16 -04:00
Paulus Schoutsen 405cb36904 Fix imports 2018-05-16 08:54:48 -04:00
c727 0c6f8c34fb P3: Replace hassUtil with imports (#1181)
* P3: Remove get is()

* P3: Replace hassUtil with imports

* Remove hass-util imports

* Fix errors
2018-05-16 14:03:04 +02:00
Paulus Schoutsen 23a2a479a5 Remove rollup (#1179)
* Remove rollup

* Fix build

* Add copy webpack plugin

* Touch service worker

* Remove unused ha-config-js-.js
2018-05-16 07:54:29 -04:00
c727 5a16095270 P3: Remove get is() (#1180) 2018-05-16 07:06:07 -04:00
Paulus Schoutsen 89cb8c87ae Fix map panel (#1178) 2018-05-15 18:00:07 -04:00
Paulus Schoutsen 96d7ec7cda Embed the preact code directly (#1177)
* Embed the preact code directly

* Do not transform object rest spread

* Lint

* Ignore preact from lint
2018-05-15 17:56:32 -04:00
Paulus Schoutsen 47642957c8 Don't run bower anymore when doing release 2018-05-15 14:14:38 -04:00
Paulus Schoutsen 65780de61e Version bump to 20180515.0 2018-05-15 14:06:23 -04:00
Paulus Schoutsen 646f0bb718 Stub service worker 2018-05-15 14:06:08 -04:00
Paulus Schoutsen 68fb35a401 Fix authorize path 2018-05-15 13:46:40 -04:00
Paulus Schoutsen 658b349755 Use url path instead of component name for path 2018-05-15 13:38:05 -04:00
Paulus Schoutsen a4afc2e37a Polymer 3 modulize (#1154)
* Version bump to 20180510.1

* Fix hass util

* Fix translations

* Bye paper-time-input

* Add webpack config

* Add webpack to package.json

* Fix translation import

* Disable web animations polyfill bad import

* Disable importHref import

* Update webpack config to build authorize.js

* Build translations json

* Build frontend correctly

* Run eslint --fix

* Load markdown JS on demand (#1155)

* Add HTML imports (#1160)

* Fix localize (#1161)

* Fix Roboto in build (#1162)

* Load web animations polyfill (#1163)

* P3: Fix chart js (#1164)

* P3: Fix Chart JS

* Update timeline package

* P3: panel resolver (#1165)

* WIP

* Initial importing of panels

* Fix panel resolver

* Fix automation and script editor (#1166)

* Expose Polymer and Polymer.Element on window (#1167)

* Remove unused import

* eslint --fix

* Es5 build (#1168)

* Build for ES5

* Fix build_frontend

* Remove stale comment

* Migrate to use paper-material-styles (#1170)

* Send parsed date to history/logbook (#1171)

* Fork app storage behavior (#1172)

* Add paper input with type time (#1173)

* Fix authorize

* Lint

* Sort imports

* Lint

* Remove eslint-html

* Do not lint authorize.html

* Fix polymer lint

* Try chrome 62 for wct

* P3: Add patched iconset (#1175)

* Add patched iconset

* Lint

* Test with latest Chrome again

* Use less window.hassUtil

* Teporarily use my fecha fork

* Import correct intl.messageFormat

* Update wct-browser-legacy to 1.0.0

* Include polyfill in right place

* Fix IntlMessageFormat

* Fix test not having a global scope

* Rollup <_<

* Fork app-localize-behavior

* Disable wct tests

* Lint
2018-05-15 13:31:47 -04:00
Paulus Schoutsen 205d6a8347 Version bump to 20180510.1 2018-05-10 17:38:10 -04:00
Paulus Schoutsen 89333aa55e Update to home-assistant-js-websocket@1.2.1 2018-05-10 17:38:03 -04:00
Paulus Schoutsen 2a3325efd7 Version bump to 20180510.0 2018-05-10 14:26:38 -04:00
Paulus Schoutsen 3b7a206cec Add an authorize page for authentication (#1147)
* Use authorize page if auth provider

* Add webcomponent polyfill

* More fixes

* ES5 fix

* Lint

* Use redirect_uri

* upgrade uglify to fix tests?

* Update browsers used for testing
2018-05-10 14:25:36 -04:00
Paulus Schoutsen 912969111f Move all of hassUtil to JS (#1153)
* Move all of hassUtil to JS

* Fix tests
2018-05-09 21:33:31 -04:00
Paulus Schoutsen 9116f5733d Include util.js for hass.io (#1152) 2018-05-09 10:47:56 -04:00
Paulus Schoutsen 0fdf980fee Version bump to 20180509.0 2018-05-08 20:45:23 -04:00
c727 8ecc41388a Fix issues with new weather card (#1149)
* Fix issues with new weather card

* New line
2018-05-08 18:14:29 -04:00
Paulus Schoutsen 356e104096 Merge duplicate keys in travis yaml (#1150)
* Merge duplicate keys in travis yaml

* Update .travis.yml
2018-05-08 17:20:35 -04:00
Paulus Schoutsen eeba117e4b Fix hass.io panel (#1148) 2018-05-08 17:54:38 +02:00
Paulus Schoutsen 3da55c6ab5 Version bump to 20180505.0 2018-05-05 11:34:48 -04:00
Paulus Schoutsen faed5fbfe4 Update translations 2018-05-05 11:34:24 -04:00
cdce8p 6f738510fa Added sensor device_class 'light' (#1143)
* Added sensor device_class 'light'

* Changed icon

* Changed device_class name
2018-05-05 09:37:55 -04:00
Boyi C de55c13355 Fix chart not updating #1104 (#1139) 2018-05-04 16:04:07 -04:00
Pascal Vizeli 38e1b16031 Update hassio-host-info.html (#1141) 2018-05-04 14:41:02 +02:00
Paulus Schoutsen 06341edc49 Fetch camera image via websocket connection (#1136)
* Fetch camera image via websocket connection

Lint

Cleanup

* setProperties
2018-05-03 22:04:25 +02:00
Paulus Schoutsen 9fc3d9d019 Fetch media player image from websocket (#1137) 2018-05-03 22:03:48 +02:00
Malte Franken 3e90db5fa3 Allows to define a custom "more info" dialog per entity (#1128) 2018-04-29 15:01:14 -04:00
c727 30555eda88 Remove Hassbian panel (#1132) 2018-04-29 18:08:03 +02:00
c727 ac38fdb9df Fix plant card batteryLvl 100 icon (#1130)
* Fix plant card batteryLvl 100 icon

* Update ha-plant-card.html
2018-04-28 19:29:36 -04:00
Paulus Schoutsen 4c6d9602ae Remove zoom plugin (#1104) 2018-04-27 14:09:25 -04:00
c727 811d99b68c Rework plant card (#1123)
* Rework plant card

* Lint

* Fix updates for battery icon
2018-04-27 10:26:34 -04:00
c727 a983a5dbc5 Weather card without chart (#1117)
* Weather card without chart

* Lint

* Add iron-icon

* Add night icon and translation

* More translations

* Lint

* Feedback

* More Flexbox KungFu

* Finishing

* Use hass lang instead of browser lang

* Add more info card

* Lint

* Improve support for other providers

* Support non-daily forcasts

* Here we go
2018-04-26 17:16:02 -04:00
Boyi C f21db486eb Update timeline to 0.1.5, improve drawing for small element. (#1121) 2018-04-26 16:34:55 -04:00
NovapaX e1b924a154 Update more-info-media_player.html (#1126)
Fixes https://github.com/home-assistant/home-assistant/issues/14098
2018-04-26 21:57:38 +02:00
Paulus Schoutsen 421b9ec800 Version bump to 20180425.0 2018-04-24 23:15:16 -04:00
Paulus Schoutsen e8b84c6d52 Update translations 2018-04-24 23:14:55 -04:00
c727 86db23a957 Add translation for script and scene card (#1119)
* Add translation for script and scene card

* appliesMixin

* Change script button text to "execute"
2018-04-23 13:25:48 -04:00
Otto Winter a22b62cf2a Add Sensor device_class support (#1115)
* Add Sensor Device Class Support

* ES6
2018-04-22 23:37:26 -04:00
Otto Winter db2f588e86 Fix unavailable state icon (#1118) 2018-04-22 18:35:59 +02:00
c727 02cf337f1a Add www. to home-assistant URLs (#1111)
* Add www. to cloud skill URLs

* Update ha-config-cloud-login.html

* Update ha-panel-dev-info.html
2018-04-20 06:08:55 -04:00
c727 eafd7fb296 Update more-info-updater.html 2018-04-20 05:04:45 +02:00
Paulus Schoutsen c0e3f8ec6b version bump to 20180420.0 2018-04-19 22:16:09 -04:00
Paulus Schoutsen 510cc6448e Update translations 2018-04-19 22:15:46 -04:00
Paulus Schoutsen a832566715 Add Google Assistant integration (#1110)
* Add Google Assistant integration

* Fix card actions
2018-04-19 21:55:26 -04:00
Paulus Schoutsen 75ae672ef9 Update translations 2018-04-19 11:40:32 -04:00
NovapaX 570cb5d52b add default vacuum component icon (#1108) 2018-04-18 15:46:52 -04:00
NovapaX afc4663870 allow label-badge-title font-weight theming (#1102)
* allow label-badge-title font-weight theming

* change to 400 weight

kept the variable for those who really prefer the thinness of before.
2018-04-18 14:16:13 -04:00
NovapaX a5aaaf6a0a icon rename (#1105) 2018-04-18 20:15:31 +02:00
Adam Mills 288478978f Always run translation upload on master (#1106)
This ensures that if the master build gets cancelled when translations
change, or if any other weird situation happens, we know the
translations will be uploaded after the next build.
2018-04-18 14:11:31 -04:00
Adam Mills e719f113d9 Fix for Lokalise backend misinterpretation of keys (#1107)
The Lokalise server has a bug that the internal portion of key
references was misinterpreted as a symfony key, and was getting auto
converted by the convert placeholders feature. Since we don't use this
we're turning it off to work around the bug.
2018-04-18 14:11:03 -04:00
NovapaX 2aa02ff561 Fix chart tooltip format for line charts (#1099)
* position tooltip correctly if chart is in history_graph card

* format & localize title in linechart

* tweak tooltip style/position
2018-04-18 09:44:43 -04:00
NovapaX 0a60ec2298 Fix paper-slider pin style (#1022)
* ha-paper-slider extends and copies paper-slider

* paper-slider -> ha-paper-slider

* remove promise

* this.is -> HaPaperSlider.is

* jsdoc to instruct linter

* suppress missing props

* fix linter

* more lint
2018-04-17 17:24:09 -04:00
NovapaX cd3136908c classrename (#1097) 2018-04-17 21:17:10 +02:00
Paulus Schoutsen 6d547aaf21 Update release script to use twine 2018-04-17 10:17:09 -04:00
Paulus Schoutsen 85c4c51228 Version bump to 20180417.0 2018-04-17 10:11:34 -04:00
Paulus Schoutsen 5667f06a12 Update translations 2018-04-17 10:11:20 -04:00
Boyi C 5dc9efd995 Unify navigation to NavigateMixin (#1095)
* Unify page navigation to NavigateMixin

* revert unintended change

* Use template literal
2018-04-17 10:01:58 -04:00
Matt N a2ec19e10f Don't send the Referer header to other origins. (#1092)
Avoid leaking the Home Assistant domain name (which often contains a person's name/alias) in the Referer header for non-same-origin requests.
2018-04-17 10:01:00 -04:00
NovapaX 8047313165 take zero height (#1089) 2018-04-17 10:00:47 -04:00
NovapaX 5068178aac Some more state wrapping fixes (#1082)
* climate state should never wrap

* some more state wrapping fixes
2018-04-17 10:00:11 -04:00
Paulus Schoutsen a597749020 Use handler instead of domain (#1093) 2018-04-17 11:44:38 +02:00
NovapaX 1335a74605 Setting used paper-colors in ha-style (#1091)
* setting default paper-colors
clean up some whitespace/indentation

* better indentation
2018-04-15 16:16:11 +02:00
NovapaX 027165c8ac Prefix media-player-model and use it for more-info (#1088)
* prefix media player model with hass-
use model for more-info-mplayer

* missed a binding
2018-04-14 18:04:44 -04:00
Paulus Schoutsen a512d9e910 Version bump to 20180414.0 2018-04-14 14:40:51 -04:00
Paulus Schoutsen f385b6c80d Fix config entry localization (#1084) 2018-04-14 14:38:34 -04:00
Charles Garwood fdfa09ed2e Add more-info dialog support to dev-states (#1071)
* Add state history card to dev-states

* add hass-mixins.html import

* Put icon for more-info next to entity_id
2018-04-13 21:35:49 -04:00
Boyi C dc6ca7c774 Change padding logic (#1077) 2018-04-13 21:32:50 -04:00
NovapaX f40d64d68c Easier theming and also apply theme to date picker (#1041)
* datepicker overlay backgrond

* style vaadin more

* cleanup diff

* make styling easier

* more vars

* sidebar text

* sidebar selected background backward compatible

* indent commented theming var

* fix sidebar text color incompatibility
2018-04-13 21:32:20 -04:00
NovapaX 961f43e4a5 correct max width. give small text some more space. vertical centering. (#1083) 2018-04-13 21:25:17 -04:00
NovapaX 2cf508e0b0 Some little tweaks (old browsers / iOS 9) (#1086)
* fix config panel flex

* fix media player card not shwwing picture

* prevent toggle being compressed / pushed away
2018-04-13 21:16:51 -04:00
c727 9d3b5c9d9b Hassio: select audio input/output for add-ons (#1078)
* Hassio: audio input/output for add-ons

* Lint

* Lint

* Lint...

* Pimp code

* Update to latest changes

* Lint

* Lint

* try again

* hm...

* Fix this.fire
2018-04-14 00:45:59 +02:00
Boyi C 57e500b109 Fix flex-box (#1076)
Small tweak styling
2018-04-12 08:58:46 +02:00
Paulus Schoutsen d5776f750f Update Node version to latest LTS (#1080) 2018-04-11 21:01:25 -04:00
NovapaX bfaebfe418 Pretty huge scrolling performance upgrade (#1069)
* turn ha-cards into its own layer
2018-04-10 09:25:00 +02:00
Charles Garwood 9cff9cac10 Add refresh button to logbook (#1072)
* Add refresh button to logbook

* cleanup old comment

* Address PR comments

* Code style update

* Remove id from paper-icon-button, style cleanup

* Update date handling, show refresh button for all days

* revert _currentDate changes
2018-04-09 10:59:48 -04:00
Charles Garwood 7967ab307c Adds date to systemlog entries (#1068)
* Adds date to systemlog entries

* Only return date if not today

* Fix lint

* Fix lint

* Address comments by c727

* tested and working this time

* fix lint

* remove unneeded formatDateTime function
2018-04-05 22:51:48 -04:00
Paulus Schoutsen b57116f39c Bump version to 20180404.0 2018-04-03 16:48:46 -07:00
NovapaX 51f4028343 Fix scrollable clipping controls because of webkit-overflow-scrolling: touch; (#1065)
* change labeled slider

* fix `-webkit-overflow-scrolling: touch` clipping positioned elements

* Revert "change labeled slider"

This reverts commit fc34cb712b.
2018-04-03 16:47:26 -07:00
NovapaX c83a05c1ea add issue template (#1067) 2018-04-03 16:43:28 -07:00
NovapaX b102925323 fixing #940 (#1066) 2018-04-03 16:32:06 -07:00
John Arild Berentsen 1cda7791c1 give pollingintensity default value (#1059) 2018-04-01 12:03:32 -07:00
Andrey efa956a0b5 Allow theming badge label color and hide empty label. (#1060) 2018-04-01 12:03:04 -07:00
Paulus Schoutsen 0a5767913a Update version to 20180401.0 2018-03-31 17:42:37 -07:00
Paulus Schoutsen 859ffdb66d Update translations 2018-03-31 17:42:30 -07:00
c727 4c65767e5a Fix TypeError for views (#1045)
* Fix TypeError for views

quick and dirty fix, maybe this file needs some more cleanup

problem:
if you have `default_view` in groups.yaml and reload groups in `computeViewStates(currentView, hass, defaultView)`
`defaultView` is (still) defined but but `hass.states.group.default_view` doesn't exist

Fix: #893

* Update partial-cards.html

* Add ;

* Lint
2018-03-31 17:35:33 -07:00
NovapaX d7d167fbf9 Make paper-scrollable in fullscreen dialog resize properly (#1052)
* remove min-height to make paper-scrollable work properly.
Hack fullscreen background behind it

* apply fix to hassio-markdown-dialog
2018-03-31 17:32:02 -07:00
NovapaX 6447e98caa Fix language selection (#1056)
* fix attr-for-selected not finding language-tag

* look for attribute instead of property

* change to data-binding structure
2018-03-31 17:31:27 -07:00
NovapaX d8fb01ab44 Hide empty 'Currently' on climate statecard (#1047)
* hide currently if no value

* zero is falsy. align items

* don't hide falsy values

* computed property instead of observer

* guard null/undefined
2018-03-31 17:29:49 -07:00
Paulus Schoutsen 77330d03b3 Guard for both undefined and null (#1053) 2018-03-31 12:09:22 -07:00
NovapaX 88ad376045 Don't uppercase unit_of_measurement in state-badge (#1025)
* determine unit from state. set case via label-is-state attr

* use css var and classnames

* use classnames and mixin

* use css var

* fallback, both needed and way more elegant
2018-03-29 17:35:51 -07:00
NovapaX ed0696ea9c hide brightness slider on unavailable light (#1046) 2018-03-29 17:20:51 -07:00
Paulus Schoutsen 5508805f0b Version bump to 20180330.0 2018-03-29 16:59:38 -07:00
Paulus Schoutsen d2688cab75 Fix markdown rendering 2018-03-29 16:58:23 -07:00
Paulus Schoutsen 06502cb93a Fix a bunch of lint errors (#1044)
* Fix a bunch of lint errors

* Add behavior jsdoc

* Convert ha-markdown to polymer element

* Update lint command
2018-03-29 16:57:15 -07:00
Paulus Schoutsen 0e227708b9 Fix tooltip with title on hass-subpage (#1048) 2018-03-30 01:39:53 +02:00
Paulus Schoutsen e46d2e2934 Fix property 2018-03-28 16:34:39 -07:00
Paulus Schoutsen caf1c2fdd1 Update markdown 2018-03-28 16:19:29 -07:00
Kory Prince 209a118833 Remove extra quoting to resolve issues on macOS (#1039) 2018-03-28 16:18:48 -07:00
NovapaX 0790cd1ac9 Improve chart loading behaviour and some other chart fixes (#1042)
* show is loading and animate chart display

* let tooltip overflow in more-info

* graph chart tooltip overflow

* style toopltip a bit more like material design guidelines

* smoother tooltip appearing

* timeline transition time

* max-widht -> width
2018-03-28 16:16:25 -07:00
c727 fb8fb09c73 Change attribute checks to handle if value == 0 (#1037)
if (0) is false
2018-03-27 23:57:01 -07:00
Paulus Schoutsen 7081fb5123 Update markdown 2018-03-27 23:52:35 -07:00
Kory Prince 6c2126fb5f Use build script for markdown-js.html (#1038)
* add script to build and minify markdown-js.html from npm

* update markdown-js.html from build script
2018-03-27 23:52:27 -07:00
Kory Prince af1581b4c5 Migrate to Marked.js + js-xss for Markdown parsing (#1026)
* Migrate to Marked.js + js-xss for Markdown parsing

* Update JS

Updating JS with latest source code from NPM to ensure it has not been altered
2018-03-26 21:13:54 -07:00
NovapaX 38542e1f0c Set theme variables on html element (#1023)
* set theme on html element

* style toggle buttons with primary color

* Fix lint
2018-03-26 17:31:41 -07:00
NovapaX d87d845dbc Fix long more-info toolbar title. (#1034)
Max 2-lines. Ellipsis overflow on supported browsers.
2018-03-26 17:28:35 -07:00
PeteBa 7be6d17b37 Change brightness to be real-time rather than max value (#1029) 2018-03-26 21:44:09 +02:00
NovapaX 981e94e84d Merge pull request #1032 from NovapaX/fix/state-info-badge-colors
Fix state-info badge colors (on polyfilled browsers)
2018-03-26 11:00:53 +02:00
NovapaX c04c30337f Contain slots and scope css instead of using ::slotted
Polyfill converts `::slotted(*)` to `host-tag > *` which messes up
styles of descendents that are not slotted.
2018-03-26 10:50:10 +02:00
Paulus Schoutsen 8451f9487e Version bump to 20180326.0 2018-03-25 18:10:25 -07:00
Kory Prince 41e7235ccf use encodeURIComponent to encode API password (#1027) 2018-03-25 09:34:59 +02:00
c727 3b76238241 Hassio: support new mode (stable, beta, dev) (#1024)
* Hassio: support new mode (stable, beta, dev)

* mode -> channel

* Fix beta data
2018-03-24 22:14:48 +01:00
NovapaX 796ec4a4b0 Use hue, saturation and a brightness filter for state badge (#1021)
* Use hue and saturation values. Use css filter for brightness.

* Assign style properties at once.

* label => if else logic
2018-03-23 10:01:33 -07:00
Marc Khouri 6ee9808d42 Fixup styling of config entries (#1020)
* Fixup styling of config entries

Fixup the (temporary) styling of config entries by not using `paper-item`,
which made entries clickable / focusable

* Missed dependency
2018-03-22 23:16:50 -07:00
Marc Khouri 399d14a5e0 Add styling to Config Entries (#1011)
* Add some styling to Config Entries

This commit adds some styling to the (experimental) Config Entries

* re-add localization

Note: I'm having issues with localization on my current setup -- it doesn't
seem to be working for me 🤷. This commit just keeps the same localization
as there was previously, no change

* Update based on PR review

* Remove stale annotations
2018-03-22 10:32:32 -07:00
Paulus Schoutsen 42f3294523 Version bump to 20180322.0 2018-03-21 21:19:23 -07:00
Paulus Schoutsen d609ce241e Update translations 2018-03-21 21:15:11 -07:00
Adam Mills e5a5c353c4 Don't render minimum color temp with gray border (#1017) 2018-03-21 15:22:44 -07:00
Adam Mills 0df4aa6117 Use new light HS API for the color picker (#982) 2018-03-21 17:35:16 -04:00
c727 6bdf1c8b80 Hassio: show hardware (#997)
* Hassio: list hardware

* Hassio: show hardware

* Remove debug

* Travis

* Concept

* Lint

* Raised button

* Lint
2018-03-21 12:26:46 -07:00
NovapaX 421b9abc7d fix media-player source selection loop (#1012) 2018-03-21 18:20:14 +01:00
NovapaX b107e0e15c Stop paper-slider to change value on touchdown on the sliderbar (#1006)
* Stop paper-slider to change value on touchdown on the sliderbar.
This prevents interfering with intended scroll. Touch-tap on the
sliderbar still works. Mouse-behavior doesn't change eiter.

* change property syntax
2018-03-19 14:42:51 -07:00
NovapaX fe6c8faad7 fix vaadin overlay height (e.g in services picker) (#1007)
see: https://github.com/vaadin/vaadin-combo-box/issues/432
2018-03-19 14:42:05 -07:00
Andrey 46a2f4fd72 Make sure packages are up to date when releasing (#1004) 2018-03-17 17:26:45 -07:00
NovapaX 3324c7e01c Nicer scrolling for more-info (#1005)
* nicer more-info scrolling (momentum & rubberband)

* move chart into scrolling region.
Fixes resizing issues of the paper-dialog (and scrolling area) because
of chart rendering after loading.
2018-03-17 17:26:02 -07:00
Paulus Schoutsen 8146794857 Version bump to 20180316.0 2018-03-16 15:38:59 -07:00
Andrey b03c361198 When /states/bad_view is selected - fall back to default view. (#1002) 2018-03-16 15:38:27 -07:00
cdce8p 860860099e Changed cover icon condition (#995) 2018-03-16 03:38:37 +01:00
Paulus Schoutsen b80c52dab2 Fix race condition setting current language (#996) 2018-03-15 12:33:32 -07:00
c727 e0ca88b3ad Hassio enable beta updates from UI (#993)
* Hassio enable beta updates from UI

* Feedback

* Feedback2
2018-03-15 05:58:09 +01:00
Paulus Schoutsen 196ea97917 Use Home Assistant icon for homeassistant domain" (#994) 2018-03-15 04:19:29 +01:00
Paulus Schoutsen 4f55103a12 Version bump to 20180315.0 2018-03-14 16:13:10 -07:00
Paulus Schoutsen 9082b47687 Update translations 2018-03-14 16:13:10 -07:00
Andrey 05da295f27 Charts improvements (#992)
* Charts improvements

* Improve last-odd legend item.

* Revert dblclick

* Lint
2018-03-14 16:11:37 -07:00
NovapaX 9dc809cdb9 State display wrapping and fix full screen more-info (#991)
* state-info lower min-width, remove unnesecary wrapping div

* State normal line height, align flex baseline. Get rid of wrapping div

* fix full screen more-info-dialog
2018-03-14 11:42:10 -07:00
Ville Skyttä 09fe2172b2 Spelling fixes (#989) 2018-03-14 13:03:00 +01:00
Ville Skyttä 3d101116a2 Fix and update "Update Instructions" link (#990) 2018-03-14 12:58:48 +01:00
Paulus Schoutsen 2ed5b7e7c1 Move effects control down (#988)
It's the least important control in the whole more info picker, yet was taking up the prime spot.
2018-03-13 23:58:12 -07:00
NovapaX 7066b40e4c Apply paper-dialog-behavior instead of nesting paper-dialogs (#987)
* disable ha-url-sync

* apply a paper-dialog-behavior mixin to dialogs

* Revert "disable ha-url-sync"

This reverts commit 4758a81af61d9f6979a93c0a899d3788fb48090e.

* fix css :host attribute selector

* move hass back to the components
2018-03-12 18:20:04 -07:00
NovapaX 2c79094fb4 Change more-info-dialog name to ha-more-info-dialog (#986)
* change more-info name to ha-more-info-dialog (like other dialogs)

* rename element

* fix closing tag
2018-03-12 12:34:51 -07:00
c727 198e2dd11f Show JS version and custom UIs in dev info (#981)
* Show JS version and custom UIs in dev info

* Custom UIs

* Move to bottom
2018-03-11 16:35:49 -07:00
c727 3234777154 Add Norsk Nynorsk to languages (#984) 2018-03-11 15:13:50 -07:00
Adam Mills 0ec4cd668f Use backend translation for config entries (#980)
* Use backend translation for config entries

* Accept label/error callbacks on ha-form

* Add hassMixins import to ha-form
2018-03-11 12:47:52 -07:00
Paulus Schoutsen f1736024cc Version bump to 20180310.0 2018-03-10 10:19:19 -08:00
Adam Mills 29f9b2d201 Fix backend translations load without selection (#979) 2018-03-10 10:06:25 -08:00
Paulus Schoutsen 97eec435ab Version bump to 20180309.0 2018-03-09 07:53:33 -08:00
c727 b52d2967df Hassio: confirm add-on uninstall (#977)
* Hassio: confirm add-on uninstall

* Travis
2018-03-08 18:11:43 -08:00
Paulus Schoutsen 964b048a93 Update translations 2018-03-08 16:16:43 -08:00
c727 a3ac015f84 Hassio show changelogs (#969)
* Hassio show changelogs

* wip

* update

* Travis

* Travis2
2018-03-08 16:14:07 -08:00
Paulus Schoutsen 85ab32d752 Upgrade home-assistant-js-websocket 2018-03-08 16:12:53 -08:00
c727 a1dbd18a9a Hassio snapshot: download + design tweaks (#972)
* Hassio snapshot download, upload

* some improvements

* Remove event

* Remove upload stuff

* Feedback

* Make downloads as suggested

* More updates

* Add tooltips
2018-03-08 15:52:52 -08:00
c727 08d4e0af18 Fix relativeTime format for Date() === dateObj (#974)
* Fix relativeTime format for Date() === dateObj

* Feedback

* Update hass-util.html
2018-03-07 17:31:13 +01:00
Adam Mills 1fbad393bf Lokalise upload fix (#976)
* Pin lokalise sceript to working version

* Include cleanups from the home-assistant scripts
2018-03-07 09:46:33 -05:00
c727 675a3adfbe Remove scrollbar in Hass.io iframe (#973) 2018-03-05 21:43:33 -08:00
Paulus Schoutsen d0fc088c06 Version bump to 20180305.0 2018-03-05 15:18:59 -08:00
Paulus Schoutsen ca6ec8bb0f Fix dev info panel dialog overlay (#971) 2018-03-05 15:18:37 -08:00
Paulus Schoutsen f9b7268b9a Update translations 2018-03-05 15:11:19 -08:00
Paulus Schoutsen bec9162198 Simplify the cloud screens (#967)
* Simplify the cloud

* lint

* Simplify registration flash message text

* Address comments

* Update title
2018-03-05 13:42:56 -08:00
Andrey 710139bf4b Clean charts and persist hidden lines (#970) 2018-03-05 13:40:53 -08:00
Paulus Schoutsen e41b5238c2 Config entry tweaks (#960)
* Add support for picking an option to ha-form

* Fix overlay of paper-dialog inside app-layout

* Handle flows that finish/abort straight away

* Lint

* Remove alerts

* Remove userCreatedFlow from properties

* Don't use setProperties for 1 property
2018-03-05 13:06:22 -08:00
Paulus Schoutsen d188821765 Prefer set properties (#968)
* Use set properties

* Address comments

* Update partial-cards.html
2018-03-05 00:12:55 -08:00
Andrey 19705a9c2b IntersectionObserver fixes (#964)
* IntersectionObserver fixes

* handle 'card -> entities -> card' case

* fix typo
2018-03-04 10:22:53 -08:00
Andrey addad74019 Add css variables to toggle buttons colors (#966) 2018-03-04 10:20:54 -08:00
Boyi C 9dc33de49f Update chartjs to 2.7.2 (#963)
* Update chartjs to 2.7.2

* lint

* lint
2018-03-03 17:43:27 -08:00
c727 39172f8c49 Hassio reload addons and snapshots (#937)
* Hassio reload addons and snapshots

* Add refresh button again

* Travis

* Remove Eventlistener
2018-03-01 17:23:47 +01:00
Adam Mills 101794c88e Load and subscribe to backend translations (#894)
* Load backend translations

* Add support for component level state translations

* Fix selected language backend translation loading
2018-02-28 19:32:48 -08:00
c727 bae1ab822c Add Welsh + Indonesian to languages (#873)
* Add Welsh to languages

* Add Indonesian
2018-03-01 04:03:57 +01:00
NovapaX f87dbc5735 retru importHref once to solve a webkit refresh issue (#958) 2018-02-28 13:59:01 -08:00
Sean Wilson 7377db312b Add 'lock' device class (#800)
* Add 'lock' device class

* Invert lock settings as per https://github.com/home-assistant/home-assistant/pull/11640
2018-02-28 13:25:33 -08:00
NovapaX bb6c46180d Hide the date-clear icon and style vaadin-date-input like a paper input (#956)
* styling the vaadin-date-input like a paper input.

* move date-picker styles to ha-style
so they get reused automatically

* move vaadin date-picker-styles to thier own file.

* only disable clear button on required field.
and some style changes
2018-02-28 12:56:18 -08:00
Paulus Schoutsen 3ddb456970 Version bump to 20180228.1 2018-02-28 10:47:57 -08:00
Paulus Schoutsen 3fbd5e351e Add user agent check to frontend (#955)
* Add user agent check to frontend

* Remove auto generated comment.
2018-02-28 10:46:24 -08:00
Max Prokhorov 9c6d28fbc4 Chart.js labels and ticks with proper locale formatting (#948)
* Use hassUtil to format time in timeline tooltip

* Also format time in timeline ticks

* Use hassUtil.formatTime instead of moment.format
2018-02-28 10:40:38 -08:00
NovapaX 5966e872cf reinstate connectedCallback (#957)
using the debouncer this time so no harm
2018-02-28 19:19:09 +02:00
Paulus Schoutsen 9ca00d1c85 Version bump to 20180228.0 2018-02-27 20:47:46 -08:00
NovapaX 16734c7423 Fix history data processing (#951)
* don't call filterchanged twice. it's already an observer.

* fix data comparison
Compare new data from ha-state-history-data to existing data and replace
if changed

* remove unnecessary styles

* prevent multiple updates of chart-data

* remove console

* remove another console

* directly binding because debouncing in history-data element
shortening debounce time, works fine at 0

* remove inacurate comment
2018-02-27 20:40:25 -08:00
NovapaX 26b9ddf3ed fix safari es6 bug (#950)
and also at least log the error we catch. (don't know why the catch is
there, so not removing it)
2018-02-27 20:00:33 -08:00
Paulus Schoutsen 73608a73e7 Update zoom icon (#954) 2018-02-27 19:48:49 -08:00
Paulus Schoutsen c2b090b912 Import mixin to silence build warning (#952) 2018-02-27 19:35:49 -08:00
Paulus Schoutsen f75147c799 Reset height when not observing (#949) 2018-02-27 19:05:07 -08:00
Paulus Schoutsen 5296dcfe85 Entity Registry UI (#921)
* Entity Registry UI

* Tweak style in fullscreen

* Fix UI comments

* Fix imports

* Change title margin

* Fix graph rendering

* More style fixes

* Remove unused parameter
2018-02-27 19:04:58 -08:00
NovapaX 24bafceb71 Remove tap highlight on mobile Safari (#911)
* remove tap highlight

* indentation fix
removing tab that was already there

* Best of both worlds
Makes tap higlight visible on clickable elements on cards. (provides
some basic tap-feedback on iOS safari)

* allow highlight on sidebar links, add comment
2018-02-27 18:35:20 -08:00
c727 579adb0455 Hassio password protected snapshots (#936)
* Hassio password protected snapshots

* Remove space

* Travis

* Add checkmark to password

* Improve empty password detection

* Update

* Improvement for snapshot name

* Update

* Update hassio-snapshot.html

* Feedback

* Remove autofocus from password

* hidden -> dom-if
2018-02-27 18:09:06 -08:00
Paulus Schoutsen 3430996700 Migrate to app-drawer-layout (#929) 2018-02-27 17:38:19 -08:00
Andrey ebc21aaa40 Disconnect unused more-info (#945) 2018-02-27 14:00:50 -08:00
c727 a88c6f49a2 Hassio sort add-ons on dashboard (#944) 2018-02-27 15:04:19 +01:00
c727 d27d9dd5da Hassio fix addon update info (#939) 2018-02-27 01:38:40 -08:00
Boyi C 807837a0dc Make the chart color more eye-friendly. (#941)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox

* Change timeline chart color to a palette.
2018-02-27 01:24:40 -08:00
Paulus Schoutsen bb6b0ff714 Version bump to 20180227.0 2018-02-26 22:20:22 -08:00
Paulus Schoutsen 1ba34b1f78 Update translations" 2018-02-26 22:20:01 -08:00
NovapaX 44c325a929 prevent state display line-wrapping (#932)
* prevent state display line-wrapping
Only for applies to default statecards (state-card-display), not for
component specific statecards.

* compute class names function

* apply style to calculated class

* var -> const
2018-02-26 22:10:05 -08:00
NovapaX 294dec59a7 Fix display issues on iOS 9.3.5 (#901)
* Fix global default definition selector

* taking the brute force approach

* Some clarification in comment.
Feel free to change or remove. I thought this would be usefull as this
is a severe code duplacation that justifies some comment/clarification.

* Add link to PR/discussion for future reference

* Revert "taking the brute force approach"

This reverts commit 77d9920cd9.

# Conflicts:
#	src/resources/ha-style.html

* change comment

* always include paper-styles before custom style
2018-02-26 16:16:39 -08:00
Adam Mills d4b257854d Add localization to the automation editor (#923)
* Add localization to the automation editor

* Unnest automation strings from `section`
2018-02-26 16:15:51 -08:00
Paulus Schoutsen 9f3458fcd1 Guard for contentWindow == null (#930) 2018-02-26 11:44:15 -08:00
Paulus Schoutsen ff658c86ff Fix deprecated CSS (#928)
* Fix nested var

* Fix deprecated @apply syntax

* Hassio
2018-02-26 11:43:58 -08:00
Boyi C 0ab240c678 Fix chart legend not showing correctly when data has 1 series. (#926)
* Fix chart legend not showing correctly when data has 1 series.

* Change to flexbox
2018-02-26 10:46:20 -08:00
NovapaX 672bfb375f Fix paper card alignment in safari (#933) 2018-02-26 16:14:22 +01:00
Paulus Schoutsen cdb9936795 Fix cards not getting updated (#927) 2018-02-26 00:24:07 -08:00
NovapaX 8b719778d0 search and replace (#924) 2018-02-25 19:44:03 -08:00
c727 1a18ee2755 Hassio fix issues with snapshot dialog (#920) 2018-02-25 01:34:34 -08:00
c727 5f5ac3834d Hassio rename advanced2 (#910)
* Change advanced to system

* Change advanced to system
2018-02-24 08:20:24 +01:00
c727 cdd4cabb4b Hassio, use CSS vars to avoid conflicts with themes (#918)
* Hassio, use CSS vars to avoid conflicts with themes

* More
2018-02-23 15:07:09 -08:00
c727 b47c5beacf Hassio remove TZ hack (#915) 2018-02-23 18:18:27 +01:00
c727 0ffb31999e Hass.io switch to tab navigation (#879)
* Hass.io switch to tab navigation

* Fixes

* Changes based on feedback

* Fix main

* move header back to main

* Remove space

* Navigation as suggested, replaced iron-pages
2018-02-23 01:26:29 +01:00
Paulus Schoutsen c149ac735a Version bump to 20180221.1 2018-02-21 12:40:51 -08:00
Paulus Schoutsen bb946d9eec Clean up cloud routing (#909)
* Clean up cloud routing

* Lint
2018-02-21 11:48:28 -08:00
Andrey ea57e71c8b Optionally use Intersection Observer to late-load cards (#906) 2018-02-21 00:00:52 -08:00
Paulus Schoutsen 346022c48e Version bump to 20180221.0 2018-02-20 17:54:33 -08:00
Paulus Schoutsen 0a070a3fda Nav fixes (#908)
* Fail if script is not editable

* Fix config nav
2018-02-20 17:53:35 -08:00
Paulus Schoutsen 24c9dd0472 Version bump to 20180220.0 2018-02-20 09:07:37 -08:00
Paulus Schoutsen 9f27f75397 Upgrade chartjs timeline to 0.1.4 2018-02-20 09:05:15 -08:00
Paulus Schoutsen 35c8c70783 Lazy load iron page entries in config panel (#903) 2018-02-20 09:03:09 -08:00
Paulus Schoutsen 6a5de599df Change valueMin and Max props (#905) 2018-02-19 21:47:23 -08:00
Tabakhase 72a0b3520d Bring back zoom in charts using chartjs-plugin-zoom (#890)
* add chartjs-plugin-zoom + hammerjs

* adds a "unzoom" button for chartjs-plugin-zoom

* limits chartjs zoom and pan area by scanning all axis
2018-02-18 08:12:30 -08:00
Adam Mills 7acab579b4 Use new lokalise builtin unzip for download (#900) 2018-02-17 19:49:14 -08:00
Paulus Schoutsen 9de71db3cb Version bump to 20180216.0 2018-02-16 15:05:48 -08:00
Paulus Schoutsen f3c3bb8c43 Config panel for Config Entries (#861)
* Initial implementation

* Update UI

* Update

* Address comments

* More comments

* Lint
2018-02-16 14:36:11 -08:00
Nash Kaminski 012e0981f2 [Bug] Do not overwrite the content of JSONTextField while the user is editing such (#895)
* Do not overwrite the context of JSONTextField while the user is editing such

* Style changes

* Handle case where valid JSON could potentially be overwritten.
2018-02-16 10:40:46 -08:00
Otto Winter 83e34f3f95 Fix template panel link (#898) 2018-02-16 09:20:43 -08:00
Paulus Schoutsen f83a9d7339 Dev dependencies (#897)
* Upgrade eslint

* Upgrade rollup

* Upgrade mocha

* Upgrade gulp

* Upgrade more gulp

* Upgrade frontend stuff
2018-02-16 09:03:13 -08:00
Paulus Schoutsen 5731c1fa28 Load the chart resources in dev too (#896)
When switching to always loading the resources on demand, I forgot to change the default value to be always false instead of dev. This caused the charts not to load in dev.
2018-02-15 21:38:44 -08:00
Paulus Schoutsen 7860133709 Revert deps upgrade (#892) 2018-02-15 12:32:18 -08:00
Marius 1783696ecb more-info-climate.html use supported_features (#849)
* Added supported features for controls

* Improved supported features

* Removed lines resulted from rebase

* Fixed lint and review

* Added more supported_features and fixed fan mode bug
2018-02-13 23:20:11 -08:00
c727 10c07673c1 Fix mark items as (un)complete in shopping list (#887)
* Fix mark items as (un)complete in shopping list

Fix: #885

* Update ha-panel-shopping-list.html
2018-02-12 21:09:16 -08:00
Paulus Schoutsen e2ff04e40b Lint 2018-02-11 10:31:12 -08:00
Paulus Schoutsen 932d8afbed Version bump to 20180211.0 2018-02-11 09:44:48 -08:00
Paulus Schoutsen 1cf18a34b8 Update dependencies 2018-02-11 09:44:28 -08:00
Paulus Schoutsen 7f461defc1 Improve UX template editor (#878)
* Improve UX template editor

* Address comments
2018-02-11 09:42:52 -08:00
Paulus Schoutsen 4c5d85746c Fingerprint charts (#883)
* Fingerprint charts URL

* cache in service worker
2018-02-11 09:01:17 -08:00
Boyi C b6ad4edd32 Fix missing arguments in history-data. (#880) 2018-02-10 10:08:04 +02:00
Boyi C c6030e6edc Replace Google Charts with Chart.js (#429)
* chartjs test

* [WIP] Modified for Chart.js

* Tweaking styles ( tooltips and lines )

* Almost done
TODO:
Change tooltips to HTML tag
Improve color function

* More work on Tooltips

* Improve update logic
Fix linting

* resolve conflict

* [WIP]
Create new tooltip mode hack.
Add axis padding to top and botton to prevent axis cutoff

* TODO: cleanup

* FIXME: tooltip in history graph not working correctly
reorganize some code

* fix build problem

* Fix color and tooltip issue
Fix label max width for timeline chart

* update dep

* Fix strange color after build due to `uglify` bug with reference the minified version.
Make line chart behavior more similar to Google Charts.
Make the chart honor to `unknown` and other state by manually calculate point value.

* fix bugs

* Remove label for only one data in timeline chart.
Fix bug for infinite loop in some cases

* Add HTML legend to chart.

* Fix isSingleDevice bug due to calculation.
Add isSingleDevice property support.

* fix for lint

* Replace innerHTML code with polymer node.

* Replace tooltip with HTML code

* fix tooltip style

* move default tooltip mode to plugin

* LINTING

* fix
Move localize history data to Timeline Chart.
Fix timeline static color.
Rework on chart resize.

* Bug fix:
Chart may disappear on some case.
Timeline chart calculation issue.
Change timeline chart hidden logic.

* fix tooltip
rework for resize event

* lint

* element

* Replace `var` to `let`.
Move import and ChartJs injection code to `ha-chart-scripts.html`.

* lint: convert more let to const

* fix font
fix undef

* update bower.json

* move

* Load chart code on demand
2018-02-09 22:39:15 -08:00
Paulus Schoutsen 500edbad0d Version bump to 20180209.0 2018-02-09 14:32:17 -08:00
Abílio Costa 3701e022bc Badge sorting (#844)
* sort badges correctly in user-defined group

* rename sorting list that is used for badges and groups

* remove trailing space

* better array iteration

* Revert "better array iteration"

This reverts commit 0a87b3350c.

* simplify sorting of badges
2018-02-09 14:30:35 -08:00
Paulus Schoutsen be3f35c8cd Update translations 2018-02-09 14:28:21 -08:00
c727 81c49628e4 Hass.io card design for dashboard updateinfo (#877)
* Hass.io card design for dashboard updateinfo

* Remove test stuff
2018-02-09 22:49:17 +01:00
c727 ac628787ac Hass.io improve store (#875)
* Hass.io improve store

* Improve code
2018-02-09 22:48:58 +01:00
c727 6ce72444ae Hass.io improved snapshot view (#872)
* HASSIO Improved snapshot view

* HASSIO Improved snapshot view2

* Update main

* Feedback

* Travis

* Travis 2
2018-02-08 22:16:13 +01:00
c727 710c2f1094 Hass.io improved add-on view (#874)
* Rename

* Improvements

* Travis

* Feedback

* Typo
2018-02-08 22:15:51 +01:00
Steltek 1f703fbdda Make the password field autofocus on the login screen. (#862)
* Author:    Michel Meyers <debian@tcnnet.com>
Committer: Michel Meyers <debian@tcnnet.com>

Make the password field autofocus on the login screen.

* Update login-form.html
2018-02-07 16:39:50 -08:00
Marius 76153d1e17 Fixing #775 (#854) 2018-02-07 15:21:07 -08:00
Marius ec930d2c56 HASSIO Improved addon view (#869)
* Improved addon view
Moved files to avoid conflicts with @c727
Modified data to addons
Removed unused properties
Removed blank line and unused class
Added link to polymer-element
Redone grouping

* Changes based on feedback

* Revert flex box

Maybe someone else can help to center the icon and text

* Display timestamp in new line

* Update hassio-card-content.html
2018-02-07 22:57:43 +01:00
cdce8p 9e09d5b095 ZWave Node Management - Show hidden nodes (#864) 2018-02-07 20:41:45 +02:00
Victor Cerutti 6ad0c254b5 Fix resizeObserver loop #12192 (#867)
When the slider width is updated, resizeObserver prevent for firing the function another time.
Exemple: https://jsfiddle.net/ba1ad26e/11/
Compete doc: https://wicg.github.io/ResizeObserver/#html-event-loop
Solution: Observe the width change of the card instead of the slider. If the state value is hidden/displayed, it won't change again the slider width and so it will prevent the msg in the log
Drawback: the function cannot use the width sent by the resizeObserver anymore as it's no longer the slider width but the card width
2018-02-05 22:31:00 -08:00
c727 a6340fb856 Fix themes for Hass.io Panel (#860)
* Fix themes for Hass.io Panel

* Link hass-util
2018-02-02 17:20:31 -08:00
Andrey 21ee9b297d Switch to babel env preset (#859) 2018-02-01 16:18:47 -08:00
Andrey da807dc508 Add Object.values polyfill (#858) 2018-02-01 16:16:53 -08:00
Daniel Høyer Iversen 384d5fc8a9 Remove duplicate call to getDataArray (#853) 2018-01-31 20:14:19 +02:00
Paulus Schoutsen fcea1fa57d Version bump to 20180130.0 2018-01-29 15:42:21 -08:00
Paulus Schoutsen 4f99bd6811 Update translations 2018-01-29 15:41:25 -08:00
Andrey 0256f73404 Pass language to charts and fix JS error (#847) 2018-01-29 00:28:03 -08:00
Andrey a1b578f81e Report JS errors to backend (#842) 2018-01-27 11:50:13 -08:00
Andrey 13f8fa7e11 Add version to JS (#839)
* Add version to JS

* Throw if version wasn't found
2018-01-26 23:27:11 -08:00
Fabien Piuzzi c11a525a2d Added support for humidity display in the climate state (#838) 2018-01-26 10:54:14 -08:00
covrig d21c1bc615 Add input_text mode:password (#837) 2018-01-26 10:47:53 -08:00
Paulus Schoutsen 42d11c5a3f Version bump to 20180126.0 2018-01-25 23:25:09 -08:00
Paulus Schoutsen 41fe6e8021 Update translations 2018-01-25 23:24:13 -08:00
c727 c3e35a27ba Get language from languages[] first, detect CN (#830) 2018-01-22 23:24:27 -08:00
c727 89464c16ff Fix play/pause icon (#825)
* Fix play/pause icon

* Fix hidden
2018-01-21 19:50:12 -08:00
Paulus Schoutsen 9c2f6e591d Run Hass.io panel in an iframe (#678)
* Run Hass.io in an iframe

* Update hass.io build script

* Lint

* Lint

* Fix build script

* Lint
2018-01-21 00:39:56 -08:00
Andrey 3c95559f33 Extract climate state into a separate component (#820) 2018-01-20 22:09:45 -08:00
Matthias Dötsch 50ed7678a1 Add translate tags to "cards" (#818)
* Add translate tags to "cards"

affected cards:
 - camera card
 - persistent notification
 - weather

* Add translate tags to "cards"

code style

* Add translate tags to "cards"

changes from code review
2018-01-20 22:08:47 -08:00
Adam Mills 8649c5352b Core config translations (#821)
* Config dashboard translations

* Simplify config pages

* Core/Core/Validation

* Core/Core/Reloading

* Core/Core/Server_Management

* Core/Push_Notifications

* Core/Translation

* Core/Themes

* Initial hassbian config translations

* Switch to sentence cases
2018-01-20 22:08:22 -08:00
PeteBa 31bc099cef Aligning the front-end card with latest Plant component changes (#633)
* Aligning with latest backend plant component changes

* Address review comments and plant component alignment

* Revert PR636 to reinstate card

* Add plant domain icon
2018-01-20 21:48:24 -08:00
Victor Cerutti 447dd6640f feature : display input number next to slider (#808)
* feature : display input number next to slider

* Improvements for Box mode of input number

Add unit when available and align the value to the right

* fix for small width cards

hide state if slider width<100px

* add a space between if and (

* Fix value display after a window resize

State value is now hiding or showing correctly after a window resize, using iron-resize component

* fixes eslint validator

* Fix a typo in state-card

* Improvement : Apply all properties altogether

As suggered by @andrey-git, I made use of setProperties

* Watch for mode update of input_number

If a mode is updated and the box switches from "box" to "slider", it now also update the visibility of the state value depending on the slider width

* Update width showing state value

* Use ResizeObserver when available

* Fix conditionnal mistake

Related @andrey-git review here https://github.com/home-assistant/home-assistant-polymer/pull/808#pullrequestreview-90048982
2018-01-20 21:47:15 -08:00
Andrey 31d2b6ffe1 Disconnect dom in invisible tabs (#790)
* Clear dom in invisible tabs

* Disconnect DOM of inactive tabs
2018-01-20 21:47:04 -08:00
Andrey aced689207 History improvements (#817) 2018-01-20 21:45:53 -08:00
Paulus Schoutsen 3736d45318 Version bump to 20180119.0 2018-01-19 09:53:18 -08:00
Paulus Schoutsen 5749e2f07c Update translations 2018-01-19 09:53:07 -08:00
Paulus Schoutsen 783f356679 Add timer card and badge (#810)
* Add timer card and badge

* Disable interval on disconnect

* Tests!

* One more test case

* Remove padStart

* Remove state from timer state card
2018-01-19 09:26:06 -08:00
c727 85d58ba134 Always show locationName in Title (#602)
* Always show locationName in Title

* Handle if no name set

* Fix lint

* Feedback

* Readd L66-L68

* Feedback and fix for default_view

* Fix c&p

* Change default name for default_view to "Default view"

* Make everyone happy

* Make everyone happy2

* Fix CP

* Handle no homeassistant.name in config
2018-01-18 22:10:04 -08:00
Andrey 8b8ba5875f Fix for browsers without SW (#805)
* Fix for browsers without SW

* Improve check
2018-01-17 17:10:15 -08:00
Paulus Schoutsen 9131a7c7e3 Add LastPass workaround (#811) 2018-01-17 10:07:08 -08:00
Marius 3e0193c704 Bug fix for #761 and color enhance when temperature in flux (#772)
* Correct triggering temperature when min is reached and user clicks extra #761

* Fixed build problems from lint

* Fixed as per feedback from @c727

* Updated based on PR feedback from @andrey-git

* Improved defect based on better solution from @andrey-git

* Updated vars to const based on feedback

* Updated control to support better changing values regardless of step based on feedback
2018-01-16 17:02:55 +02:00
Fabian Affolter 40731152e9 Enable probot move (#807) 2018-01-16 09:26:08 +01:00
Victor Cerutti 811e9e2a0e fix slider showed in box mode (#802)
fixes https://github.com/home-assistant/home-assistant/issues/11094
2018-01-16 10:14:41 +02:00
Alok Saboo 4029508b3f Fix icon for device_class occupancy (#801) 2018-01-15 14:39:36 -08:00
Andrey 6fd8ad52b0 Move horizontal padding from state-cards to containing entity-card (#799) 2018-01-14 20:48:37 -08:00
Andrey fbe44598ac Cleanup of partial-cards (#798) 2018-01-12 13:31:39 -08:00
Andrey 58b2a28fe5 Make sure climate more-info dropdowns are upto date (#797) 2018-01-11 22:50:47 -08:00
Paulus Schoutsen 0b47d1f6a5 Version bump to 20180112.0 2018-01-11 15:50:18 -08:00
Andrey d6fd21521c Add on/off to climate more-info (#794) 2018-01-10 14:07:03 -08:00
Paulus Schoutsen e9dfa79f36 Add Alexa info to cloud account page (#793) 2018-01-10 13:19:28 -08:00
Paulus Schoutsen 728d781843 Fix history jump (#792) 2018-01-10 09:39:53 -08:00
Paulus Schoutsen f2358acf2d Version bump to 20180110.0 2018-01-10 00:51:42 -08:00
Paulus Schoutsen c8e4ac422b Update translations 2018-01-10 00:50:42 -08:00
Andrey 48b0857edb Make sure toggle is always up-to date (#783)
* Make sure toggle is always upto date

* Move logic to observer
2018-01-09 16:44:53 -08:00
Andrey c06be58a33 Fix possible JS error (#789) 2018-01-07 14:13:49 -08:00
Paulus Schoutsen 7231976af6 Fix nested group more info (#788) 2018-01-07 13:25:10 -08:00
baflo ea16ebd4f0 Changed behaviour of selecting base entity. (#735) 2018-01-06 21:49:44 -08:00
Andrey 0b9bd62251 Update canToggleState with toggleable climate (#782) 2018-01-04 23:57:23 -08:00
Nigel Rook 1d13126bb5 Use current date for input_datetime time rendering (#754)
* Use current date for input_datetime time rendering

Chrome has a bug where it fails to render times correctly using
toLocaleTimeString for certain dates in the past with non-normal
daylight saving rules. For the UK and New Zealand, this includes
1970-01-01. Instead of using this as the date when rendering the time
for a time only input_datetime, use the current date.

* Add comment

* Lint
2018-01-02 05:02:26 -08:00
Matt Schmitt 27d343b488 Update icons to match with actual state (#769) 2018-01-01 18:04:06 -08:00
Paulus Schoutsen 0a091a272c Version bump to 20180102.0 2018-01-01 17:12:20 -08:00
Marius 5728d8ad1b Fixed issue #767 Operation mode influence between different thermostats (#771)
* Fixed issue #767 Operation mode influence between different thermostats

* Capitalised Operation to be consistent with the rest of controls
2017-12-31 13:50:01 +02:00
Marius bdea42f0b7 Fix for #371 (#774) 2017-12-31 13:39:59 +02:00
c727 fdcc73c6cc Change all keys for "Open"/"Closed" to cover-keys (#773) 2017-12-31 13:38:47 +02:00
Andrey 9e2396375e Fix history panel (#757) 2017-12-30 16:41:16 -08:00
Marius 5085c78f7e Fixing Climate More-info does not allow dual temp target setting (#765)
* Fixing #236

* Fixed build errors

* Updated PR based on feedback from @andrey-git

* Improved side by side style for dual temperature control

* Removed unused styling

* Removed code that is no longer needed after correction from feedback

* Updated based on feedback on discord

* Corrected errors from lint and refactored more vars to const
Fixed lint
2017-12-30 13:11:04 +02:00
Paulus Schoutsen eeb949a081 Allow resending email verification (#770) 2017-12-29 12:43:28 -08:00
ciotlosm 0fd84a2f8d Fixing thermostat bugs (scrolling and state) #758 and #763 (#766)
* Fixing bug more-info-climate card interface scroll bug #758

* Fixes #763

* Renamed class to match value based on PR feedback
2017-12-28 21:21:55 +02:00
Matt Schmitt 4379df0d5c Additional device classes for binary sensors (#749)
* Add additional device classes for binary sensor

* Minor updates

* Travis fixes

* Update per comments

* Update per comments
2017-12-28 13:03:23 -05:00
Andrey cf4d867fa1 Fix sw urls caching (#739)
* Fix sw urls caching

* Remove navigateFallback

* Syntax fix
2017-12-23 14:29:55 -08:00
Adam Mills b3ded276b5 Properly localize unknown/unavailable sensors (#752) 2017-12-23 16:16:40 -05:00
Adam Mills 38088acf14 Use localized state display for timeline charts (#746)
* Fix import typo

* Use localized state names on timeline charts

* Track language in cache metadata
2017-12-23 14:02:33 -05:00
Adam Mills 1b60a93fcc Add translations for the login form (#751) 2017-12-23 14:02:14 -05:00
Adam Mills e7df8cb195 Mailbox empty state styling (#750) 2017-12-23 12:06:34 -05:00
Paulus Schoutsen 440145ab1b Version bump to 20171223.0 2017-12-22 21:28:51 -08:00
Franck Nijhof 0c840e1751 Adds Rebuild button for local add-ons (#734) 2017-12-22 21:18:04 -08:00
Franck Nijhof 36c658096a 💄 Sort add-ons in the Hass.io add-ons store (#733)
Signed-off-by: Franck Nijhof <frenck@addons.community>
2017-12-22 21:17:04 -08:00
Adam Mills 34fd3e4899 Map and mailbox translations (#748)
* Map translations

* Mailbox panel translations
2017-12-22 21:16:02 -08:00
Andrey b16bc88eb5 Switch to Zopfli compression (#744)
* Switch to Zopfli compression

* Lint
2017-12-22 21:12:54 -08:00
Andrey 60ac82edc5 Another fix for app-header-layout (#738) 2017-12-22 21:07:46 -08:00
Adam Mills f0f1a56537 Show RGB picker when RGB not in state attrs (#736)
* Show RGB picker when RGB not in state attrs

* Use supported_features and hide controls when off
2017-12-22 21:06:29 -08:00
Adam Mills 097a8cfdc6 Translations for logbook/history panels (#741)
* Translations for logbook/history panels

* Switch to base localize function

* Move periods to generic durations keys

These are going to end up part of a duration class of keys that will be
more widely used.
2017-12-22 14:22:13 -05:00
Boyi C 1b66492db9 Fix for older Chrome browser. (#747)
* Fix for older Chrome browser.
Follow up for
home-assistant/home-assistant-polymer#730

* fix
2017-12-22 12:07:32 +02:00
Andrey e202f08193 Charts fixes (#742) 2017-12-21 22:25:21 +02:00
Andrey 6b180988fd Make sure tap listener is added at most once. (#745)
* Make sure tap listener is added at most once.

* Add comment
2017-12-21 17:15:05 +02:00
Adam Mills c8c21e6fac Refactor out our localize custom variant (#743) 2017-12-19 09:18:50 -05:00
David af8f77779b Define textual state for connectivity device_class (#740)
* Define textual state for connectivity device_class

Define textual state for connectivity `device_class` for `binary_sensor`.

Without this addition, a `binary_sensor` using the connectivity `device_class` is simply shown as `Off` or `On`. The icon does change but only if the user hasn't defined a custom icon.

* Change wording

Change `Offline`/`Online` to `Disconnected`/`Connected`
2017-12-18 09:40:28 -05:00
Andrey 1aa1ac709d Fix climate chart with unavailable states (#737) 2017-12-18 08:38:58 +02:00
Paulus Schoutsen 91fadccf33 Version bump to 20171216.0 2017-12-15 23:29:48 -08:00
Paulus Schoutsen 0904af2ad2 Refresh account status while connecting (#727)
* Refresh account status while connecting

* Lint
2017-12-15 23:22:22 -08:00
Andrey aa5ff72710 Don't use global event. It is unsupported in Chrome64 (#732) 2017-12-14 09:02:38 -08:00
Adam Mills f8261d93d3 Problem device class (#726)
* Problem device class

* Move OK/Problem master to binary_sensor
2017-12-13 20:02:35 -08:00
c727 f385c7e7d5 Change "Reset to dafaults" to "Discard Changes" (#731)
https://github.com/home-assistant/hassio/issues/278
2017-12-13 08:31:43 -08:00
Boyi C 788650f8e5 Fix for some browsers (#730)
Move polyfill block before all scripts, it should fix page not loading issue on old browsers.
2017-12-13 00:36:00 -08:00
Adam Mills 0018a9a9c8 Fix bug on initial fragment load (#725) 2017-12-11 21:58:28 -08:00
Adam Mills bf126b6c5e Translations for domain names (#724) 2017-12-10 15:45:48 -08:00
Adam Mills c18247cd6b Sync translations post log_out move (#723) 2017-12-10 14:24:28 -05:00
Adam Mills fa2cc68139 Sidebar translations (#722) 2017-12-10 13:47:33 -05:00
Adam Mills 8dde92d572 Fix pushSupported not bubbling to config-core (#721) 2017-12-10 09:57:58 -08:00
Andrey baccd6fb88 Hide group header in case of empty name (#704) 2017-12-05 23:59:21 -08:00
Paulus Schoutsen b99d9923ea Version bump to 20171206.0 2017-12-05 23:38:48 -08:00
Paulus Schoutsen 9d0e89e792 Update translations 2017-12-05 23:37:28 -08:00
Matt Schmitt 13f5e33087 Add device class for low battery (#696)
* Add device class for low battery

* Fix per comments

* Update per comments

* Update per comments

Sorting and revert back to “Normal” for state description

* Fix Travis error
2017-12-05 23:05:30 -08:00
Guillaume Rischard a061a58494 Saved 180 KB out of 865 KB. 23.9% per file on average (up to 85.6%) (#717) 2017-12-05 22:56:14 -08:00
Andrey 9b3448d44c Make full path check before using google.visualization (#716)
* Make full path check before using visualization

* Missing check
2017-12-05 22:54:53 -08:00
Andrey 9ae2325834 Convert toggle margin to padding (#715) 2017-12-05 22:54:20 -08:00
Alok Saboo 688de2ff2d Use proper open close mdi icons (#718) 2017-12-05 22:47:29 -08:00
Adam Mills e0a63a2ee3 Panel translation fragments (#691)
* Move flatten to separate gulp task

* Split translation fragments into separate files

* Load translation fragments when switching panels

* Fix gulpfile lint

* Move app-location to home-assistant.html

* Compute panel navigation in home-assistant.html

* Only pass down panelUrl from home-assistant.html

* Store panelUrl on hass

* Store computed panel on hass object

* Revert "Store computed panel on hass object"

This reverts commit 0f150b1faa2b91588a432ab346821b633b349d1a.

IMO this didn't really make the code cleaner. Just wanted to see how it
would look. Keeping it here as a reverted commit in case we do want to
use it.
2017-12-05 09:12:42 -05:00
Alok Saboo 2765c88d3f Fix mdi icons (#707) 2017-12-04 23:32:32 -08:00
Andrey b092cdd04d Another dropdown-hidden-behind-header fix (#709) 2017-12-04 17:19:03 -08:00
Adam Mills a723c62f4f Separate more JS util logic to be unit tested (#705)
* Move featureClassNames to js util

* Add tests for featureClassNames

* Strip empty feature class names

* Move canToggleDomain to js util

* Add tests for canToggleDomain

* Refactor canToggleDomain to ensure boolean return

* Switch to chai assert for richer syntax options

* Move canToggleState to js util

* Tests for canToggleState

* Enable linting for mocha tests

* Move stateCardType to js util

* Add tests for stateCardType

* Move stateMoreInfoType to js util

* Tests for stateMoreInfoType

* Include mdn Array includes polyfill
2017-12-03 20:56:16 -08:00
Paulus Schoutsen c1e7f4cc77 Add iron-label to bower.json 2017-12-03 17:10:21 -08:00
Paulus Schoutsen b0837059d4 Version bump to 20171204.0 2017-12-03 17:04:39 -08:00
NovapaX 8dc81b1daa Color wheel fixes (#706)
* hide overflow properly

* only try to do rgb stuff on init if we have a value

* just to be sure
2017-12-03 17:03:34 -08:00
Adam Mills 77cc77396b Fix push-notification toggle reset on failure (#701) 2017-12-03 15:30:14 -08:00
Adam Mills 7303e55f63 Move push notifications to config panel (#700) 2017-12-03 15:28:39 -08:00
Paulus Schoutsen b73c3ed233 Add missing return to service picker 2017-12-01 23:33:40 -08:00
Paulus Schoutsen f9cd2d9612 Version bump to 20171130.0 2017-11-30 11:39:54 -08:00
Paulus Schoutsen 90e6f59a74 Merge script and automation editor JS (#693)
* Merge script and automation editor JS

* Also consolidate the files
2017-11-30 11:38:21 -08:00
NovapaX 27046b00c6 Replacing the color picker with a Hue-Saturation color wheel. (#695)
* first workable version of a colorwheel

* don't stretch it too big smaller screens

* better touch/drag behaviour
+ some properties centralized

* changed coordinate system, dragable marker

* little tweaks and cleanups

* touch drag color tooltip

* Segments, color via attribute, throttling, CSS-styling, small fixes

* inmproved segment behaviour

* styling with css vars/mixins

* structuring, commenting and cleanup

* properly prevent user select

* don't import debounce

* settled on some default color segmentation and wheel styling

* getting rid of the hidden #wheel element
just set css vars on the backgroundLayer and get those via
getCumputedStyle

* remove the #wheel css declaration too

* width is just a stupid word that looks too much like with

* move the color circle/tooltip a bit higher

* quote all attributes
2017-11-30 11:20:16 -08:00
Andrey 7cfa694980 Fix initialization error in script/automation editors. (#699) 2017-11-30 11:19:26 -08:00
Lukas Barth 640e6eb1ef Climate: add supported_features (#642)
* Honor new supported_features

* Re-add legacy classes

* Move current temperature / humidity to attribute-based
2017-11-30 11:12:32 -08:00
Andrey 7d20d8fe71 Badge fixes (#694)
* Badge fixes

* Make sure label height is unchanged
2017-11-28 22:51:38 -08:00
uchagani 2680a3f7e3 Added armed_custom_bypass status. (#673)
Added icons for armed_night and armed_custom_bypass.
2017-11-27 22:39:24 -08:00
Paulus Schoutsen 326fa00365 Version bump to 20171127.0 2017-11-26 17:47:36 -08:00
Paulus Schoutsen 8054aa744e Listen to every change, not just final change event (#688) 2017-11-26 17:21:57 -08:00
Paulus Schoutsen 10ddb7faac Minify once, reduce build warnings (#692)
* Minify once, reduce build warnings

* Remove rollup-plugin-uglify

* address comment
2017-11-26 17:20:55 -08:00
Kane610 288ffad23a Configurator logo for deCONZ (#689)
* Configurator logo for deCONZ

* Resized image to 256x256
2017-11-26 12:34:48 -08:00
Paulus Schoutsen 9aaf50b089 Update translations 2017-11-26 12:14:50 -08:00
LvivEchoes de5a33d1c7 Ukrainian language added (#624) 2017-11-26 12:14:20 -08:00
Lukas Porubcan edf8cbb95b Added Slovak language translation (#651)
* Added Slovak language translation

* removed sk.json
2017-11-26 12:13:45 -08:00
Paulus Schoutsen 70d09641f8 Fix mocha opts 2017-11-26 12:08:27 -08:00
Paulus Schoutsen bc94dce8f7 Fix bugs in service picker and service dev tool (#687) 2017-11-26 10:05:07 -08:00
John Arild Berentsen 48ecfe07a2 Usercode card was misplaced in fullscreen (#685) 2017-11-26 15:04:46 +02:00
John Arild Berentsen 958c5bf935 Fix failing build (#684) 2017-11-26 10:17:03 +02:00
Paulus Schoutsen db0438dd4d Version bump to 20171126.0 2017-11-25 21:51:34 -08:00
Paulus Schoutsen 3ba15cb7b5 Fix error when creating new automation (#683)
* Import correct computeStateDomain

* ha-service-picker to not crash when no hass

* Fix routing be less active

* Fix combo box value sync
2017-11-25 21:43:52 -08:00
Paulus Schoutsen 69eb10c6dd Update translations 2017-11-25 16:08:57 -08:00
Paulus Schoutsen 508e1fd737 Fix build 2017-11-25 16:08:26 -08:00
Paulus Schoutsen 0707528bd7 Entity dropdown improvement (#674)
* Ignore hass changes while dropdown is open

* Upgrade vaadin-combo-box

* Fix styling on dev-service panel

* Fix styling for ha-entity-dropdown

* Fix height vaadin-combo-box dropdown

* Rename ha-entity-dropdown to ha-entity-picker

* More entity improvement (#675)

* Update script and automation editor to use entity picker

* Add entity and service picker to service dev panel

* Lint
2017-11-25 16:00:43 -08:00
Paulus Schoutsen 28457747e7 Fix eslint import extension (#682)
* Fix eslint import extension

* Update eslint hound

* Enable no unresolved for normal usage
2017-11-25 11:14:44 -08:00
John Arild Berentsen 5f5a62d094 Zwave usercodes, bugfix for #10754 (#677)
* Bugfix for #10754

* Adjustments

* Fix sloppiness
2017-11-24 23:57:21 -08:00
Paulus Schoutsen 80a11206af remove unused on-tap 2017-11-24 21:32:21 -08:00
Paulus Schoutsen c330b87506 Shopping List: Allow adding items (#647)
* Shopping List: Allow adding items

* Remove unused parts
2017-11-24 21:27:55 -08:00
Paulus Schoutsen a960559639 Add eslint mocha options (#671)
* Add eslint mocha options

* Please hound

* Remove deprecated --compiler option
2017-11-24 21:01:15 -08:00
Klaas Hoekema 6c2cd420f5 Set 'heating' graph series only for climate graphs (#665)
PR #617 added a steppedArea series to climate graphs to show when the
thermostat is calling for heat. It also accidentally converted the second
series in every graph to steppedArea. This moves the option specification
into the `if (domain === 'thermostat' || domain === 'climate')` block so
it will only be applied when it's relevant (and gets it closer to the
series it's configuring).

It also calculates the series index by counting the number of columns
immediately after the target one is added. Which still isn't elegant,
but seems solidly better than hard-coding the index as `1`.
2017-11-23 12:27:31 -08:00
c727 95288f8c3d Add Latvian to languages (#669) 2017-11-23 12:26:41 -08:00
Andrey 2cfda880ac Don't use file extend in hound .eslintrc. It is not supported. (#670)
* Don't use file extend in hound .eslintrc. It is not supported.

* Extend the other way around
2017-11-22 15:59:16 -08:00
Paulus Schoutsen 713117d4d9 Add an entity picker (#666)
* Add an entity picker

* Lint
2017-11-22 14:37:25 -08:00
linvinus db630677a4 fix for #667 (#668)
* fix #667

* fix travis errors
2017-11-22 14:35:58 +02:00
Paulus Schoutsen 3a100bff23 Make ha-markdown use no polymer (#662) 2017-11-21 21:15:04 -08:00
c727 ea4fd25330 Don't cut off help text on mobile devices (#663) 2017-11-21 19:28:04 +02:00
Paulus Schoutsen 0dd1d4f478 Version bump to 20171121.1 2017-11-20 21:58:40 -08:00
Paulus Schoutsen 57ecbf27ca Update translations 2017-11-20 21:57:22 -08:00
Paulus Schoutsen 3d90d1d016 Tweak index.html (#657) 2017-11-20 21:52:35 -08:00
Adam Mills 3412edb843 Compute state display tests (#643)
* Move computeDomain and format functions to js

* Add tests for computeStateDisplay

* Always recalculate state display

* Remove LANGUAGE from hassUtils object

* Move AppLocalizeBehavior import to mixins

* Import mixins to state-card-display

* Safety check on computeStateDisplay

* Don't store computed domains on stateObj

* Integration tests for state-card-display

* Include extractDomain code in polymer repo

* Remove util function null checking

* Dont render test element without hass and stateObj

* Revert "Don't store computed domains on stateObj"

This reverts commit e3509d7182.

* Revert "Always recalculate state display"

This reverts commit 27c24e2694.
2017-11-20 21:46:36 -08:00
Alok Saboo 7e77a7c32c Add presence device_class for binary_sensor (#659)
* Add presence device_class

* Added translations

* Update en.json
2017-11-20 21:45:08 -08:00
Paulus Schoutsen cb5c9b3f3f Convert configurator to markdown (#644)
* Convert configurator to markdown

* Lint

* Change order
2017-11-20 21:41:53 -08:00
Adam Mills 8d790e9601 Add icons for input_datetime (#661) 2017-11-20 21:23:19 -08:00
Paulus Schoutsen 2ff0be8529 version bump to 20171121.0 2017-11-20 20:45:46 -08:00
Paulus Schoutsen 0b9e7d5fa2 Don't use custom element constructor (#658) 2017-11-20 20:44:58 -08:00
c727 e5974ab71b Add Korean and Bosnian (#650) 2017-11-19 13:35:47 -08:00
Andrey 5a65fd7526 Add missig style (#653) 2017-11-19 10:41:39 -08:00
Paulus Schoutsen 4f18bdf0ea Tweak create account verbiage 2017-11-19 10:30:48 -08:00
Adam Mills fbc9755796 Keep language/resources on login (#646) 2017-11-18 20:04:40 -08:00
Paulus Schoutsen d658beacea Version bump to 20171118.0 2017-11-17 19:08:54 -08:00
Pierre Ståhl 01fab1075e Clear log entries if clear is pressed (#637)
* Clear log entries if clear is pressed

* Fix comparisons

* Clear entries instead of refresh
2017-11-17 10:54:12 -08:00
Andrey 415b0b127f Don't put functions in global scope (#640) 2017-11-17 10:27:56 -08:00
Andrey 1a71ee5af3 Prevent hound from running eslint on html files (#638) 2017-11-17 09:05:13 -08:00
Paulus Schoutsen 1c2d713846 Version bump to 20171117.1 2017-11-16 22:07:35 -08:00
John Arild Berentsen b15edbd4fd Add option to retrieve n amount of last lines from log. (#604)
* Add option to retrieve n amount of last lines from log.

* Move line logic to backend

* Review changes

* Review changes

* Only print text

* Use query params instead of url path to specify lines
2017-11-16 22:07:03 -08:00
Paulus Schoutsen d79ae551b2 Version bump to 20171117.0 2017-11-16 22:02:53 -08:00
Paulus Schoutsen 6074de356c Disable plant card (#636) 2017-11-16 21:52:07 -08:00
Paulus Schoutsen 72f22f6214 Update translations 2017-11-16 21:47:28 -08:00
Pierre Ståhl c0df1e2a89 Add frontend for system log (#603)
* Add frontend for system log

* Minor review fixes

* Cleanup
2017-11-16 21:25:46 -08:00
c727 1af77e682d Add pt-BR to languages (#625) 2017-11-16 21:20:23 -08:00
Andrey 7db89d5bc2 Clean rollup (#634) 2017-11-16 21:19:29 -08:00
Andrey ef5155984f Use keys in state_badge::alarm_control_panel (#631) 2017-11-16 21:15:05 -08:00
PeteBa 8f0ebcb69d WIP: Ha-card for plant component (#583)
* Ha-card for plant component

* Feedback updates and grid css

* Revert grid css
2017-11-15 23:29:55 -08:00
Adam Mills 70c082716f MVP tests for hass-util.html (#629)
* MVP tests for hass-util.html

* MVP util.js to allow individual JS function export

* Use mocha to unit test js logic

* Isolate mocha test directory

* Move mocha opts to separate file

* Default export of util function

* Use reify for mocha tests instead of babel
2017-11-15 21:42:54 -08:00
Adam Mills 3ff9fe1041 Build ES5/ES6 in parallel to share gulp deps (#615)
* Build ES5/ES6 in parallel to share gulp deps

* Rollup es5 files into build-temp-es5

* Use correct ES5 path for compatibility.js
2017-11-15 18:05:52 -08:00
Andrey 41e97a6f83 Clone app-header-layout (#632)
* Fix group more-info not updating

* Remove old observer

* Upgrade translate(0) hack
2017-11-15 17:12:09 -08:00
Paulus Schoutsen 8078158a56 Version bump to 20171115.0 2017-11-14 22:47:22 -08:00
Paulus Schoutsen 57997be342 Update translations 2017-11-14 22:46:56 -08:00
Paulus Schoutsen 6fac4e9027 Expose build type on window (#630)
* Expose build type on window

* Build two panels for Hass.io
2017-11-14 22:39:20 -08:00
Klaas Hoekema de87c5b19b Add shaded area to show when calling for heat (#617)
Adds a series to the climate graph to shade the area under the current
temperature line red when the thermostat is calling for heat.

Uses the current temperature because it's guaranteed to be in the right
temperature range for the graph and it should minimize overlap since by
definition when the thermostat is calling for heat the current temp would
be below the target temp.

Uses `steppedArea` because most other series types don't handle
intermittent (i.e. with sections of `null` throughout) data very well.
2017-11-14 20:44:24 -08:00
Adam Mills 8cf0c0e94d Fix build attempting to include translationMaster (#628)
* Fix build attempting to include translationMaster

* Use full gulp path to run with no extra setup
2017-11-14 20:36:46 -08:00
Andrey 675a7a3b86 Fix group more-info not updating (#622)
* Fix group more-info not updating

* Remove old observer
2017-11-13 08:29:47 -08:00
Andrey a4bcf062d5 Add missed mixin to ha-call-api-button (#620) 2017-11-13 08:28:28 -08:00
Adam Mills 056e9e0d74 Translations for core states (#575)
* Fix deeper nested translations build

* Make fallback to message optional

* Use translated state names

* Remove unused switch cases

* Use src en.json as fallback instead of downloaded

* Use separate translations for badge states

* Eliminate unnecessary StatesMixin

* Remove now unused localize fallback parameter

* Fix capitalization to match material guidelines

* Move media player text generation back to model

* Make localize args object

* Change Mixin to use computed function

* Revert to normal args spread for haLocalize

* Rename to computeHaLocalize

* Allow state to default for badge and media player

* Denormalize en.json with Lokalise placeholders

* Fix cleanups missed after master merge

* Split zwave query stage states to separate keys

* Throw error to fail gulp build

* Fix zwave template and regression on general state
2017-11-12 17:48:42 -08:00
Paulus Schoutsen 926c46b701 Tweak cloud config (#618) 2017-11-12 11:44:59 -08:00
c727 1314caba97 Add new languages to metadata (#591)
* Add new languages to metadata

* Update translationMetadata.json

* Add et

* Add ca (twitter request)

* Add en-US

* Remove en-US

* Add es-419

* Add ta
2017-11-12 14:14:33 +02:00
Adam Mills 1ab551116e Fix login form with translations (#612)
* Revert "Fix not showing login form (#564)"

This reverts commit d2faeaffe7.

* Don't lose translation resources on logout

* Fix lint
2017-11-11 18:16:15 -05:00
Paulus Schoutsen 1f9fc46576 Version bump to 20171111.0 2017-11-11 13:33:50 -08:00
Paulus Schoutsen 3701683d4b Pre-construct frontend index.html (#609)
* Pre-construct frontend index.html

* Only preload things that matter

* Fix entry point in dev mode

* Template Service worker url

* Update referenced service worker
2017-11-11 13:30:14 -08:00
c727 f106767eae Don't add more-info-card if hidden (#549)
* Don't add more-info-card if hidden

* Fix c&p

* Use itemForElement

* Fix travis

* Update ha-entities-card.html

* Update ha-entities-card.html

* Remove brackets
2017-11-11 13:19:04 -08:00
Andrey b7d2b2fcfd Remove src/translations/ from polymer build (only used in gulp). Remove unused zwave-node-options.html (#613) 2017-11-11 13:07:22 -08:00
Adam Mills 508b5d6d77 Minify translations downloaded from Lokalise (#611) 2017-11-11 15:33:47 -05:00
Andrey adac8e55d7 Updates packages and clean gulp/ JS (#610) 2017-11-11 11:32:22 -08:00
Paulus Schoutsen a2612af6a9 Version bump to 20171110.0 2017-11-10 22:39:38 -08:00
UnrealKazu 67e040ad8e Add filters to dev-state page (#595)
* Add filter functionality for entities and states

Entities and states can now be filtered by entering a string in their respective input fields.

* Add filter functionality for attributes

Attributes can now also be filtered. Without a colon in the search string, if any attribute's key or value matches the string, the entity is matched. If there is a colon, keys and values are matched separately, and the entity is only matched if both key and value match.

* Hide attribute filter in narrow mode

When the browser triggers narrow mode the attribute filter now hides properly.

* Improve eslint adherence

The code is now correctly linted against the HASS eslint standard.

Also simplified the code which distinguished arrays from strings when matching.
2017-11-10 21:48:51 -08:00
Andrey 152df2297a Change serving of JS-version dependent files to frontend_es5 and frontend_latest (#608) 2017-11-10 21:44:03 -08:00
Adam Mills 6de540a0b1 Fix WCT config - specify generic Safari 10 (#607)
Apparently the minimum safari version has been bumped from 10.0 to 10.1.
We can just specify 10 here to be more generic.
2017-11-10 14:38:16 -05:00
Andrey 583abedd34 Support serving ES6 JS to clients (#596)
* Support serving ES6 JS to clients

* Make es6 default dir and es5 a special dir

* Fix package building

* Fix build_frontend script
2017-11-10 09:05:37 -08:00
Adam Mills 86128d54b4 Auto deploy base translations with Travis (#599) 2017-11-09 19:15:55 -08:00
Adam Mills f81429702c Replace existing translations on upload (#597) 2017-11-09 13:42:45 -05:00
Adam Mills 5722b6bbdb Accept Lokalise token from environment (#598) 2017-11-08 23:59:10 -05:00
Stephen Yeargin bac3d8c17e Add-Ons > Add space between text and repository link (#594)
A subtle change, but improves how it is displayed.
2017-11-08 17:35:43 +02:00
John Arild Berentsen 9f6edeec6e Add Save config button (#568) 2017-11-07 12:47:21 -05:00
Adam Mills 11f4f3b3c9 Update zwave to use new state values (#584)
* Update zwave to use new state values

* Support for zwave initializing state

* Show query stage on card for zwave entities

* Move logic to compteStateState
2017-11-07 10:14:01 -05:00
NovapaX 4f4224953f fix mask-icon (#582)
* fix mask-icon
Somehow there was a rectangle in the export with some opacity making the
mask-icon not work properly (got a bit ugly)

* svg reduced to bare minimum
2017-11-06 14:49:12 -08:00
c727 f600a8e7f4 Add new requested languages (#579)
* Add new requested languages

* Add Hindi, Telugu, Bengali

* Correct order
2017-11-06 11:14:14 -05:00
Adam Mills aa389bf206 Safety check for translations upload script (#573) 2017-11-05 20:11:12 -08:00
Paulus Schoutsen a8b5d07d66 Version bump to 20171106.0 2017-11-05 18:25:51 -08:00
Adam Mills f16886f63d Add Spanish to the translation metadata (#572)
Fixes #569
2017-11-05 17:45:36 -08:00
c727 d1325da6e6 Fix Capitalization in English translation (#571)
* Fix Capitalization in English translation

https://material.io/guidelines/style/writing.html#writing-capitalization-punctuation

* Add Spanish
2017-11-05 17:45:08 -08:00
Paulus Schoutsen 95031fdd79 Fix import 2017-11-05 12:46:53 -08:00
Paulus Schoutsen fe439723ee Fix more event mixin missing (#570) 2017-11-05 12:37:57 -08:00
Andrey 798a2bbd34 Merge pull request #566 from andrey-git/caching
Fix rules for SW runtime file caching.
2017-11-05 21:57:54 +02:00
Andrey 0dc3bc7926 Update gen-service-worker.js 2017-11-05 21:51:30 +02:00
andrey-git 3025b6049f Update rules 2017-11-05 20:59:46 +02:00
Simon ba5f401890 Introduced a new device class "plug" for the binary sensor. (#558)
* Introduced a new device class "plug" for the binary sensor.

See https://github.com/home-assistant/home-assistant-polymer/issues/550

* removed plug as domain
2017-11-05 10:23:57 -08:00
andrey-git db9dc653e0 Remove stale comment 2017-11-05 19:55:55 +02:00
John Arild Berentsen 9b0f4fa234 Add new Z-Wave services, heal_node and test_node (#565)
* Add new Z-Wave services, heal_node and test_node

* lint
2017-11-05 09:44:18 -08:00
andrey-git 2596d2ba52 Change networkFirst to networkOnly 2017-11-05 19:38:39 +02:00
andrey-git 904c3db3ea Fix rules for SW file caching. 2017-11-05 19:26:27 +02:00
Adam Mills 90b80880ed Store current translations in git (#563)
* Store current translations in git

* Handle empty strings in translation downloads

* Use more consice filtering

* Skip empty keys on translation download
2017-11-04 16:44:07 -07:00
Paulus Schoutsen d2faeaffe7 Fix not showing login form (#564) 2017-11-04 12:47:28 -07:00
Adam Mills 6959b1849f Store language native names in git (#556)
* Don't delete the gitignore file

* Store translation native names in git
2017-11-03 21:31:22 -07:00
Andrey c3a6495eb1 Don't load mdi icons with JS - it doesn't do anything. (#546) 2017-11-03 20:36:00 -07:00
Adam Mills fdf2fa3d3f Migrate to Lokalise for managing translations (#555) 2017-11-03 20:34:47 -07:00
1425 changed files with 213650 additions and 31409 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
node_modules
bower_components
hass_frontend
build
build-temp
hass_frontend_es5
.git
+25 -10
View File
@@ -1,6 +1,7 @@
{
"extends": "airbnb-base",
"extends": ["airbnb-base", "prettier"],
"parserOptions": {
"ecmaVersion": "2020",
"ecmaFeatures": {
"jsx": true,
"modules": true
@@ -8,17 +9,28 @@
},
"settings": {
"react": {
"pragma": "h"
"pragma": "h",
"version": "15.0"
},
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"globals": {
"__DEV__": false,
"__DEMO__": false,
"__BUILD__": false,
"__VERSION__": false,
"__STATIC_PATH__": false,
"Polymer": true,
"webkitSpeechRecognition": false,
"ResizeObserver": false
},
"env": {
"browser": true
"browser": true,
"mocha": true
},
"rules": {
"class-methods-use-this": 0,
@@ -40,10 +52,15 @@
"no-multi-assign": 0,
"radix": 0,
"no-alert": 0,
"no-return-await": 0,
"prefer-destructuring": 0,
"no-restricted-globals": 0,
"no-restricted-globals": [2, "event"],
"prefer-promise-reject-errors": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": 0,
"import/extensions": [2, "ignorePackages"],
"object-curly-newline": 0,
"default-case": 0,
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
"react/jsx-no-duplicate-props": 2,
"react/self-closing-comp": 2,
@@ -53,13 +70,11 @@
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/jsx-no-comment-textnodes": 2,
"react/jsx-curly-spacing": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2
"react/jsx-uses-vars": 2,
"no-restricted-syntax": [0, "ForOfStatement"],
"prettier/prettier": "error"
},
"plugins": [
"html",
"react"
]
"plugins": ["react", "prettier"]
}
+12
View File
@@ -0,0 +1,12 @@
{
"extends": "./.eslintrc-hound.json",
"plugins": ["react"],
"env": {
"browser": true
},
"rules": {
"import/no-unresolved": 2,
"linebreak-style": 0,
"implicit-arrow-linebreak": 0
}
}
+13
View File
@@ -0,0 +1,13 @@
# Ensure Docker script files uses LF to support Docker for Windows.
# Ensure "git config --global core.autocrlf input" before you clone
* text eol=lf
*.ts whitespace=error
*.js whitespace=error
*.ico binary
*.jpg binary
*.png binary
*.zip binary
*.mp3 binary
demo/public/api/camera_proxy_stream/* binary
+78
View File
@@ -0,0 +1,78 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---
<!-- READ THIS FIRST:
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
- Provide as many details as possible. Do not delete any text from this template!
-->
**Checklist:**
- [ ] I updated to the latest version available
- [ ] I cleared the cache of my browser
**Home Assistant release with the issue:**
<!--
- Frontend -> Developer tools -> Info
- Or use this command: hass --version
-->
**Last working Home Assistant release (if known):**
**UI (States or Lovelace UI?):**
<!--
- Frontend -> Developer tools -> Info
-->
**Browser and Operating System:**
<!--
Provide details about what browser (and version) you are seeing the issue in. And also which operating system this is on. If possible try to replicate the issue in other browsers and include your findings here.
-->
**Description of problem:**
<!--
Explain what the issue is, and what is the current behaviour. If possible provide a screenshot with a description.
-->
**Expected behaviour:**
<!--
Explain how things should look/behave. If possible provide a screenshot with a description.
-->
**Relevant config:**
<!--
Give the config of both the integration that is used, the Lovelace config, scene, automation or otherwise relevant configuration.
-->
**Steps to reproduce this problem:**
<!--
Sum up all steps that are necessary to reproduce this bug.
For example:
1. Add a climate integration
2. Navigate to Lovelace
3. Click more info of the climate entity
4. Set the hvac action to heat
5. Set the temperature higher than the current temperature
6. Set the hvac action to cool
-->
**Javascript errors shown in the web inspector (if applicable):**
```
```
**Additional information:**
+19
View File
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: feature request
assignees: ""
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
+27
View File
@@ -0,0 +1,27 @@
# Configuration for Lock Threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 1
# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: 2020-01-01
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: []
# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false
# Comment to post before locking. Set to `false` to disable
lockComment: false
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: false
# Limit to only `issues` or `pulls`
only: pulls
# Optionally, specify configuration settings just for `issues` or `pulls`
issues:
daysUntilLock: 30
+13
View File
@@ -0,0 +1,13 @@
# Configuration for move-issues - https://github.com/dessant/move-issues
# Delete the command comment. Ignored when the comment also contains other content
deleteCommand: true
# Close the source issue after moving
closeSourceIssue: true
# Lock the source issue after moving
lockSourceIssue: false
# Set custom aliases for targets
# aliases:
# r: repo
# or: owner/repo
+4
View File
@@ -0,0 +1,4 @@
template: |
## What's Changed
$CHANGES
+15 -3
View File
@@ -1,10 +1,11 @@
build/*
build-temp/*
build
build-translations/*
node_modules/*
bower_components/*
npm-debug.log
.DS_Store
hass_frontend/*
.reify-cache
demo/hademo-icons.html
# Python stuff
*.py[cod]
@@ -19,3 +20,14 @@ venv
lib
bin
dist
# vscode
.vscode/*
!.vscode/extensions.json
# Cast dev settings
src/cast/dev_const.ts
# Secrets
.lokalise_token
yarn-error.log
+1 -1
View File
@@ -3,4 +3,4 @@ jshint:
eslint:
enabled: true
config_file: .eslintrc
config_file: .eslintrc-hound.json
+1 -1
View File
@@ -1 +1 @@
8.8.1
12.1
+7 -13
View File
@@ -3,22 +3,16 @@ language: node_js
cache:
yarn: true
directories:
- bower_components
install:
- yarn install
- ./node_modules/.bin/bower install
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- bower_components
install: yarn install
script:
- npm run build
- hassio/script/build_hassio
# Because else eslint fails because hassio has cleaned that build
- ./node_modules/.bin/gulp gen-icons-app
- npm run test
- xvfb-run wct
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --plugin sauce; fi
# - xvfb-run wct --module-resolution=node --npm
# - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --module-resolution=node --npm --plugin sauce; fi'
dist: trusty
addons:
sauce_connect: true
Vendored Executable
+9
View File
@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"esbenp.prettier-vscode",
"bierner.lit-html",
"runem.lit-plugin"
]
}
+17 -11
View File
@@ -1,25 +1,31 @@
FROM node:8.2.1-alpine
FROM node:8.11.1-alpine
# install yarn
ENV PATH /root/.yarn/bin:$PATH
## Install/force base tools
RUN apk update \
&& apk add curl bash binutils tar git python3 \
&& apk add make g++ curl bash binutils tar git python2 python3 \
&& rm -rf /var/cache/apk/* \
&& /bin/bash \
&& touch ~/.bashrc \
&& curl -o- -L https://yarnpkg.com/install.sh | bash
&& touch ~/.bashrc
## Install yarn
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
## Setup the project
RUN mkdir -p /frontend
WORKDIR /frontend
ENV NODE_ENV production
COPY package.json yarn.lock ./
COPY package.json ./
RUN yarn
COPY bower.json ./
RUN ./node_modules/.bin/bower install --allow-root
RUN yarn install --frozen-lockfile
COPY . .
CMD [ "/bin/bash", "./script/build_frontend" ]
COPY script/docker_entrypoint.sh /usr/bin/docker_entrypoint.sh
RUN chmod +x /usr/bin/docker_entrypoint.sh
CMD [ "docker_entrypoint.sh" ]
+1
View File
@@ -1,4 +1,5 @@
include README.md
include LICENSE.md
graft hass_frontend
graft hass_frontend_es5
recursive-exclude * *.py[co]
+27 -9
View File
@@ -1,17 +1,35 @@
# Home Assistant Polymer [![Build Status](https://travis-ci.org/home-assistant/home-assistant-polymer.svg?branch=master)](https://travis-ci.org/home-assistant/home-assistant-polymer)
This is the repository for the official [Home Assistant](https://home-assistant.io) frontend. The frontend is built on top of the following technologies:
This is the repository for the official [Home Assistant](https://home-assistant.io) frontend.
* [Websockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)
* [Polymer](https://www.polymer-project.org/)
* [Rollup](http://rollupjs.org/) to package Home Assistant JS
* [Bower](https://bower.io) for Polymer package management
[![Screenshot of the frontend](https://raw.githubusercontent.com/home-assistant/home-assistant-polymer/master/docs/screenshot.png)](https://demo.home-assistant.io/)
[![Screenshot of the frontend](https://raw.githubusercontent.com/home-assistant/home-assistant-polymer/master/docs/screenshot.png)](https://home-assistant.io/demo/)
- [View demo of Home Assistant](https://demo.home-assistant.io/)
- [More information about Home Assistant](https://home-assistant.io)
- [Frontend development instructions](https://developers.home-assistant.io/docs/en/frontend_index.html)
[View demo of the Polymer frontend](https://home-assistant.io/demo/)
[More information about Home Assistant](https://home-assistant.io)
[Frontend development instructions](https://home-assistant.io/developers/frontend/)
## Development
- Initial setup: `script/setup`
- Development: [Instructions](https://developers.home-assistant.io/docs/en/frontend_development.html)
- Production build: `script/build_frontend`
- Gallery: `cd gallery && script/develop_gallery`
- Hass.io: [Instructions](https://developers.home-assistant.io/docs/en/hassio_hass.html)
## Frontend development
### Classic environment
A complete guide can be found at the following [link](https://www.home-assistant.io/developers/frontend/). It describes a short guide for the build of project.
### Docker environment
It is possible to compile the project and/or run commands in the development environment having only the [Docker](https://www.docker.com) pre-installed in the system. On the root of project you can do:
* `sh ./script/docker_run.sh build` Build all the project with one command
* `sh ./script/docker_run.sh bash` Open an interactive shell (the same environment generated by the *classic environment*) where you can run commands. This bash work on your project directory and any change on your file is automatically present within your build bash.
**Note**: if you have installed `npm` in addition to the `docker`, you can use the commands `npm run docker_build` and `npm run bash` to get a full build or bash as explained above
## License
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.
We use [BrowserStack](https://www.browserstack.com) to test Home Assistant on a large variation of devices.
+64
View File
@@ -0,0 +1,64 @@
# https://dev.azure.com/home-assistant
trigger:
batch: true
tags:
include:
- "*"
pr: none
variables:
- name: versionWheels
value: '1.3-3.7-alpine3.10'
- name: versionNode
value: '12.1'
- group: twine
resources:
repositories:
- repository: azure
type: github
name: 'home-assistant/ci-azure'
endpoint: 'home-assistant'
stages:
- stage: "Validate"
jobs:
- template: templates/azp-job-version.yaml@azure
- stage: "Build"
jobs:
- job: "ReleasePython"
pool:
vmImage: "ubuntu-latest"
steps:
- task: UsePythonVersion@0
displayName: "Use Python 3.7"
inputs:
versionSpec: "3.7"
- task: NodeTool@0
displayName: "Use Node $(versionNode)"
inputs:
versionSpec: "$(versionNode)"
- script: pip install twine wheel
displayName: "Install tools"
- script: |
export TWINE_USERNAME="$(twineUser)"
export TWINE_PASSWORD="$(twinePassword)"
script/release
displayName: "Build and release package"
- template: templates/azp-job-wheels.yaml@azure
parameters:
builderVersion: '$(versionWheels)'
builderApk: 'build-base'
wheelsLocal: true
preBuild:
- task: NodeTool@0
displayName: "Use Node $(versionNode)"
inputs:
versionSpec: "$(versionNode)"
- script: |
set -e
yarn install
script/build_frontend
+70
View File
@@ -0,0 +1,70 @@
# https://dev.azure.com/home-assistant
trigger:
batch: true
branches:
include:
- dev
paths:
include:
- translations/en.json
pr: none
schedules:
- cron: "30 0 * * *"
displayName: "translation update"
branches:
include:
- dev
always: true
variables:
- group: translation
resources:
repositories:
- repository: azure
type: github
name: 'home-assistant/ci-azure'
endpoint: 'home-assistant'
jobs:
- job: 'Upload'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
displayName: 'Use Node 12.x'
inputs:
versionSpec: '12.x'
- script: |
export LOKALISE_TOKEN="$(lokaliseToken)"
export AZURE_BRANCH="$(Build.SourceBranchName)"
./script/translations_upload_base
displayName: 'Upload Translation'
- job: 'Download'
dependsOn:
- 'Upload'
condition: or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Build.Reason'], 'Manual'))
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
displayName: 'Use Node 12.x'
inputs:
versionSpec: '12.x'
- template: templates/azp-step-git-init.yaml@azure
- script: |
export LOKALISE_TOKEN="$(lokaliseToken)"
export AZURE_BRANCH="$(Build.SourceBranchName)"
npm install
./script/translations_download
displayName: 'Download Translation'
- script: |
git checkout dev
git add translation
git commit -am "[ci skip] Translation update"
git push
displayName: 'Update translation'
-62
View File
@@ -1,62 +0,0 @@
{
"name": "home-assistant",
"version": "0.1.0",
"authors": [
"Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
],
"main": "src/home-assistant.html",
"license": "MIT",
"private": true,
"dependencies": {
"app-layout": "^2.0.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#~2.0.0",
"app-route": "PolymerElements/app-route#^2.0.0",
"app-storage": "^2.0.2",
"fecha": "~2.3.0",
"font-roboto-local": "~1.0.1",
"font-roboto": "PolymerElements/font-roboto-local#~1.0.1",
"google-apis": "GoogleWebComponents/google-apis#~2.0.0",
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.0",
"iron-icon": "PolymerElements/iron-icon#^2.0.0",
"iron-image": "PolymerElements/iron-image#^2.1.1",
"iron-input": "PolymerElements/iron-input#^2.0.0",
"iron-media-query": "PolymerElements/iron-media-query#^2.0.0",
"iron-pages": "PolymerElements/iron-pages#^2.0.0",
"leaflet": "^1.0.2",
"neon-animation": "PolymerElements/neon-animation#^2.0.1",
"paper-button": "PolymerElements/paper-button#^2.0.0",
"paper-card": "PolymerElements/paper-card#^2.0.0",
"paper-checkbox": "PolymerElements/paper-checkbox#^2.0.0",
"paper-dialog": "PolymerElements/paper-dialog#^2.0.0",
"paper-dialog-scrollable": "PolymerElements/paper-dialog-scrollable#^2.1.0",
"paper-drawer-panel": "PolymerElements/paper-drawer-panel#^2.0.0",
"paper-dropdown-menu": "PolymerElements/paper-dropdown-menu#^2.0.0",
"paper-fab": "PolymerElements/paper-fab#^2.0.0",
"paper-icon-button": "PolymerElements/paper-icon-button#^2.0.0",
"paper-input": "PolymerElements/paper-input#^2.0.1",
"paper-item": "PolymerElements/paper-item#^2.0.0",
"paper-listbox": "PolymerElements/paper-listbox#^2.0.0",
"paper-material": "PolymerElements/paper-material#^2.0.0",
"paper-menu-button": "PolymerElements/paper-menu-button#^2.0.0",
"paper-progress": "PolymerElements/paper-progress#^2.0.1",
"paper-radio-button": "PolymerElements/paper-radio-button#^2.0.0",
"paper-radio-group": "PolymerElements/paper-radio-group#^2.0.0",
"paper-scroll-header-panel": "~2.0.0",
"paper-slider": "PolymerElements/paper-slider#^2.0.1",
"paper-spinner": "PolymerElements/paper-spinner#^2.0.0",
"paper-styles": "PolymerElements/paper-styles#^2.0.0",
"paper-tabs": "PolymerElements/paper-tabs#^2.0.0",
"paper-time-input": "ryanburns23/paper-time-input#^2.0.4",
"paper-toast": "PolymerElements/paper-toast#^2.0.0",
"paper-toggle-button": "PolymerElements/paper-toggle-button#^2.0.0",
"polymer": "^2.1.1",
"vaadin-combo-box": "vaadin/vaadin-combo-box#^2.0.0",
"vaadin-date-picker": "vaadin/vaadin-date-picker#^2.0.0",
"web-animations-js": "^2.2.5",
"webcomponentsjs": "^1.0.10"
},
"devDependencies": {
"web-component-tester": "^6.3.0"
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"rules": {
"import/no-extraneous-dependencies": 0,
"no-restricted-syntax": 0,
"no-console": 0
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": 0,
"global-require": 0
}
}
+49
View File
@@ -0,0 +1,49 @@
module.exports.babelLoaderConfig = ({ latestBuild }) => {
if (latestBuild === undefined) {
throw Error("latestBuild not defined for babel loader config");
}
return {
test: /\.m?js$|\.tsx?$/,
use: {
loader: "babel-loader",
options: {
presets: [
!latestBuild && [
require("@babel/preset-env").default,
{ modules: false },
],
[
require("@babel/preset-typescript").default,
{
jsxPragma: "h",
},
],
].filter(Boolean),
plugins: [
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
[
"@babel/plugin-proposal-object-rest-spread",
{ loose: true, useBuiltIns: true },
],
// Only support the syntax, Webpack will handle it.
"@babel/syntax-dynamic-import",
[
"@babel/transform-react-jsx",
{
pragma: "h",
},
],
"@babel/plugin-proposal-optional-chaining",
[
require("@babel/plugin-proposal-decorators").default,
{ decoratorsBeforeExport: true },
],
[
require("@babel/plugin-proposal-class-properties").default,
{ loose: true },
],
],
},
},
};
};
+6
View File
@@ -0,0 +1,6 @@
module.exports = {
isProdBuild: process.env.NODE_ENV === "production",
isStatsBuild: process.env.STATS === "1",
isTravis: process.env.TRAVIS === "true",
isNetlify: process.env.NETLIFY === "true",
};
+52
View File
@@ -0,0 +1,52 @@
// Run HA develop mode
const gulp = require("gulp");
const envVars = require("../env");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./compress.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-app",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean",
gulp.parallel(
"gen-service-worker-dev",
gulp.parallel("gen-icons-app", "gen-icons-mdi"),
"gen-pages-dev",
"gen-index-app-dev",
gulp.series("create-test-translation", "build-translations")
),
"copy-static",
"webpack-watch-app"
)
);
gulp.task(
"build-app",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean",
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
"copy-static",
"webpack-prod-app",
...// Don't compress running tests
(envVars.isTravis ? [] : ["compress-app"]),
gulp.parallel(
"gen-pages-prod",
"gen-index-app-prod",
"gen-service-worker-prod"
)
)
);
+41
View File
@@ -0,0 +1,41 @@
const gulp = require("gulp");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-cast",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean-cast",
gulp.parallel(
"gen-icons-app",
"gen-icons-mdi",
"gen-index-cast-dev",
"build-translations"
),
"copy-static-cast",
"webpack-dev-server-cast"
)
);
gulp.task(
"build-cast",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean-cast",
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
"copy-static-cast",
"webpack-prod-cast",
"gen-index-cast-prod"
)
);
+39
View File
@@ -0,0 +1,39 @@
const del = require("del");
const gulp = require("gulp");
const config = require("../paths");
require("./translations");
gulp.task(
"clean",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.root, config.build_dir]);
})
);
gulp.task(
"clean-demo",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.demo_root, config.build_dir]);
})
);
gulp.task(
"clean-cast",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.cast_root, config.build_dir]);
})
);
gulp.task(
"clean-hassio",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.hassio_root, config.build_dir]);
})
);
gulp.task(
"clean-gallery",
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
return del([config.gallery_root, config.build_dir]);
})
);
+38
View File
@@ -0,0 +1,38 @@
// Tasks to compress
const gulp = require("gulp");
const zopfli = require("gulp-zopfli-green");
const merge = require("merge-stream");
const path = require("path");
const paths = require("../paths");
gulp.task("compress-app", function compressApp() {
const jsLatest = gulp
.src(path.resolve(paths.output, "**/*.js"))
.pipe(zopfli())
.pipe(gulp.dest(paths.output));
const jsEs5 = gulp
.src(path.resolve(paths.output_es5, "**/*.js"))
.pipe(zopfli())
.pipe(gulp.dest(paths.output_es5));
const polyfills = gulp
.src(path.resolve(paths.static, "polyfills/*.js"))
.pipe(zopfli())
.pipe(gulp.dest(path.resolve(paths.static, "polyfills")));
const translations = gulp
.src(path.resolve(paths.static, "translations/*.json"))
.pipe(zopfli())
.pipe(gulp.dest(path.resolve(paths.static, "translations")));
return merge(jsLatest, jsEs5, polyfills, translations);
});
gulp.task("compress-hassio", function compressApp() {
return gulp
.src(path.resolve(paths.hassio_root, "**/*.js"))
.pipe(zopfli())
.pipe(gulp.dest(paths.hassio_root));
});
+48
View File
@@ -0,0 +1,48 @@
// Run demo develop mode
const gulp = require("gulp");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-demo",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean-demo",
gulp.parallel(
"gen-icons-app",
"gen-icons-mdi",
"gen-icons-demo",
"gen-index-demo-dev",
"build-translations"
),
"copy-static-demo",
"webpack-dev-server-demo"
)
);
gulp.task(
"build-demo",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean-demo",
gulp.parallel(
"gen-icons-app",
"gen-icons-mdi",
"gen-icons-demo",
"build-translations"
),
"copy-static-demo",
"webpack-prod-demo",
"gen-index-demo-prod"
)
);
@@ -0,0 +1,73 @@
const del = require("del");
const gulp = require("gulp");
const mapStream = require("map-stream");
const inDir = "translations";
const downloadDir = inDir + "/downloads";
const tasks = [];
function hasHtml(data) {
return /<[a-z][\s\S]*>/i.test(data);
}
function recursiveCheckHasHtml(file, data, errors, recKey) {
Object.keys(data).forEach(function(key) {
if (typeof data[key] === "object") {
const nextRecKey = recKey ? `${recKey}.${key}` : key;
recursiveCheckHasHtml(file, data[key], errors, nextRecKey);
} else if (hasHtml(data[key])) {
errors.push(`HTML found in ${file.path} at key ${recKey}.${key}`);
}
});
}
function checkHtml() {
const errors = [];
return mapStream(function(file, cb) {
const content = file.contents;
let error;
if (content) {
if (hasHtml(String(content))) {
const data = JSON.parse(String(content));
recursiveCheckHasHtml(file, data, errors);
if (errors.length > 0) {
error = errors.join("\r\n");
}
}
}
cb(error, file);
});
}
let taskName = "clean-downloaded-translations";
gulp.task(taskName, function() {
return del([`${downloadDir}/**`]);
});
tasks.push(taskName);
taskName = "check-translations-html";
gulp.task(taskName, function() {
return gulp.src(`${downloadDir}/*.json`).pipe(checkHtml());
});
tasks.push(taskName);
taskName = "move-downloaded-translations";
gulp.task(taskName, function() {
return gulp.src(`${downloadDir}/*.json`).pipe(gulp.dest(inDir));
});
tasks.push(taskName);
taskName = "check-downloaded-translations";
gulp.task(
taskName,
gulp.series(
"check-translations-html",
"move-downloaded-translations",
"clean-downloaded-translations"
)
);
tasks.push(taskName);
module.exports = tasks;
+244
View File
@@ -0,0 +1,244 @@
// Tasks to generate entry HTML
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
const gulp = require("gulp");
const fs = require("fs-extra");
const path = require("path");
const template = require("lodash.template");
const minify = require("html-minifier").minify;
const config = require("../paths.js");
const templatePath = (tpl) =>
path.resolve(config.polymer_dir, "src/html/", `${tpl}.html.template`);
const readFile = (pth) => fs.readFileSync(pth).toString();
const renderTemplate = (pth, data = {}, pathFunc = templatePath) => {
const compiled = template(readFile(pathFunc(pth)));
return compiled({ ...data, renderTemplate });
};
const renderDemoTemplate = (pth, data = {}) =>
renderTemplate(pth, data, (tpl) =>
path.resolve(config.demo_dir, "src/html/", `${tpl}.html.template`)
);
const renderCastTemplate = (pth, data = {}) =>
renderTemplate(pth, data, (tpl) =>
path.resolve(config.cast_dir, "src/html/", `${tpl}.html.template`)
);
const renderGalleryTemplate = (pth, data = {}) =>
renderTemplate(pth, data, (tpl) =>
path.resolve(config.gallery_dir, "src/html/", `${tpl}.html.template`)
);
const minifyHtml = (content) =>
minify(content, {
collapseWhitespace: true,
minifyJS: true,
minifyCSS: true,
removeComments: true,
});
const PAGES = ["onboarding", "authorize"];
gulp.task("gen-pages-dev", (done) => {
for (const page of PAGES) {
const content = renderTemplate(page, {
latestPageJS: `/frontend_latest/${page}.js`,
latestHassIconsJS: "/frontend_latest/hass-icons.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5PageJS: `/frontend_es5/${page}.js`,
es5HassIconsJS: "/frontend_es5/hass-icons.js",
});
fs.outputFileSync(path.resolve(config.root, `${page}.html`), content);
}
done();
});
gulp.task("gen-pages-prod", (done) => {
const latestManifest = require(path.resolve(config.output, "manifest.json"));
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
for (const page of PAGES) {
const content = renderTemplate(page, {
latestPageJS: latestManifest[`${page}.js`],
latestHassIconsJS: latestManifest["hass-icons.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5PageJS: es5Manifest[`${page}.js`],
es5HassIconsJS: es5Manifest["hass-icons.js"],
});
fs.outputFileSync(
path.resolve(config.root, `${page}.html`),
minifyHtml(content)
);
}
done();
});
gulp.task("gen-index-app-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderTemplate("index", {
latestAppJS: "/frontend_latest/app.js",
latestCoreJS: "/frontend_latest/core.js",
latestCustomPanelJS: "/frontend_latest/custom-panel.js",
latestHassIconsJS: "/frontend_latest/hass-icons.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5AppJS: "/frontend_es5/app.js",
es5CoreJS: "/frontend_es5/core.js",
es5CustomPanelJS: "/frontend_es5/custom-panel.js",
es5HassIconsJS: "/frontend_es5/hass-icons.js",
}).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.root, "index.html"), content);
done();
});
gulp.task("gen-index-app-prod", (done) => {
const latestManifest = require(path.resolve(config.output, "manifest.json"));
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
const content = renderTemplate("index", {
latestAppJS: latestManifest["app.js"],
latestCoreJS: latestManifest["core.js"],
latestCustomPanelJS: latestManifest["custom-panel.js"],
latestHassIconsJS: latestManifest["hass-icons.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5AppJS: es5Manifest["app.js"],
es5CoreJS: es5Manifest["core.js"],
es5CustomPanelJS: es5Manifest["custom-panel.js"],
es5HassIconsJS: es5Manifest["hass-icons.js"],
});
const minified = minifyHtml(content).replace(/#THEMEC/g, "{{ theme_color }}");
fs.outputFileSync(path.resolve(config.root, "index.html"), minified);
done();
});
gulp.task("gen-index-cast-dev", (done) => {
const contentReceiver = renderCastTemplate("receiver", {
latestReceiverJS: "/frontend_latest/receiver.js",
});
fs.outputFileSync(
path.resolve(config.cast_root, "receiver.html"),
contentReceiver
);
const contentFAQ = renderCastTemplate("launcher-faq", {
latestLauncherJS: "/frontend_latest/launcher.js",
es5LauncherJS: "/frontend_es5/launcher.js",
});
fs.outputFileSync(path.resolve(config.cast_root, "faq.html"), contentFAQ);
const contentLauncher = renderCastTemplate("launcher", {
latestLauncherJS: "/frontend_latest/launcher.js",
es5LauncherJS: "/frontend_es5/launcher.js",
});
fs.outputFileSync(
path.resolve(config.cast_root, "index.html"),
contentLauncher
);
done();
});
gulp.task("gen-index-cast-prod", (done) => {
const latestManifest = require(path.resolve(
config.cast_output,
"manifest.json"
));
const es5Manifest = require(path.resolve(
config.cast_output_es5,
"manifest.json"
));
const contentReceiver = renderCastTemplate("receiver", {
latestReceiverJS: latestManifest["receiver.js"],
});
fs.outputFileSync(
path.resolve(config.cast_root, "receiver.html"),
contentReceiver
);
const contentFAQ = renderCastTemplate("launcher-faq", {
latestLauncherJS: latestManifest["launcher.js"],
es5LauncherJS: es5Manifest["launcher.js"],
});
fs.outputFileSync(path.resolve(config.cast_root, "faq.html"), contentFAQ);
const contentLauncher = renderCastTemplate("launcher", {
latestLauncherJS: latestManifest["launcher.js"],
es5LauncherJS: es5Manifest["launcher.js"],
});
fs.outputFileSync(
path.resolve(config.cast_root, "index.html"),
contentLauncher
);
done();
});
gulp.task("gen-index-demo-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderDemoTemplate("index", {
latestDemoJS: "/frontend_latest/main.js",
es5Compatibility: "/frontend_es5/compatibility.js",
es5DemoJS: "/frontend_es5/main.js",
});
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), content);
done();
});
gulp.task("gen-index-demo-prod", (done) => {
const latestManifest = require(path.resolve(
config.demo_output,
"manifest.json"
));
const es5Manifest = require(path.resolve(
config.demo_output_es5,
"manifest.json"
));
const content = renderDemoTemplate("index", {
latestDemoJS: latestManifest["main.js"],
es5Compatibility: es5Manifest["compatibility.js"],
es5DemoJS: es5Manifest["main.js"],
});
const minified = minifyHtml(content);
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), minified);
done();
});
gulp.task("gen-index-gallery-dev", (done) => {
// In dev mode we don't mangle names, so we hardcode urls. That way we can
// run webpack as last in watch mode, which blocks output.
const content = renderGalleryTemplate("index", {
latestGalleryJS: "./entrypoint.js",
});
fs.outputFileSync(path.resolve(config.gallery_root, "index.html"), content);
done();
});
gulp.task("gen-index-gallery-prod", (done) => {
const latestManifest = require(path.resolve(
config.gallery_output,
"manifest.json"
));
const content = renderGalleryTemplate("index", {
latestGalleryJS: latestManifest["entrypoint.js"],
});
const minified = minifyHtml(content);
fs.outputFileSync(path.resolve(config.gallery_root, "index.html"), minified);
done();
});
+38
View File
@@ -0,0 +1,38 @@
// Run demo develop mode
const gulp = require("gulp");
require("./clean.js");
require("./translations.js");
require("./gen-icons.js");
require("./gather-static.js");
require("./webpack.js");
require("./service-worker.js");
require("./entry-html.js");
gulp.task(
"develop-gallery",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean-gallery",
gulp.parallel("gen-icons-app", "gen-icons-app", "build-translations"),
"copy-static-gallery",
"gen-index-gallery-dev",
"webpack-dev-server-gallery"
)
);
gulp.task(
"build-gallery",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean-gallery",
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
"copy-static-gallery",
"webpack-prod-gallery",
"gen-index-gallery-prod"
)
);
+125
View File
@@ -0,0 +1,125 @@
// Gulp task to gather all static files.
const gulp = require("gulp");
const path = require("path");
const cpx = require("cpx");
const fs = require("fs-extra");
const paths = require("../paths");
const npmPath = (...parts) =>
path.resolve(paths.polymer_dir, "node_modules", ...parts);
const polyPath = (...parts) => path.resolve(paths.polymer_dir, ...parts);
const copyFileDir = (fromFile, toDir) =>
fs.copySync(fromFile, path.join(toDir, path.basename(fromFile)));
const genStaticPath = (staticDir) => (...parts) =>
path.resolve(staticDir, ...parts);
function copyTranslations(staticDir) {
const staticPath = genStaticPath(staticDir);
// Translation output
fs.copySync(
polyPath("build-translations/output"),
staticPath("translations")
);
}
function copyPolyfills(staticDir) {
const staticPath = genStaticPath(staticDir);
// Web Component polyfills and adapters
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"),
staticPath("polyfills/")
);
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js"),
staticPath("polyfills/")
);
copyFileDir(
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js.map"),
staticPath("polyfills/")
);
}
function copyFonts(staticDir) {
const staticPath = genStaticPath(staticDir);
// Local fonts
cpx.copySync(
npmPath("roboto-fontface/fonts/roboto/*.woff2"),
staticPath("fonts/roboto")
);
}
function copyMapPanel(staticDir) {
const staticPath = genStaticPath(staticDir);
copyFileDir(
npmPath("leaflet/dist/leaflet.css"),
staticPath("images/leaflet/")
);
fs.copySync(
npmPath("leaflet/dist/images"),
staticPath("images/leaflet/images/")
);
}
gulp.task("copy-static", (done) => {
const staticDir = paths.static;
const staticPath = genStaticPath(paths.static);
// Basic static files
fs.copySync(polyPath("public"), paths.root);
copyPolyfills(staticDir);
copyFonts(staticDir);
copyTranslations(staticDir);
// Panel assets
copyFileDir(
npmPath("react-big-calendar/lib/css/react-big-calendar.css"),
staticPath("panels/calendar/")
);
copyMapPanel(staticDir);
done();
});
gulp.task("copy-static-demo", (done) => {
// Copy app static files
fs.copySync(
polyPath("public/static"),
path.resolve(paths.demo_root, "static")
);
// Copy demo static files
fs.copySync(path.resolve(paths.demo_dir, "public"), paths.demo_root);
copyPolyfills(paths.demo_static);
copyMapPanel(paths.demo_static);
copyFonts(paths.demo_static);
copyTranslations(paths.demo_static);
done();
});
gulp.task("copy-static-cast", (done) => {
// Copy app static files
fs.copySync(polyPath("public/static"), paths.cast_static);
// Copy cast static files
fs.copySync(path.resolve(paths.cast_dir, "public"), paths.cast_root);
copyMapPanel(paths.cast_static);
copyFonts(paths.cast_static);
copyTranslations(paths.cast_static);
done();
});
gulp.task("copy-static-gallery", (done) => {
// Copy app static files
fs.copySync(polyPath("public/static"), paths.gallery_static);
// Copy gallery static files
fs.copySync(path.resolve(paths.gallery_dir, "public"), paths.gallery_root);
copyMapPanel(paths.gallery_static);
copyFonts(paths.gallery_static);
copyTranslations(paths.gallery_static);
done();
});
+140
View File
@@ -0,0 +1,140 @@
const gulp = require("gulp");
const path = require("path");
const fs = require("fs");
const paths = require("../paths");
const ICON_PACKAGE_PATH = path.resolve(
__dirname,
"../../node_modules/@mdi/svg/"
);
const META_PATH = path.resolve(ICON_PACKAGE_PATH, "meta.json");
const ICON_PATH = path.resolve(ICON_PACKAGE_PATH, "svg");
const OUTPUT_DIR = path.resolve(__dirname, "../../build");
const MDI_OUTPUT_PATH = path.resolve(OUTPUT_DIR, "mdi.html");
const HASS_OUTPUT_PATH = path.resolve(OUTPUT_DIR, "hass-icons.html");
const BUILT_IN_PANEL_ICONS = [
"calendar", // Calendar
"settings", // Config
"home-assistant", // Hass.io
"poll-box", // History panel
"format-list-bulleted-type", // Logbook
"mailbox", // Mailbox
"tooltip-account", // Map
"cart", // Shopping List
"hammer", // developer-tools
];
// Given an icon name, load the SVG file
function loadIcon(name) {
const iconPath = path.resolve(ICON_PATH, `${name}.svg`);
try {
return fs.readFileSync(iconPath, "utf-8");
} catch (err) {
return null;
}
}
// Given an SVG file, convert it to an iron-iconset-svg definition
function transformXMLtoPolymer(name, xml) {
const start = xml.indexOf("><path") + 1;
const end = xml.length - start - 6;
const pth = xml.substr(start, end);
return `<g id="${name}">${pth}</g>`;
}
// Given an iconset name and icon names, generate a polymer iconset
function generateIconset(iconsetName, iconNames) {
const iconDefs = Array.from(iconNames)
.map((name) => {
const iconDef = loadIcon(name);
if (!iconDef) {
throw new Error(`Unknown icon referenced: ${name}`);
}
return transformXMLtoPolymer(name, iconDef);
})
.join("");
return `<ha-iconset-svg name="${iconsetName}" size="24"><svg><defs>${iconDefs}</defs></svg></ha-iconset-svg>`;
}
// Helper function to map recursively over files in a folder and it's subfolders
function mapFiles(startPath, filter, mapFunc) {
const files = fs.readdirSync(startPath);
for (let i = 0; i < files.length; i++) {
const filename = path.join(startPath, files[i]);
const stat = fs.lstatSync(filename);
if (stat.isDirectory()) {
mapFiles(filename, filter, mapFunc);
} else if (filename.indexOf(filter) >= 0) {
mapFunc(filename);
}
}
}
// Find all icons used by the project.
function findIcons(searchPath, iconsetName) {
const iconRegex = new RegExp(`${iconsetName}:[\\w-]+`, "g");
const icons = new Set();
function processFile(filename) {
const content = fs.readFileSync(filename);
let match;
// eslint-disable-next-line
while ((match = iconRegex.exec(content))) {
// strip off "hass:" and add to set
icons.add(match[0].substr(iconsetName.length + 1));
}
}
mapFiles(searchPath, ".js", processFile);
mapFiles(searchPath, ".ts", processFile);
return icons;
}
gulp.task("gen-icons-mdi", (done) => {
const meta = JSON.parse(
fs.readFileSync(path.resolve(ICON_PACKAGE_PATH, META_PATH), "UTF-8")
);
const iconNames = meta.map((iconInfo) => iconInfo.name);
if (!fs.existsSync(OUTPUT_DIR)) {
fs.mkdirSync(OUTPUT_DIR);
}
fs.writeFileSync(MDI_OUTPUT_PATH, generateIconset("mdi", iconNames));
done();
});
gulp.task("gen-icons-app", (done) => {
const iconNames = findIcons("./src", "hass");
BUILT_IN_PANEL_ICONS.forEach((name) => iconNames.add(name));
if (!fs.existsSync(OUTPUT_DIR)) {
fs.mkdirSync(OUTPUT_DIR);
}
fs.writeFileSync(HASS_OUTPUT_PATH, generateIconset("hass", iconNames));
done();
});
gulp.task("gen-icons-demo", (done) => {
const iconNames = findIcons(path.resolve(paths.demo_dir, "./src"), "hademo");
fs.writeFileSync(
path.resolve(paths.demo_dir, "hademo-icons.html"),
generateIconset("hademo", iconNames)
);
done();
});
gulp.task("gen-icons-hassio", (done) => {
const iconNames = findIcons(
path.resolve(paths.hassio_dir, "./src"),
"hassio"
);
// Find hassio icons inside HA main repo.
for (const item of findIcons(
path.resolve(paths.polymer_dir, "./src"),
"hassio"
)) {
iconNames.add(item);
}
fs.writeFileSync(
path.resolve(paths.hassio_dir, "hassio-icons.html"),
generateIconset("hassio", iconNames)
);
done();
});
+34
View File
@@ -0,0 +1,34 @@
const gulp = require("gulp");
const envVars = require("../env");
require("./clean.js");
require("./gen-icons.js");
require("./webpack.js");
require("./compress.js");
gulp.task(
"develop-hassio",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "development";
},
"clean-hassio",
gulp.parallel("gen-icons-hassio", "gen-icons-mdi"),
"webpack-watch-hassio"
)
);
gulp.task(
"build-hassio",
gulp.series(
async function setEnv() {
process.env.NODE_ENV = "production";
},
"clean-hassio",
gulp.parallel("gen-icons-hassio", "gen-icons-mdi"),
"webpack-prod-hassio",
...// Don't compress running tests
(envVars.isTravis ? [] : ["compress-hassio"])
)
);
+33
View File
@@ -0,0 +1,33 @@
// Generate service worker.
// Based on manifest, create a file with the content as service_worker.js
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
const gulp = require("gulp");
const path = require("path");
const fs = require("fs-extra");
const config = require("../paths.js");
const swPath = path.resolve(config.root, "service_worker.js");
const writeSW = (content) => fs.outputFileSync(swPath, content.trim() + "\n");
gulp.task("gen-service-worker-dev", (done) => {
writeSW(
`
console.debug('Service worker disabled in development');
self.addEventListener('install', (event) => {
self.skipWaiting();
});
`
);
done();
});
gulp.task("gen-service-worker-prod", (done) => {
fs.copySync(
path.resolve(config.output, "service_worker.js"),
path.resolve(config.root, "service_worker.js")
);
done();
});
+406
View File
@@ -0,0 +1,406 @@
const del = require("del");
const path = require("path");
const gulp = require("gulp");
const fs = require("fs");
const foreach = require("gulp-foreach");
const hash = require("gulp-hash");
const hashFilename = require("gulp-hash-filename");
const merge = require("gulp-merge-json");
const minify = require("gulp-jsonminify");
const rename = require("gulp-rename");
const transform = require("gulp-json-transform");
const inDir = "translations";
const workDir = "build-translations";
const fullDir = workDir + "/full";
const coreDir = workDir + "/core";
const outDir = workDir + "/output";
String.prototype.rsplit = function(sep, maxsplit) {
var split = this.split(sep);
return maxsplit
? [split.slice(0, -maxsplit).join(sep)].concat(split.slice(-maxsplit))
: split;
};
// Panel translations which should be split from the core translations. These
// should mirror the fragment definitions in polymer.json, so that we load
// additional resources at equivalent points.
const TRANSLATION_FRAGMENTS = [
"config",
"history",
"logbook",
"mailbox",
"profile",
"shopping-list",
"page-authorize",
"page-demo",
"page-onboarding",
"developer-tools",
];
const tasks = [];
function recursiveFlatten(prefix, data) {
let output = {};
Object.keys(data).forEach(function(key) {
if (typeof data[key] === "object") {
output = {
...output,
...recursiveFlatten(prefix + key + ".", data[key]),
};
} else {
output[prefix + key] = data[key];
}
});
return output;
}
function flatten(data) {
return recursiveFlatten("", data);
}
function emptyFilter(data) {
const newData = {};
Object.keys(data).forEach((key) => {
if (data[key]) {
if (typeof data[key] === "object") {
newData[key] = emptyFilter(data[key]);
} else {
newData[key] = data[key];
}
}
});
return newData;
}
function recursiveEmpty(data) {
const newData = {};
Object.keys(data).forEach((key) => {
if (data[key]) {
if (typeof data[key] === "object") {
newData[key] = recursiveEmpty(data[key]);
} else {
newData[key] = "TRANSLATED";
}
}
});
return newData;
}
/**
* Replace Lokalise key placeholders with their actual values.
*
* We duplicate the behavior of Lokalise here so that placeholders can
* be included in src/translations/en.json, but still be usable while
* developing locally.
*
* @link https://docs.lokalise.co/article/KO5SZWLLsy-key-referencing
*/
const re_key_reference = /\[%key:([^%]+)%\]/;
function lokaliseTransform(data, original, file) {
const output = {};
Object.entries(data).forEach(([key, value]) => {
if (value instanceof Object) {
output[key] = lokaliseTransform(value, original, file);
} else {
output[key] = value.replace(re_key_reference, (match, key) => {
const replace = key.split("::").reduce((tr, k) => tr[k], original);
if (typeof replace !== "string") {
throw Error(`Invalid key placeholder ${key} in ${file.path}`);
}
return replace;
});
}
});
return output;
}
let taskName = "clean-translations";
gulp.task(taskName, function() {
return del([`${outDir}/**/*.json`]);
});
tasks.push(taskName);
gulp.task("ensure-translations-build-dir", (done) => {
if (!fs.existsSync(workDir)) {
fs.mkdirSync(workDir);
}
done();
});
taskName = "create-test-metadata";
gulp.task(
taskName,
gulp.series("ensure-translations-build-dir", function writeTestMetaData(cb) {
fs.writeFile(
workDir + "/testMetadata.json",
JSON.stringify({
test: {
nativeName: "Test",
},
}),
cb
);
})
);
tasks.push(taskName);
taskName = "create-test-translation";
gulp.task(
taskName,
gulp.series("create-test-metadata", function() {
return gulp
.src("src/translations/en.json")
.pipe(
transform(function(data, file) {
return recursiveEmpty(data);
})
)
.pipe(rename("test.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
/**
* This task will build a master translation file, to be used as the base for
* all languages. This starts with src/translations/en.json, and replaces all
* Lokalise key placeholders with their target values. Under normal circumstances,
* this will be the same as translations/en.json However, we build it here to
* facilitate both making changes in development mode, and to ensure that the
* project is buildable immediately after merging new translation keys, since
* the Lokalise update to translations/en.json will not happen immediately.
*/
taskName = "build-master-translation";
gulp.task(
taskName,
gulp.series("clean-translations", function() {
return gulp
.src("src/translations/en.json")
.pipe(
transform(function(data, file) {
return lokaliseTransform(data, data, file);
})
)
.pipe(rename("translationMaster.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
taskName = "build-merged-translations";
gulp.task(
taskName,
gulp.series("build-master-translation", function() {
return gulp
.src([inDir + "/*.json", workDir + "/test.json"], { allowEmpty: true })
.pipe(
transform(function(data, file) {
return lokaliseTransform(data, data, file);
})
)
.pipe(
foreach(function(stream, file) {
// For each language generate a merged json file. It begins with the master
// translation as a failsafe for untranslated strings, and merges all parent
// tags into one file for each specific subtag
//
// TODO: This is a naive interpretation of BCP47 that should be improved.
// Will be OK for now as long as we don't have anything more complicated
// than a base translation + region.
const tr = path.basename(file.history[0], ".json");
const subtags = tr.split("-");
const src = [workDir + "/translationMaster.json"];
for (let i = 1; i <= subtags.length; i++) {
const lang = subtags.slice(0, i).join("-");
if (lang === "test") {
src.push(workDir + "/test.json");
} else if (lang !== "en") {
src.push(inDir + "/" + lang + ".json");
}
}
return gulp
.src(src, { allowEmpty: true })
.pipe(transform((data) => emptyFilter(data)))
.pipe(
merge({
fileName: tr + ".json",
})
)
.pipe(gulp.dest(fullDir));
})
);
})
);
tasks.push(taskName);
const splitTasks = [];
TRANSLATION_FRAGMENTS.forEach((fragment) => {
taskName = "build-translation-fragment-" + fragment;
gulp.task(
taskName,
gulp.series("build-merged-translations", function() {
// Return only the translations for this fragment.
return gulp
.src(fullDir + "/*.json")
.pipe(
transform((data) => ({
ui: {
panel: {
[fragment]: data.ui.panel[fragment],
},
},
}))
)
.pipe(gulp.dest(workDir + "/" + fragment));
})
);
tasks.push(taskName);
splitTasks.push(taskName);
});
taskName = "build-translation-core";
gulp.task(
taskName,
gulp.series("build-merged-translations", function() {
// Remove the fragment translations from the core translation.
return gulp
.src(fullDir + "/*.json")
.pipe(
transform((data) => {
TRANSLATION_FRAGMENTS.forEach((fragment) => {
delete data.ui.panel[fragment];
});
return data;
})
)
.pipe(gulp.dest(coreDir));
})
);
tasks.push(taskName);
splitTasks.push(taskName);
taskName = "build-flattened-translations";
gulp.task(
taskName,
gulp.series(...splitTasks, function() {
// Flatten the split versions of our translations, and move them into outDir
return gulp
.src(
TRANSLATION_FRAGMENTS.map(
(fragment) => workDir + "/" + fragment + "/*.json"
).concat(coreDir + "/*.json"),
{ base: workDir }
)
.pipe(
transform(function(data) {
// Polymer.AppLocalizeBehavior requires flattened json
return flatten(data);
})
)
.pipe(minify())
.pipe(hashFilename())
.pipe(
rename((filePath) => {
if (filePath.dirname === "core") {
filePath.dirname = "";
}
})
)
.pipe(gulp.dest(outDir));
})
);
tasks.push(taskName);
taskName = "build-translation-fingerprints";
gulp.task(
taskName,
gulp.series("build-flattened-translations", function() {
return gulp
.src(outDir + "/**/*.json")
.pipe(
rename({
extname: "",
})
)
.pipe(
hash({
algorithm: "md5",
hashLength: 32,
template: "<%= name %>.json",
})
)
.pipe(hash.manifest("translationFingerprints.json"))
.pipe(
transform(function(data) {
// After generating fingerprints of our translation files, consolidate
// all translation fragment fingerprints under the translation name key
const newData = {};
Object.entries(data).forEach(([key, value]) => {
const [path, _md5] = key.rsplit("-", 1);
// let translation = key;
let translation = path;
const parts = translation.split("/");
if (parts.length === 2) {
translation = parts[1];
}
if (!(translation in newData)) {
newData[translation] = {
fingerprints: {},
};
}
newData[translation].fingerprints[path] = value;
});
return newData;
})
)
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
taskName = "build-translations";
gulp.task(
taskName,
gulp.series("build-translation-fingerprints", function() {
return gulp
.src(
[
"src/translations/translationMetadata.json",
workDir + "/testMetadata.json",
workDir + "/translationFingerprints.json",
],
{ allowEmpty: true }
)
.pipe(merge({}))
.pipe(
transform(function(data) {
const newData = {};
Object.entries(data).forEach(([key, value]) => {
// Filter out translations without native name.
if (data[key].nativeName) {
newData[key] = data[key];
} else {
console.warn(
`Skipping language ${key}. Native name was not translated.`
);
}
if (data[key]) newData[key] = value;
});
return newData;
})
)
.pipe(
transform((data) => ({
fragments: TRANSLATION_FRAGMENTS,
translations: data,
}))
)
.pipe(rename("translationMetadata.json"))
.pipe(gulp.dest(workDir));
})
);
tasks.push(taskName);
module.exports = tasks;
+169
View File
@@ -0,0 +1,169 @@
// Tasks to run webpack.
const gulp = require("gulp");
const webpack = require("webpack");
const WebpackDevServer = require("webpack-dev-server");
const log = require("fancy-log");
const paths = require("../paths");
const {
createAppConfig,
createDemoConfig,
createCastConfig,
createHassioConfig,
createGalleryConfig,
} = require("../webpack");
const bothBuilds = (createConfigFunc, params) => [
createConfigFunc({ ...params, latestBuild: true }),
createConfigFunc({ ...params, latestBuild: false }),
];
const runDevServer = ({
compiler,
contentBase,
port,
listenHost = "localhost",
}) =>
new WebpackDevServer(compiler, {
open: true,
watchContentBase: true,
contentBase,
}).listen(port, listenHost, function(err) {
if (err) {
throw err;
}
// Server listening
log("[webpack-dev-server]", `http://localhost:${port}`);
});
const handler = (done) => (err, stats) => {
if (err) {
console.log(err.stack || err);
if (err.details) {
console.log(err.details);
}
return;
}
log(`Build done @ ${new Date().toLocaleTimeString()}`);
if (stats.hasErrors() || stats.hasWarnings()) {
console.log(stats.toString("minimal"));
}
if (done) {
done();
}
};
gulp.task("webpack-watch-app", () => {
// we are not calling done, so this command will run forever
webpack(bothBuilds(createAppConfig, { isProdBuild: false })).watch(
{},
handler()
);
});
gulp.task(
"webpack-prod-app",
() =>
new Promise((resolve) =>
webpack(
bothBuilds(createAppConfig, { isProdBuild: true }),
handler(resolve)
)
)
);
gulp.task("webpack-dev-server-demo", () => {
runDevServer({
compiler: webpack(bothBuilds(createDemoConfig, { isProdBuild: false })),
contentBase: paths.demo_root,
port: 8090,
});
});
gulp.task(
"webpack-prod-demo",
() =>
new Promise((resolve) =>
webpack(
bothBuilds(createDemoConfig, {
isProdBuild: true,
}),
handler(resolve)
)
)
);
gulp.task("webpack-dev-server-cast", () => {
runDevServer({
compiler: webpack(bothBuilds(createCastConfig, { isProdBuild: false })),
contentBase: paths.cast_root,
port: 8080,
// Accessible from the network, because that's how Cast hits it.
listenHost: "0.0.0.0",
});
});
gulp.task(
"webpack-prod-cast",
() =>
new Promise((resolve) =>
webpack(
bothBuilds(createCastConfig, {
isProdBuild: true,
}),
handler(resolve)
)
)
);
gulp.task("webpack-watch-hassio", () => {
// we are not calling done, so this command will run forever
webpack(
createHassioConfig({
isProdBuild: false,
latestBuild: false,
})
).watch({}, handler());
});
gulp.task(
"webpack-prod-hassio",
() =>
new Promise((resolve) =>
webpack(
createHassioConfig({
isProdBuild: true,
latestBuild: false,
}),
handler(resolve)
)
)
);
gulp.task("webpack-dev-server-gallery", () => {
runDevServer({
compiler: webpack(
createGalleryConfig({ latestBuild: true, isProdBuild: false })
),
contentBase: paths.gallery_root,
port: 8100,
});
});
gulp.task(
"webpack-prod-gallery",
() =>
new Promise((resolve) =>
webpack(
createGalleryConfig({
isProdBuild: true,
latestBuild: true,
}),
handler(resolve)
)
)
);
+32
View File
@@ -0,0 +1,32 @@
var path = require("path");
module.exports = {
polymer_dir: path.resolve(__dirname, ".."),
build_dir: path.resolve(__dirname, "../build"),
root: path.resolve(__dirname, "../hass_frontend"),
static: path.resolve(__dirname, "../hass_frontend/static"),
output: path.resolve(__dirname, "../hass_frontend/frontend_latest"),
output_es5: path.resolve(__dirname, "../hass_frontend/frontend_es5"),
demo_dir: path.resolve(__dirname, "../demo"),
demo_root: path.resolve(__dirname, "../demo/dist"),
demo_static: path.resolve(__dirname, "../demo/dist/static"),
demo_output: path.resolve(__dirname, "../demo/dist/frontend_latest"),
demo_output_es5: path.resolve(__dirname, "../demo/dist/frontend_es5"),
cast_dir: path.resolve(__dirname, "../cast"),
cast_root: path.resolve(__dirname, "../cast/dist"),
cast_static: path.resolve(__dirname, "../cast/dist/static"),
cast_output: path.resolve(__dirname, "../cast/dist/frontend_latest"),
cast_output_es5: path.resolve(__dirname, "../cast/dist/frontend_es5"),
gallery_dir: path.resolve(__dirname, "../gallery"),
gallery_root: path.resolve(__dirname, "../gallery/dist"),
gallery_output: path.resolve(__dirname, "../gallery/dist/frontend_latest"),
gallery_static: path.resolve(__dirname, "../gallery/dist/static"),
hassio_dir: path.resolve(__dirname, "../hassio"),
hassio_root: path.resolve(__dirname, "../hassio/build"),
hassio_publicPath: "/api/hassio/app/",
};
+260
View File
@@ -0,0 +1,260 @@
const webpack = require("webpack");
const fs = require("fs");
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const WorkboxPlugin = require("workbox-webpack-plugin");
const ManifestPlugin = require("webpack-manifest-plugin");
const paths = require("./paths.js");
const { babelLoaderConfig } = require("./babel.js");
let version = fs
.readFileSync(path.resolve(paths.polymer_dir, "setup.py"), "utf8")
.match(/\d{8}\.\d+/);
if (!version) {
throw Error("Version not found");
}
version = version[0];
const createWebpackConfig = ({
entry,
outputRoot,
defineOverlay,
isProdBuild,
latestBuild,
isStatsBuild,
}) => {
return {
mode: isProdBuild ? "production" : "development",
devtool: isProdBuild ? "source-map" : "inline-cheap-module-source-map",
entry,
module: {
rules: [
babelLoaderConfig({ latestBuild }),
{
test: /\.css$/,
use: "raw-loader",
},
{
test: /\.(html)$/,
use: {
loader: "html-loader",
options: {
exportAsEs6Default: true,
},
},
},
],
},
optimization: {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true,
extractComments: true,
sourceMap: true,
terserOptions: {
safari10: true,
ecma: latestBuild ? undefined : 5,
},
}),
],
},
plugins: [
new ManifestPlugin(),
new webpack.DefinePlugin({
__DEV__: !isProdBuild,
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
__VERSION__: JSON.stringify(version),
__DEMO__: false,
__STATIC_PATH__: "/static/",
"process.env.NODE_ENV": JSON.stringify(
isProdBuild ? "production" : "development"
),
...defineOverlay,
}),
// Ignore moment.js locales
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// Color.js is bloated, it contains all color definitions for all material color sets.
new webpack.NormalModuleReplacementPlugin(
/@polymer\/paper-styles\/color\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
// Ignore roboto pointing at CDN. We use local font-roboto-local.
new webpack.NormalModuleReplacementPlugin(
/@polymer\/font-roboto\/roboto\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
// Ignore mwc icons pointing at CDN.
new webpack.NormalModuleReplacementPlugin(
/@material\/mwc-icon\/mwc-icon-font\.js$/,
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
].filter(Boolean),
resolve: {
extensions: [".ts", ".js", ".json"],
alias: {
react: "preact-compat",
"react-dom": "preact-compat",
// Not necessary unless you consume a module using `createClass`
"create-react-class": "preact-compat/lib/create-react-class",
// Not necessary unless you consume a module requiring `react-dom-factories`
"react-dom-factories": "preact-compat/lib/react-dom-factories",
},
},
output: {
filename: ({ chunk }) => {
const dontHash = new Set();
if (!isProdBuild || dontHash.has(chunk.name)) {
return `${chunk.name}.js`;
}
return `${chunk.name}.${chunk.hash.substr(0, 8)}.js`;
},
chunkFilename:
isProdBuild && !isStatsBuild
? "chunk.[chunkhash].js"
: "[name].chunk.js",
path: path.resolve(
outputRoot,
latestBuild ? "frontend_latest" : "frontend_es5"
),
publicPath: latestBuild ? "/frontend_latest/" : "/frontend_es5/",
// For workerize loader
globalObject: "self",
},
};
};
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
const config = createWebpackConfig({
entry: {
app: "./src/entrypoints/app.ts",
authorize: "./src/entrypoints/authorize.ts",
onboarding: "./src/entrypoints/onboarding.ts",
core: "./src/entrypoints/core.ts",
compatibility: "./src/entrypoints/compatibility.ts",
"custom-panel": "./src/entrypoints/custom-panel.ts",
"hass-icons": "./src/entrypoints/hass-icons.ts",
},
outputRoot: paths.root,
isProdBuild,
latestBuild,
isStatsBuild,
});
if (latestBuild) {
// Create an object mapping browser urls to their paths during build
const translationMetadata = require("../build-translations/translationMetadata.json");
const workBoxTranslationsTemplatedURLs = {};
const englishFP = translationMetadata.translations.en.fingerprints;
Object.keys(englishFP).forEach((key) => {
workBoxTranslationsTemplatedURLs[
`/static/translations/${englishFP[key]}`
] = `build-translations/output/${key}.json`;
});
config.plugins.push(
new WorkboxPlugin.InjectManifest({
swSrc: "./src/entrypoints/service-worker-hass.js",
swDest: "service_worker.js",
importWorkboxFrom: "local",
include: [/\.js$/],
templatedURLs: {
...workBoxTranslationsTemplatedURLs,
"/static/icons/favicon-192x192.png":
"public/icons/favicon-192x192.png",
"/static/fonts/roboto/Roboto-Light.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2",
"/static/fonts/roboto/Roboto-Medium.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2",
"/static/fonts/roboto/Roboto-Regular.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2",
"/static/fonts/roboto/Roboto-Bold.woff2":
"node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2",
},
})
);
}
return config;
};
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
return createWebpackConfig({
entry: {
main: path.resolve(paths.demo_dir, "src/entrypoint.ts"),
compatibility: path.resolve(
paths.polymer_dir,
"src/entrypoints/compatibility.ts"
),
},
outputRoot: paths.demo_root,
defineOverlay: {
__VERSION__: JSON.stringify(`DEMO-${version}`),
__DEMO__: true,
},
isProdBuild,
latestBuild,
isStatsBuild,
});
};
const createCastConfig = ({ isProdBuild, latestBuild }) => {
const entry = {
launcher: path.resolve(paths.cast_dir, "src/launcher/entrypoint.ts"),
};
if (latestBuild) {
entry.receiver = path.resolve(paths.cast_dir, "src/receiver/entrypoint.ts");
}
return createWebpackConfig({
entry,
outputRoot: paths.cast_root,
isProdBuild,
latestBuild,
});
};
const createHassioConfig = ({ isProdBuild, latestBuild }) => {
if (latestBuild) {
throw new Error("Hass.io does not support latest build!");
}
const config = createWebpackConfig({
entry: {
entrypoint: path.resolve(paths.hassio_dir, "src/entrypoint.js"),
},
outputRoot: "",
isProdBuild,
latestBuild,
});
config.output.path = paths.hassio_root;
config.output.publicPath = paths.hassio_publicPath;
return config;
};
const createGalleryConfig = ({ isProdBuild, latestBuild }) => {
if (!latestBuild) {
throw new Error("Gallery only supports latest build!");
}
const config = createWebpackConfig({
entry: {
entrypoint: path.resolve(paths.gallery_dir, "src/entrypoint.js"),
},
outputRoot: paths.gallery_root,
isProdBuild,
latestBuild,
});
return config;
};
module.exports = {
createAppConfig,
createDemoConfig,
createCastConfig,
createHassioConfig,
createGalleryConfig,
};
+56
View File
@@ -0,0 +1,56 @@
# Home Assistant Cast
Home Assistant Cast is made up of two separate applications:
- Chromecast receiver application that can connect to Home Assistant and display relevant information.
- Launcher website that allows users to authorize with their Home Assistant installation and launch the receiver app on their Chromecast.
## Development
- Run `script/develop_cast` to launch the Cast receiver dev server. Keep this running.
- Navigate to http://localhost:8080 to start the launcher
- Debug the receiver running on the Chromecast via [chrome://inspect/#devices](chrome://inspect/#devices)
## Setting up development environment
### Registering development cast app
- Go to https://cast.google.com/publish and enroll your account for the Google Cast SDK (costs \$5)
- Register your Chromecast as a testing device by entering the serial
- Add new application -> Custom Receiver
- Name: Home Assistant Dev
- Receiver Application URL: http://IP-OF-DEV-MACHINE:8080/receiver.html
- Guest Mode: off
- Google Case for Audio: off
### Setting dev variables
Open `src/cast/dev_const.ts` and change `CAST_DEV_APP_ID` to the ID of the app you just created. And set the `CAST_DEV_HASS_URL` to the url of you development machine.
### Changing configuration
In `configuration.yaml`, configure CORS for the HTTP integration:
```yaml
http:
cors_allowed_origins:
- https://cast.home-assistant.io
- http://IP-OF-DEV-MACHINE:8080
```
## Running development
```bash
cd cast
script/develop_cast
```
The launcher application will be accessible at [http://localhost:8080](http://localhost:8080) and the receiver application will be accessible at [http://localhost:8080/receiver.html](http://localhost:8080/receiver.html) (but only works if accessed by a Chromecast).
### Developing cast widgets in HA ui
If your work involves interaction with the Cast parts from the normal Home Assistant UI, you will need to have that development script running too (`script/develop`).
### Developing the cast demo
The cast demo is triggered from the Home Assistant demo. To work on that, you will also need to run the development script for the demo (`script/develop_demo`).
+20
View File
@@ -0,0 +1,20 @@
/*
Cache-Control: public, max-age: 0, s-maxage=3600, must-revalidate
Content-Security-Policy: form-action https:
Feature-Policy: vibrate 'none'; geolocation 'none'; midi 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; vibrate 'none'; payment 'none'
Referrer-Policy: no-referrer-when-downgrade
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
/images/*
Cache-Control: public, max-age: 604800, s-maxage=604800
/manifest.json
Cache-Control: public, max-age: 3600, s-maxage=3600
/frontend_es5/*
Cache-Control: public, max-age: 604800, s-maxage=604800
/frontend_latest/*
Cache-Control: public, max-age: 604800, s-maxage=604800
Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

+18
View File
@@ -0,0 +1,18 @@
{
"background_color": "#FFFFFF",
"description": "Show Home Assistant on your Chromecast or Google Assistant devices with a screen.",
"dir": "ltr",
"display": "standalone",
"icons": [
{
"src": "/images/ha-cast-icon.png",
"sizes": "512x512",
"type": "image/png"
}
],
"lang": "en-US",
"name": "Home Assistant Cast",
"short_name": "HA Cast",
"start_url": "/?homescreen=1",
"theme_color": "#03A9F4"
}
+3
View File
@@ -0,0 +1,3 @@
self.addEventListener("fetch", function(event) {
event.respondWith(fetch(event.request));
});
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Build the cast receiver
# Stop on errors
set -e
cd "$(dirname "$0")/../.."
./node_modules/.bin/gulp build-cast
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Develop the cast receiver
# Stop on errors
set -e
cd "$(dirname "$0")/../.."
./node_modules/.bin/gulp develop-cast
+5
View File
@@ -0,0 +1,5 @@
# Run it twice, second time we just delete.
aws s3 sync dist s3://cast.home-assistant.io --acl public-read
# Don't delete as it might break open sites that need to load code splitted things.
# aws s3 sync dist s3://cast.home-assistant.io --acl public-read --delete
# Todo : update JS first, HTML last.
+261
View File
@@ -0,0 +1,261 @@
<!DOCTYPE html>
<html>
<head>
<title>Home Assistant Cast - FAQ</title>
<link rel="icon" href="/images/ha-cast-icon.png" type="image/png" />
<%= renderTemplate('_style_base') %>
<style>
body {
background-color: #e5e5e5;
}
</style>
<meta property="fb:app_id" content="338291289691179" />
<meta property="og:title" content="FAQ - Home Assistant Cast" />
<meta property="og:site_name" content="Home Assistant Cast" />
<meta property="og:url" content="https://cast.home-assistant.io/" />
<meta property="og:type" content="website" />
<meta
property="og:description"
content="Frequently asked questions about Home Assistant Cast."
/>
<meta
property="og:image"
content="https://cast.home-assistant.io/images/google-nest-hub.png"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@home_assistant" />
<meta name="twitter:title" content="FAQ - Home Assistant Cast" />
<meta
name="twitter:description"
content="Frequently asked questions about Home Assistant Cast."
/>
<meta
name="twitter:image"
content="https://cast.home-assistant.io/images/google-nest-hub.png"
/>
</head>
<body>
<%= renderTemplate('_js_base') %>
<script type="module" crossorigin="use-credentials">
import "<%= latestLauncherJS %>";
</script>
<script nomodule>
(function() {
// // Safari 10.1 supports type=module but ignores nomodule, so we add this check.
if (!isS101) {
_ls("/static/polyfills/custom-elements-es5-adapter.js");
_ls("<%= es5LauncherJS %>");
}
})();
</script>
<hc-layout subtitle="FAQ">
<style>
a {
color: var(--primary-color);
}
</style>
<div class="card-content">
<p><a href="/">&laquo; Back to Home Assistant Cast</a></p>
</div>
<div class="section-header">What is Home Assistant Cast?</div>
<div class="card-content">
<p>
Home Assistant Cast allows you to show your Home Assistant data on a
Chromecast device and allows you to interact with Home Assistant on
Google Assistant devices with a screen.
</p>
</div>
<div class="section-header">
What are the Home Assistant Cast requirements?
</div>
<div class="card-content">
<p>
Home Assistant Cast requires a Home Assistant installation that is
accessible via HTTPS (the url starts with "https://").
</p>
</div>
<div class="section-header">What is Home Assistant?</div>
<div class="card-content">
<p>
Home Assistant is worlds biggest open source home automation platform
with a focus on privacy and local control. You can install Home
Assistant for free.
</p>
<p>
<a href="https://www.home-assistant.io" target="_blank"
>Visit the Home Assistant website.</a
>
</p>
</div>
<div class="section-header" id="https">
Why does my Home Assistant needs to be served using HTTPS?
</div>
<div class="card-content">
<p>
The Chromecast only works with websites served over HTTPS. This means
that the Home Assistant Cast app that runs on your Chromecast is
served over HTTPS. Websites served over HTTPS are restricted on what
content can be accessed on websites served over HTTP. This is called
mixed active content (<a
href="https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content#Mixed_active_content"
target="_blank"
>learn more @ MDN</a
>).
</p>
<p>
The easiest way to get your Home Assistant installation served over
HTTPS is by signing up for
<a href="https://www.nabucasa.com" target="_blank"
>Home Assistant Cloud by Nabu Casa</a
>.
</p>
</div>
<div class="section-header" id="https">
Why does Home Assistant Cast require me to authorize my Home Assistant
instance?
</div>
<div class="card-content">
<p>
You're currently looking at the Home Assistant Cast launcher
application. This is a standalone application to launch Home Assistant
Cast on your Chromecast. Because Chromecasts do not allow us to log in
to Home Assistant, we need to supply authentication to it from the
launcher. This authentication is obtained when you authorize your
instance. Your authentication credentials will remain in your browser
and on your Cast device.
</p>
<p>
Your authentication credentials or Home Assistant url are never sent
to the Cloud. You can validate this behavior in
<a
href="https://github.com/home-assistant/home-assistant-polymer/tree/dev/cast"
target="_blank"
>the source code</a
>.
</p>
<p>
The launcher application exists to make it possible to use Home
Assistant Cast with older versions of Home Assistant.
</p>
<p>
Starting with Home Assistant 0.97, Home Assistant Cast is also built
into the Lovelace UI as a special entities card row. Since the
Lovelace UI already has authentication, you will be able to start
casting right away.
</p>
</div>
<div class="section-header">Wat does Home Assistant Cast do?</div>
<div class="card-content">
<p>
Home Assistant Cast is a receiver application for the Chromecast. When
loaded, it will make a direct connection to your Home Assistant
instance.
</p>
<p>
Home Assistant Cast is able to render any of your Lovelace views on
your Chromecast. Things that work in Lovelace in Home Assistant will
work in Home Assistant Cast:
</p>
<ul>
<li>Render Lovelace views, including custom cards</li>
<li>
Real-time data stream will ensure the UI always shows the latest
state of your house
</li>
<li>Navigate between views using navigate actions or weblinks</li>
<li>
Instant updates of the casted Lovelace UI when you update your
Lovelace configuration.
</li>
</ul>
<p>Things that currently do not work:</p>
<ul>
<li>
Live videostreams using the streaming integration
</li>
<li>Specifying a view with a single card with "panel: true".</li>
</ul>
</div>
<div class="section-header" id="https">
How do I change what is shown on my Chromecast?
</div>
<div class="card-content">
<p>
Home Assistant Cast allows you to show your Lovelace view on your
Chromecast. So to edit what is shown, you need to edit your Lovelace
UI.
</p>
<p>
To edit your Lovelace UI, open Home Assistant, click on the three-dot
menu in the top right and click on "Configure UI".
</p>
</div>
<div class="section-header" id="browser">
What browsers are supported?
</div>
<div class="card-content">
<p>
Chromecast is a technology developed by Google, and is available on:
</p>
<ul>
<li>Google Chrome (all platforms except on iOS)</li>
<li>
Microsoft Edge (all platforms,
<a href="https://www.microsoftedgeinsider.com" target="_blank"
>dev and canary builds only</a
>)
</li>
</ul>
</div>
<div class="section-header">Why do some custom cards not work?</div>
<div class="card-content">
<p>
Home Assistant needs to be configured to allow Home Assistant Cast to
load custom cards. Starting with Home Assistant 0.97, this is done
automatically. If you are on an older version, or have manually
configured CORS for the HTTP integration, add the following to your
configuration.yaml file:
</p>
<pre>
http:
cors_allowed_origins:
- https://cast.home-assistant.io</pre
>
<p>
Some custom cards rely on things that are only available in the normal
Home Assistant interface. This requires an update by the custom card
developer.
</p>
<p>
If you're a custom card developer: the most common mistake is that
LitElement is extracted from an element that is not available on the
page.
</p>
</div>
</hc-layout>
<script>
var _gaq = [["_setAccount", "UA-57927901-9"], ["_trackPageview"]];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src =
("https:" == location.protocol ? "//ssl" : "//www") +
".google-analytics.com/ga.js";
s.parentNode.insertBefore(g, s);
})(document, "script");
</script>
</body>
</html>
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<title>Home Assistant Cast</title>
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/images/ha-cast-icon.png" type="image/png" />
<%= renderTemplate('_style_base') %>
<style>
body {
background-color: #e5e5e5;
}
</style>
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Home Assistant Cast">
<meta property="og:site_name" content="Home Assistant Cast">
<meta property="og:url" content="https://cast.home-assistant.io/">
<meta property="og:type" content="website">
<meta property="og:description" content="Show Home Assistant on your Chromecast or Google Assistant devices with a screen.">
<meta property="og:image" content="https://cast.home-assistant.io/images/google-nest-hub.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Home Assistant Cast">
<meta name="twitter:description" content="Show Home Assistant on your Chromecast or Google Assistant devices with a screen.">
<meta name="twitter:image" content="https://cast.home-assistant.io/images/google-nest-hub.png">
</head>
<body>
<%= renderTemplate('_js_base') %>
<hc-connect></hc-connect>
<script type="module" crossorigin="use-credentials">
import "<%= latestLauncherJS %>";
</script>
<script nomodule>
(function() {
// // Safari 10.1 supports type=module but ignores nomodule, so we add this check.
if (!isS101) {
_ls("/static/polyfills/custom-elements-es5-adapter.js");
_ls("<%= es5LauncherJS %>");
}
})();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57927901-9', 'auto');
ga('send', 'pageview', location.pathname.includes("auth_callback") === -1 ? location.pathname : "/");
</script>
</body>
</html>
+18
View File
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<script src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
<script type="module" src="<%= latestReceiverJS %>"></script>
<%= renderTemplate('_style_base') %>
<style>
body {
background-color: white;
font-size: initial;
}
</style>
<script>
var _gaq=[['_setAccount','UA-57927901-10'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</html>
+5
View File
@@ -0,0 +1,5 @@
import "../../../src/resources/ha-style";
import "../../../src/resources/roboto";
import "../../../src/components/ha-iconset-svg";
import "../../../src/resources/hass-icons";
import "./layout/hc-connect";
+282
View File
@@ -0,0 +1,282 @@
import {
customElement,
LitElement,
property,
TemplateResult,
html,
CSSResult,
css,
} from "lit-element";
import { Connection, Auth } from "home-assistant-js-websocket";
import "@polymer/iron-icon";
import "@polymer/paper-listbox/paper-listbox";
import "@polymer/paper-item/paper-icon-item";
import "../../../../src/components/ha-icon";
import {
enableWrite,
askWrite,
saveTokens,
} from "../../../../src/common/auth/token_storage";
import {
ensureConnectedCastSession,
castSendShowLovelaceView,
} from "../../../../src/cast/receiver_messages";
import "../../../../src/layouts/loading-screen";
import { CastManager } from "../../../../src/cast/cast_manager";
import {
LovelaceConfig,
getLovelaceCollection,
} from "../../../../src/data/lovelace";
import "./hc-layout";
import { generateDefaultViewConfig } from "../../../../src/panels/lovelace/common/generate-lovelace-config";
import { toggleAttribute } from "../../../../src/common/dom/toggle_attribute";
@customElement("hc-cast")
class HcCast extends LitElement {
@property() public auth!: Auth;
@property() public connection!: Connection;
@property() public castManager!: CastManager;
@property() private askWrite = false;
@property() private lovelaceConfig?: LovelaceConfig | null;
protected render(): TemplateResult | void {
if (this.lovelaceConfig === undefined) {
return html`
<loading-screen></loading-screen>>
`;
}
const error =
this.castManager.castState === "NO_DEVICES_AVAILABLE"
? html`
<p>
There were no suitable Chromecast devices to cast to found.
</p>
`
: undefined;
return html`
<hc-layout .auth=${this.auth} .connection=${this.connection}>
${this.askWrite
? html`
<p class="question action-item">
Stay logged in?
<span>
<mwc-button @click=${this._handleSaveTokens}>
YES
</mwc-button>
<mwc-button @click=${this._handleSkipSaveTokens}>
NO
</mwc-button>
</span>
</p>
`
: ""}
${error
? html`
<div class="card-content">${error}</div>
`
: !this.castManager.status
? html`
<p class="center-item">
<mwc-button raised @click=${this._handleLaunch}>
<iron-icon icon="hass:cast"></iron-icon>
Start Casting
</mwc-button>
</p>
`
: html`
<div class="section-header">PICK A VIEW</div>
<paper-listbox
attr-for-selected="data-path"
.selected=${this.castManager.status.lovelacePath || ""}
>
${(this.lovelaceConfig
? this.lovelaceConfig.views
: [generateDefaultViewConfig([], [], [], {}, () => "")]
).map(
(view, idx) => html`
<paper-icon-item
@click=${this._handlePickView}
data-path=${view.path || idx}
>
${view.icon
? html`
<ha-icon
.icon=${view.icon}
slot="item-icon"
></ha-icon>
`
: ""}
${view.title || view.path}
</paper-icon-item>
`
)}
</paper-listbox>
`}
<div class="card-actions">
${this.castManager.status
? html`
<mwc-button @click=${this._handleLaunch}>
<iron-icon icon="hass:cast-connected"></iron-icon>
Manage
</mwc-button>
`
: ""}
<div class="spacer"></div>
<mwc-button @click=${this._handleLogout}>Log out</mwc-button>
</div>
</hc-layout>
`;
}
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
const llColl = getLovelaceCollection(this.connection);
// We first do a single refresh because we need to check if there is LL
// configuration.
llColl.refresh().then(
() => {
llColl.subscribe((config) => {
this.lovelaceConfig = config;
});
},
async () => {
this.lovelaceConfig = null;
}
);
this.askWrite = askWrite();
this.castManager.addEventListener("state-changed", () => {
this.requestUpdate();
});
this.castManager.addEventListener("connection-changed", () => {
this.requestUpdate();
});
}
protected updated(changedProps) {
super.updated(changedProps);
toggleAttribute(
this,
"hide-icons",
this.lovelaceConfig
? !this.lovelaceConfig.views.some((view) => view.icon)
: true
);
}
private async _handleSkipSaveTokens() {
this.askWrite = false;
}
private async _handleSaveTokens() {
enableWrite();
this.askWrite = false;
}
private _handleLaunch() {
this.castManager.requestSession();
}
private async _handlePickView(ev: Event) {
const path = (ev.currentTarget as any).getAttribute("data-path");
await ensureConnectedCastSession(this.castManager!, this.auth!);
castSendShowLovelaceView(this.castManager, path);
}
private async _handleLogout() {
try {
await this.auth.revoke();
saveTokens(null);
if (this.castManager.castSession) {
this.castManager.castContext.endCurrentSession(true);
}
this.connection.close();
location.reload();
} catch (err) {
alert("Unable to log out!");
}
}
static get styles(): CSSResult {
return css`
.center-item {
display: flex;
justify-content: space-around;
}
.action-item {
display: flex;
align-items: center;
justify-content: space-between;
}
.question {
position: relative;
padding: 8px 16px;
}
.question:before {
border-radius: 4px;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
content: "";
background-color: var(--primary-color);
opacity: 0.12;
will-change: opacity;
}
.connection,
.connection a {
color: var(--secondary-text-color);
}
mwc-button iron-icon {
margin-right: 8px;
height: 18px;
}
paper-listbox {
padding-top: 0;
}
paper-listbox ha-icon {
padding: 12px;
color: var(--secondary-text-color);
}
paper-icon-item {
cursor: pointer;
}
paper-icon-item[disabled] {
cursor: initial;
}
:host([hide-icons]) paper-icon-item {
--paper-item-icon-width: 0px;
}
.spacer {
flex: 1;
}
.card-content a {
color: var(--primary-color);
}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-cast": HcCast;
}
}
+333
View File
@@ -0,0 +1,333 @@
import {
LitElement,
customElement,
property,
TemplateResult,
html,
CSSResult,
css,
} from "lit-element";
import {
getAuth,
createConnection,
Auth,
getAuthOptions,
ERR_HASS_HOST_REQUIRED,
ERR_INVALID_HTTPS_TO_HTTP,
Connection,
ERR_CANNOT_CONNECT,
ERR_INVALID_AUTH,
} from "home-assistant-js-websocket";
import "@polymer/iron-icon";
import "@material/mwc-button";
import "@polymer/paper-input/paper-input";
import {
loadTokens,
saveTokens,
} from "../../../../src/common/auth/token_storage";
import "../../../../src/layouts/loading-screen";
import { CastManager, getCastManager } from "../../../../src/cast/cast_manager";
import "./hc-layout";
import { castSendShowDemo } from "../../../../src/cast/receiver_messages";
import { registerServiceWorker } from "../../../../src/util/register-service-worker";
const seeFAQ = (qid) => html`
See <a href="./faq.html${qid ? `#${qid}` : ""}">the FAQ</a> for more
information.
`;
const translateErr = (err) =>
err === ERR_CANNOT_CONNECT
? "Unable to connect"
: err === ERR_HASS_HOST_REQUIRED
? "Please enter a Home Assistant URL."
: err === ERR_INVALID_HTTPS_TO_HTTP
? html`
Cannot connect to Home Assistant instances over "http://".
${seeFAQ("https")}
`
: `Unknown error (${err}).`;
const INTRO = html`
<p>
Home Assistant Cast allows you to cast your Home Assistant installation to
Chromecast video devices and to Google Assistant devices with a screen.
</p>
<p>
For more information, see the
<a href="./faq.html">frequently asked questions</a>.
</p>
`;
@customElement("hc-connect")
export class HcConnect extends LitElement {
@property() private loading = false;
// If we had stored credentials but we cannot connect,
// show a screen asking retry or logout.
@property() private cannotConnect = false;
@property() private error?: string | TemplateResult;
@property() private auth?: Auth;
@property() private connection?: Connection;
@property() private castManager?: CastManager | null;
private openDemo = false;
protected render(): TemplateResult | void {
if (this.cannotConnect) {
const tokens = loadTokens();
return html`
<hc-layout>
<div class="card-content">
Unable to connect to ${tokens!.hassUrl}.
</div>
<div class="card-actions">
<a href="/">
<mwc-button>
Retry
</mwc-button>
</a>
<div class="spacer"></div>
<mwc-button @click=${this._handleLogout}>Log out</mwc-button>
</div>
</hc-layout>
`;
}
if (this.castManager === undefined || this.loading) {
return html`
<loading-screen></loading-screen>
`;
}
if (this.castManager === null) {
return html`
<hc-layout>
<div class="card-content">
${INTRO}
<p class="error">
The Cast API is not available in your browser.
${seeFAQ("browser")}
</p>
</div>
</hc-layout>
`;
}
if (!this.auth) {
return html`
<hc-layout>
<div class="card-content">
${INTRO}
<p>
To get started, enter your Home Assistant URL and click authorize.
If you want a preview instead, click the show demo button.
</p>
<p>
<paper-input
label="Home Assistant URL"
placeholder="https://abcdefghijklmnop.ui.nabu.casa"
@keydown=${this._handleInputKeyDown}
></paper-input>
</p>
${this.error
? html`
<p class="error">${this.error}</p>
`
: ""}
</div>
<div class="card-actions">
<mwc-button @click=${this._handleDemo}>
Show Demo
<iron-icon
.icon=${this.castManager.castState === "CONNECTED"
? "hass:cast-connected"
: "hass:cast"}
></iron-icon>
</mwc-button>
<div class="spacer"></div>
<mwc-button @click=${this._handleConnect}>Authorize</mwc-button>
</div>
</hc-layout>
`;
}
return html`
<hc-cast
.connection=${this.connection}
.auth=${this.auth}
.castManager=${this.castManager}
></hc-cast>
`;
}
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
import("./hc-cast");
getCastManager().then(
async (mgr) => {
this.castManager = mgr;
mgr.addEventListener("connection-changed", () => {
this.requestUpdate();
});
mgr.addEventListener("state-changed", () => {
if (this.openDemo && mgr.castState === "CONNECTED" && !this.auth) {
castSendShowDemo(mgr);
}
});
if (location.search.indexOf("auth_callback=1") !== -1) {
this._tryConnection("auth-callback");
} else if (loadTokens()) {
this._tryConnection("saved-tokens");
}
},
() => {
this.castManager = null;
}
);
registerServiceWorker(false);
}
private async _handleDemo() {
this.openDemo = true;
if (this.castManager!.status && !this.castManager!.status.showDemo) {
castSendShowDemo(this.castManager!);
} else {
this.castManager!.requestSession();
}
}
private _handleInputKeyDown(ev: KeyboardEvent) {
// Handle pressing enter.
if (ev.keyCode === 13) {
this._handleConnect();
}
}
private async _handleConnect() {
const inputEl = this.shadowRoot!.querySelector("paper-input")!;
const value = inputEl.value || "";
this.error = undefined;
if (value === "") {
this.error = "Please enter a Home Assistant URL.";
return;
} else if (value.indexOf("://") === -1) {
this.error =
"Please enter your full URL, including the protocol part (https://).";
return;
}
let url: URL;
try {
url = new URL(value);
} catch (err) {
this.error = "Invalid URL";
return;
}
if (url.protocol === "http:" && url.hostname !== "localhost") {
this.error = translateErr(ERR_INVALID_HTTPS_TO_HTTP);
return;
}
await this._tryConnection("user-request", `${url.protocol}//${url.host}`);
}
private async _tryConnection(
init: "auth-callback" | "user-request" | "saved-tokens",
hassUrl?: string
) {
const options: getAuthOptions = {
saveTokens,
loadTokens: () => Promise.resolve(loadTokens()),
};
if (hassUrl) {
options.hassUrl = hassUrl;
}
let auth: Auth;
try {
this.loading = true;
auth = await getAuth(options);
} catch (err) {
if (init === "saved-tokens" && err === ERR_CANNOT_CONNECT) {
this.cannotConnect = true;
return;
}
this.error = translateErr(err);
this.loading = false;
return;
} finally {
// Clear url if we have a auth callback in url.
if (location.search.includes("auth_callback=1")) {
history.replaceState(null, "", location.pathname);
}
}
let conn: Connection;
try {
conn = await createConnection({ auth });
} catch (err) {
// In case of saved tokens, silently solve problems.
if (init === "saved-tokens") {
if (err === ERR_CANNOT_CONNECT) {
this.cannotConnect = true;
} else if (err === ERR_INVALID_AUTH) {
saveTokens(null);
}
} else {
this.error = translateErr(err);
}
return;
} finally {
this.loading = false;
}
this.auth = auth;
this.connection = conn;
this.castManager!.auth = auth;
}
private async _handleLogout() {
try {
saveTokens(null);
location.reload();
} catch (err) {
alert("Unable to log out!");
}
}
static get styles(): CSSResult {
return css`
.card-content a {
color: var(--primary-color);
}
.card-actions a {
text-decoration: none;
}
.error {
color: red;
font-weight: bold;
}
.error a {
color: darkred;
}
mwc-button iron-icon {
margin-left: 8px;
}
.spacer {
flex: 1;
}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-connect": HcConnect;
}
}
+166
View File
@@ -0,0 +1,166 @@
import {
customElement,
LitElement,
TemplateResult,
html,
CSSResult,
css,
property,
} from "lit-element";
import {
Auth,
Connection,
HassUser,
getUser,
} from "home-assistant-js-websocket";
import "../../../../src/components/ha-card";
@customElement("hc-layout")
class HcLayout extends LitElement {
@property() public subtitle?: string | undefined;
@property() public auth?: Auth;
@property() public connection?: Connection;
@property() public user?: HassUser;
protected render(): TemplateResult | void {
return html`
<ha-card>
<div class="layout">
<img class="hero" src="/images/google-nest-hub.png" />
<div class="card-header">
Home Assistant Cast${this.subtitle ? ` ${this.subtitle}` : ""}
${this.auth
? html`
<div class="subtitle">
<a href=${this.auth.data.hassUrl} target="_blank"
>${this.auth.data.hassUrl.substr(
this.auth.data.hassUrl.indexOf("//") + 2
)}</a
>
${this.user
? html`
${this.user.name}
`
: ""}
</div>
`
: ""}
</div>
<slot></slot>
</div>
</ha-card>
<div class="footer">
<a href="./faq.html">Frequently Asked Questions</a> Found a bug? Let
@balloob know
<!-- <a
href="https://github.com/home-assistant/home-assistant-polymer/issues"
target="_blank"
>Let us know!</a
> -->
</div>
`;
}
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
if (this.connection) {
getUser(this.connection).then((user) => {
this.user = user;
});
}
}
static get styles(): CSSResult {
return css`
:host {
display: flex;
min-height: 100%;
align-items: center;
justify-content: center;
flex-direction: column;
}
ha-card {
display: flex;
width: 100%;
max-width: 500px;
}
.layout {
display: flex;
flex-direction: column;
}
.card-header {
color: var(--ha-card-header-color, --primary-text-color);
font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px);
letter-spacing: -0.012em;
line-height: 32px;
padding: 24px 16px 16px;
display: block;
}
.subtitle {
font-size: 14px;
color: var(--secondary-text-color);
line-height: initial;
}
.subtitle a {
color: var(--secondary-text-color);
}
:host ::slotted(.card-content:not(:first-child)),
slot:not(:first-child)::slotted(.card-content) {
padding-top: 0px;
margin-top: -8px;
}
:host ::slotted(.section-header) {
font-weight: 500;
padding: 4px 16px;
text-transform: uppercase;
}
:host ::slotted(.card-content) {
padding: 16px;
flex: 1;
}
:host ::slotted(.card-actions) {
border-top: 1px solid #e8e8e8;
padding: 5px 16px;
display: flex;
}
img {
width: 100%;
}
.footer {
text-align: center;
font-size: 12px;
padding: 8px 0 24px;
color: var(--secondary-text-color);
}
.footer a {
color: var(--secondary-text-color);
}
@media all and (max-width: 500px) {
:host {
justify-content: flex-start;
min-height: 90%;
margin-bottom: 30px;
}
}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-layout": HcLayout;
}
}
+1
View File
@@ -0,0 +1 @@
export const castContext = cast.framework.CastReceiverContext.getInstance();
@@ -0,0 +1,141 @@
import { Entity, convertEntities } from "../../../../src/fake_data/entity";
export const castDemoEntities: () => Entity[] = () =>
convertEntities({
"light.reading_light": {
entity_id: "light.reading_light",
state: "on",
attributes: {
friendly_name: "Reading Light",
},
},
"light.ceiling": {
entity_id: "light.ceiling",
state: "on",
attributes: {
friendly_name: "Ceiling lights",
},
},
"light.standing_lamp": {
entity_id: "light.standing_lamp",
state: "off",
attributes: {
friendly_name: "Standing Lamp",
},
},
"sensor.temperature_inside": {
entity_id: "sensor.temperature_inside",
state: "22.7",
attributes: {
battery_level: 78,
unit_of_measurement: "\u00b0C",
friendly_name: "Inside",
device_class: "temperature",
},
},
"sensor.temperature_outside": {
entity_id: "sensor.temperature_outside",
state: "31.4",
attributes: {
battery_level: 53,
unit_of_measurement: "\u00b0C",
friendly_name: "Outside",
device_class: "temperature",
},
},
"person.arsaboo": {
entity_id: "person.arsaboo",
state: "not_home",
attributes: {
radius: 50,
friendly_name: "Arsaboo",
latitude: 52.3579946,
longitude: 4.8664597,
entity_picture: "/images/arsaboo.jpg",
},
},
"person.melody": {
entity_id: "person.melody",
state: "not_home",
attributes: {
radius: 50,
friendly_name: "Melody",
latitude: 52.3408927,
longitude: 4.8711073,
entity_picture: "/images/melody.jpg",
},
},
"zone.home": {
entity_id: "zone.home",
state: "zoning",
attributes: {
hidden: true,
latitude: 52.3631339,
longitude: 4.8903147,
radius: 100,
friendly_name: "Home",
icon: "hass:home",
},
},
"input_number.harmonyvolume": {
entity_id: "input_number.harmonyvolume",
state: "18.0",
attributes: {
initial: 30,
min: 1,
max: 100,
step: 1,
mode: "slider",
friendly_name: "Volume",
icon: "hass:volume-high",
},
},
"climate.upstairs": {
entity_id: "climate.upstairs",
state: "auto",
attributes: {
current_temperature: 24,
min_temp: 15,
max_temp: 30,
temperature: null,
target_temp_high: 26,
target_temp_low: 18,
fan_mode: "auto",
fan_modes: ["auto", "on"],
hvac_modes: ["auto", "cool", "heat", "off"],
aux_heat: "off",
actual_humidity: 30,
fan: "on",
operation: "fan",
fan_min_on_time: 10,
friendly_name: "Upstairs",
supported_features: 27,
preset_mode: "away",
preset_modes: ["home", "away", "eco", "sleep"],
},
},
"climate.downstairs": {
entity_id: "climate.downstairs",
state: "auto",
attributes: {
current_temperature: 22,
min_temp: 15,
max_temp: 30,
temperature: null,
target_temp_high: 24,
target_temp_low: 20,
fan_mode: "auto",
fan_modes: ["auto", "on"],
hvac_modes: ["auto", "cool", "heat", "off"],
aux_heat: "off",
actual_humidity: 30,
fan: "on",
operation: "fan",
fan_min_on_time: 10,
friendly_name: "Downstairs",
supported_features: 27,
preset_mode: "home",
preset_modes: ["home", "away", "eco", "sleep"],
},
},
});
@@ -0,0 +1,93 @@
import {
LovelaceConfig,
LovelaceCardConfig,
} from "../../../../src/data/lovelace";
import { castContext } from "../cast_context";
export const castDemoLovelace: () => LovelaceConfig = () => {
const touchSupported = castContext.getDeviceCapabilities()
.touch_input_supported;
return {
views: [
{
path: "overview",
cards: [
{
type: "markdown",
title: "Home Assistant Cast",
content: `With Home Assistant you can easily create interfaces (just like this one) which can be shown on Chromecast devices connected to TVs or Google Assistant devices with a screen.${
touchSupported
? "\n\nYou are able to interact with this demo using the touch screen."
: "\n\nOn a Google Nest Hub you are able to interact with Home Assistant Cast via the touch screen."
}`,
},
{
type: touchSupported ? "entities" : "glance",
title: "Living Room",
entities: [
"light.reading_light",
"light.ceiling",
"light.standing_lamp",
"input_number.harmonyvolume",
],
},
{
cards: [
{
graph: "line",
type: "sensor",
entity: "sensor.temperature_inside",
},
{
graph: "line",
type: "sensor",
entity: "sensor.temperature_outside",
},
],
type: "horizontal-stack",
},
{
type: "map",
entities: ["person.arsaboo", "person.melody", "zone.home"],
aspect_ratio: touchSupported ? "16:9.3" : "16:11",
},
touchSupported && {
type: "entities",
entities: [
{
type: "weblink",
url: "/lovelace/climate",
name: "Climate controls",
icon: "hass:arrow-right",
},
],
},
].filter(Boolean) as LovelaceCardConfig[],
},
{
path: "climate",
cards: [
{
type: "thermostat",
entity: "climate.downstairs",
},
{
type: "entities",
entities: [
{
type: "weblink",
url: "/lovelace/overview",
name: "Back",
icon: "hass:arrow-left",
},
],
},
{
type: "thermostat",
entity: "climate.upstairs",
},
],
},
],
};
};
+42
View File
@@ -0,0 +1,42 @@
import "../../../src/resources/custom-card-support";
import { castContext } from "./cast_context";
import { ReceivedMessage } from "./types";
import { HassMessage } from "../../../src/cast/receiver_messages";
import { HcMain } from "./layout/hc-main";
import { CAST_NS } from "../../../src/cast/const";
const controller = new HcMain();
document.body.append(controller);
const options = new cast.framework.CastReceiverOptions();
options.disableIdleTimeout = true;
options.customNamespaces = {
// @ts-ignore
[CAST_NS]: cast.framework.system.MessageType.JSON,
};
// The docs say we need to set options.touchScreenOptimizeApp = true
// https://developers.google.com/cast/docs/caf_receiver/customize_ui#accessing_ui_controls
// This doesn't work.
// @ts-ignore
options.touchScreenOptimizedApp = true;
// The class reference say we can set a uiConfig in options to set it
// https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.CastReceiverOptions#uiConfig
// This doesn't work either.
// @ts-ignore
options.uiConfig = new cast.framework.ui.UiConfig();
// @ts-ignore
options.uiConfig.touchScreenOptimizedApp = true;
castContext.addCustomMessageListener(
CAST_NS,
// @ts-ignore
(ev: ReceivedMessage<HassMessage>) => {
const msg = ev.data;
msg.senderId = ev.senderId;
controller.processIncomingMessage(msg);
}
);
castContext.start(options);
+56
View File
@@ -0,0 +1,56 @@
import { HassElement } from "../../../../src/state/hass-element";
import "./hc-lovelace";
import { customElement, TemplateResult, html, property } from "lit-element";
import {
MockHomeAssistant,
provideHass,
} from "../../../../src/fake_data/provide_hass";
import { HomeAssistant } from "../../../../src/types";
import { LovelaceConfig } from "../../../../src/data/lovelace";
import { castDemoEntities } from "../demo/cast-demo-entities";
import { castDemoLovelace } from "../demo/cast-demo-lovelace";
import { mockHistory } from "../../../../demo/src/stubs/history";
@customElement("hc-demo")
class HcDemo extends HassElement {
@property() public lovelacePath!: string;
@property() private _lovelaceConfig?: LovelaceConfig;
protected render(): TemplateResult | void {
if (!this._lovelaceConfig) {
return html``;
}
return html`
<hc-lovelace
.hass=${this.hass}
.lovelaceConfig=${this._lovelaceConfig}
.viewPath=${this.lovelacePath}
></hc-lovelace>
`;
}
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
this._initialize();
}
private async _initialize() {
const initial: Partial<MockHomeAssistant> = {
// Override updateHass so that the correct hass lifecycle methods are called
updateHass: (hassUpdate: Partial<HomeAssistant>) =>
this._updateHass(hassUpdate),
};
const hass = (this.hass = provideHass(this, initial));
mockHistory(hass);
hass.addEntities(castDemoEntities());
this._lovelaceConfig = castDemoLovelace();
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-demo": HcDemo;
}
}
@@ -0,0 +1,66 @@
import {
LitElement,
TemplateResult,
html,
customElement,
CSSResult,
css,
property,
} from "lit-element";
import { HomeAssistant } from "../../../../src/types";
@customElement("hc-launch-screen")
class HcLaunchScreen extends LitElement {
@property() public hass?: HomeAssistant;
@property() public error?: string;
protected render(): TemplateResult | void {
return html`
<div class="container">
<img
src="https://www.home-assistant.io/images/blog/2018-09-thinking-big/social.png"
/>
<div class="status">
${this.hass ? "Connected" : "Not Connected"}
${this.error
? html`
<p>Error: ${this.error}</p>
`
: ""}
</div>
</div>
`;
}
static get styles(): CSSResult {
return css`
:host {
display: block;
height: 100vh;
padding-top: 64px;
background-color: white;
font-size: 24px;
}
.container {
display: flex;
flex-direction: column;
text-align: center;
}
img {
width: 717px;
height: 376px;
display: block;
margin: 0 auto;
}
.status {
padding-right: 54px;
}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-launch-screen": HcLaunchScreen;
}
}
+119
View File
@@ -0,0 +1,119 @@
import {
LitElement,
TemplateResult,
html,
customElement,
CSSResult,
css,
property,
} from "lit-element";
import { LovelaceConfig } from "../../../../src/data/lovelace";
import "../../../../src/panels/lovelace/views/hui-view";
import "../../../../src/panels/lovelace/views/hui-panel-view";
import { HomeAssistant } from "../../../../src/types";
import { Lovelace } from "../../../../src/panels/lovelace/types";
import "./hc-launch-screen";
@customElement("hc-lovelace")
class HcLovelace extends LitElement {
@property() public hass!: HomeAssistant;
@property() public lovelaceConfig!: LovelaceConfig;
@property() public viewPath?: string | number;
protected render(): TemplateResult | void {
const index = this._viewIndex;
if (index === undefined) {
return html`
<hc-launch-screen
.hass=${this.hass}
.error=${`Unable to find a view with path ${this.viewPath}`}
></hc-launch-screen>
`;
}
const lovelace: Lovelace = {
config: this.lovelaceConfig,
editMode: false,
enableFullEditMode: () => undefined,
mode: "storage",
language: "en",
saveConfig: async () => undefined,
deleteConfig: async () => undefined,
setEditMode: () => undefined,
};
return this.lovelaceConfig.views[index].panel
? html`
<hui-panel-view
.hass=${this.hass}
.config=${this.lovelaceConfig.views[index]}
></hui-panel-view>
`
: html`
<hui-view
.hass=${this.hass}
.lovelace=${lovelace}
.index=${index}
columns="2"
></hui-view>
`;
}
protected updated(changedProps) {
super.updated(changedProps);
if (changedProps.has("viewPath") || changedProps.has("lovelaceConfig")) {
const index = this._viewIndex;
if (index !== undefined) {
const configBackground =
this.lovelaceConfig.views[index].background ||
this.lovelaceConfig.background;
if (configBackground) {
(this.shadowRoot!.querySelector(
"hui-view, hui-panel-view"
) as HTMLElement)!.style.setProperty(
"--lovelace-background",
configBackground
);
}
}
}
}
private get _viewIndex() {
const selectedView = this.viewPath;
const selectedViewInt = parseInt(selectedView as string, 10);
for (let i = 0; i < this.lovelaceConfig.views.length; i++) {
if (
this.lovelaceConfig.views[i].path === selectedView ||
i === selectedViewInt
) {
return i;
}
}
return undefined;
}
static get styles(): CSSResult {
return css`
:host {
min-height: 100vh;
display: flex;
flex-direction: column;
box-sizing: border-box;
background: var(--primary-background-color);
}
:host > * {
flex: 1;
}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-lovelace": HcLovelace;
}
}
+250
View File
@@ -0,0 +1,250 @@
import {
getAuth,
createConnection,
UnsubscribeFunc,
} from "home-assistant-js-websocket";
import { customElement, TemplateResult, html, property } from "lit-element";
import { HassElement } from "../../../../src/state/hass-element";
import {
HassMessage,
ConnectMessage,
ShowLovelaceViewMessage,
GetStatusMessage,
ShowDemoMessage,
} from "../../../../src/cast/receiver_messages";
import {
LovelaceConfig,
getLovelaceCollection,
} from "../../../../src/data/lovelace";
import "./hc-launch-screen";
import { castContext } from "../cast_context";
import { CAST_NS } from "../../../../src/cast/const";
import { ReceiverStatusMessage } from "../../../../src/cast/sender_messages";
import { loadLovelaceResources } from "../../../../src/panels/lovelace/common/load-resources";
import { isNavigationClick } from "../../../../src/common/dom/is-navigation-click";
@customElement("hc-main")
export class HcMain extends HassElement {
@property() private _showDemo = false;
@property() private _lovelaceConfig?: LovelaceConfig;
@property() private _lovelacePath: string | number | null = null;
@property() private _error?: string;
private _unsubLovelace?: UnsubscribeFunc;
public processIncomingMessage(msg: HassMessage) {
if (msg.type === "connect") {
this._handleConnectMessage(msg);
} else if (msg.type === "show_lovelace_view") {
this._handleShowLovelaceMessage(msg);
} else if (msg.type === "get_status") {
this._handleGetStatusMessage(msg);
} else if (msg.type === "show_demo") {
this._handleShowDemo(msg);
} else {
// tslint:disable-next-line: no-console
console.warn("unknown msg type", msg);
}
}
protected render(): TemplateResult | void {
if (this._showDemo) {
return html`
<hc-demo .lovelacePath=${this._lovelacePath}></hc-demo>
`;
}
if (
!this._lovelaceConfig ||
this._lovelacePath === null ||
// Guard against part of HA not being loaded yet.
(this.hass &&
(!this.hass.states || !this.hass.config || !this.hass.services))
) {
return html`
<hc-launch-screen
.hass=${this.hass}
.error=${this._error}
></hc-launch-screen>
`;
}
return html`
<hc-lovelace
.hass=${this.hass}
.lovelaceConfig=${this._lovelaceConfig}
.viewPath=${this._lovelacePath}
></hc-lovelace>
`;
}
protected firstUpdated(changedProps) {
super.firstUpdated(changedProps);
import("../second-load");
window.addEventListener("location-changed", () => {
if (location.pathname.startsWith("/lovelace/")) {
this._lovelacePath = location.pathname.substr(10);
this._sendStatus();
}
});
document.body.addEventListener("click", (ev) => {
const href = isNavigationClick(ev);
if (href && href.startsWith("/lovelace/")) {
this._lovelacePath = href.substr(10);
this._sendStatus();
}
});
}
private _sendStatus(senderId?: string) {
const status: ReceiverStatusMessage = {
type: "receiver_status",
connected: !!this.hass,
showDemo: this._showDemo,
};
if (this.hass) {
status.hassUrl = this.hass.auth.data.hassUrl;
status.lovelacePath = this._lovelacePath!;
}
if (senderId) {
this.sendMessage(senderId, status);
} else {
for (const sender of castContext.getSenders()) {
this.sendMessage(sender.id, status);
}
}
}
private async _handleGetStatusMessage(msg: GetStatusMessage) {
this._sendStatus(msg.senderId!);
}
private async _handleConnectMessage(msg: ConnectMessage) {
let auth;
try {
auth = await getAuth({
loadTokens: async () => ({
hassUrl: msg.hassUrl,
clientId: msg.clientId,
refresh_token: msg.refreshToken,
access_token: "",
expires: 0,
expires_in: 0,
}),
});
} catch (err) {
this._error = this._getErrorMessage(err);
return;
}
let connection;
try {
connection = await createConnection({ auth });
} catch (err) {
this._error = this._getErrorMessage(err);
return;
}
if (this.hass) {
this.hass.connection.close();
}
this.initializeHass(auth, connection);
this._error = undefined;
this._sendStatus();
}
private async _handleShowLovelaceMessage(msg: ShowLovelaceViewMessage) {
// We should not get this command before we are connected.
// Means a client got out of sync. Let's send status to them.
if (!this.hass) {
this._sendStatus(msg.senderId!);
this._error = "Cannot show Lovelace because we're not connected.";
return;
}
if (!this._unsubLovelace) {
const llColl = getLovelaceCollection(this.hass!.connection);
// We first do a single refresh because we need to check if there is LL
// configuration.
try {
await llColl.refresh();
this._unsubLovelace = llColl.subscribe((lovelaceConfig) =>
this._handleNewLovelaceConfig(lovelaceConfig)
);
} catch (err) {
// Generate a Lovelace config.
this._unsubLovelace = () => undefined;
const { generateLovelaceConfigFromHass } = await import(
"../../../../src/panels/lovelace/common/generate-lovelace-config"
);
this._handleNewLovelaceConfig(
await generateLovelaceConfigFromHass(this.hass!)
);
}
}
this._showDemo = false;
this._lovelacePath = msg.viewPath;
if (castContext.getDeviceCapabilities().touch_input_supported) {
this._breakFree();
}
this._sendStatus();
}
private _handleNewLovelaceConfig(lovelaceConfig: LovelaceConfig) {
castContext.setApplicationState(lovelaceConfig.title!);
this._lovelaceConfig = lovelaceConfig;
if (lovelaceConfig.resources) {
loadLovelaceResources(
lovelaceConfig.resources,
this.hass!.auth.data.hassUrl
);
}
}
private _handleShowDemo(_msg: ShowDemoMessage) {
import("./hc-demo").then(() => {
this._showDemo = true;
this._lovelacePath = "overview";
this._sendStatus();
if (castContext.getDeviceCapabilities().touch_input_supported) {
this._breakFree();
}
});
}
private _getErrorMessage(error: number): string {
switch (error) {
case 1:
return "Unable to connect to the Home Assistant websocket API.";
case 2:
return "The supplied authentication is invalid.";
case 3:
return "The connection to Home Assistant was lost.";
case 4:
return "Missing hassUrl. This is required.";
case 5:
return "Home Assistant needs to be served over https:// to use with Home Assistant Cast.";
default:
return "Unknown Error";
}
}
private _breakFree() {
const controls = document.body.querySelector("touch-controls");
if (controls) {
controls.remove();
}
document.body.setAttribute("style", "overflow-y: auto !important");
}
private sendMessage(senderId: string, response: any) {
castContext.sendCustomMessage(CAST_NS, senderId, response);
}
}
declare global {
interface HTMLElementTagNameMap {
"hc-main": HcMain;
}
}
+5
View File
@@ -0,0 +1,5 @@
import "web-animations-js/web-animations-next-lite.min";
import "../../../src/resources/hass-icons";
import "../../../src/resources/roboto";
import "../../../src/components/ha-iconset-svg";
import "./layout/hc-lovelace";
+6
View File
@@ -0,0 +1,6 @@
export interface ReceivedMessage<T> {
gj: boolean;
data: T;
senderId: string;
type: "message";
}
+11
View File
@@ -0,0 +1,11 @@
const { createCastConfig } = require("../build-scripts/webpack.js");
const { isProdBuild } = require("../build-scripts/env.js");
// File just used for stats builds
const latestBuild = true;
module.exports = createCastConfig({
isProdBuild,
latestBuild,
});
+18
View File
@@ -0,0 +1,18 @@
/*
Cache-Control: public, max-age: 0, s-maxage=3600, must-revalidate
Content-Security-Policy: form-action https:
Referrer-Policy: no-referrer-when-downgrade
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
/api/*
Cache-Control: public, max-age: 604800, s-maxage=604800
/assets/*
Cache-Control: public, max-age: 604800, s-maxage=604800
/frontend_es5/*
Cache-Control: public, max-age: 604800, s-maxage=604800
/frontend_latest/*
Cache-Control: public, max-age: 604800, s-maxage=604800
Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

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