/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/SmartHome/Hass/16_best_practices.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2022-06-20 03:20:18 UTC
  • Revision ID: csa@suren.me-20220620032018-xquk369l0ukymgaa
Home Assistant

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
GUI vs Scripting
 
2
================
 
3
 - It will be nightmare to manage manually all cryptic entity_id's in the large systems with multiple devices
 
4
    * GUI simplifies things a lot as required entities can be searched and selected
 
5
    * There is also a direct access to the code also in GUI (Edit in YAML)
 
6
 - Blue prints might be a good compromise which allows still to select sensors in GUI, but write the code outside
 
7
    * It will work well if we don't need to select way too many entities for the script
 
8
    * Even better if it can be reused multiple times
 
9
 - If potential blueprint involves many entities, it could make sense to split one blue print into several where
 
10
   each small blueprint interacts only with few entities.
 
11
 
 
12
 - To summarize GUIs are good for single actions (and complex things still can be edited as code from within GUI).
 
13
 Blue prints are efficient to implement complex, reusable code if it doesn't depend on many input entities.
 
14
 
 
15
 
 
16