Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hass): entities name template configuration (#100)
* [WIP] [feat] Add ability to post more friendly names in HASS Hass names always have hyphens and underscored. Allow users to choose between the default and more friendly ones, which replaces symbols with space. * add more options for Friendly name * fix also payload during device discovery * add fibaro motion sensor * Remove motion sensor, hass devices * fix parameter on function * change the approach of defining this value (remove repetitions) * Update src/components/Settings.vue Co-authored-by: Daniel Lando <[email protected]> * Update src/components/Settings.vue Co-authored-by: Daniel Lando <[email protected]> * Update src/components/Settings.vue Co-authored-by: Daniel Lando <[email protected]> * add Default value * modify list of options * Modify list of options (once more) * add an extra option * fix missing comma on Vue * replace property key or name with label! as it resolves everything we look for * add underscore on default option * change customDevices payload.name, as has no valueId exposed * move valueId last makes the implementation clear. Also fix the line 552 in Gateway, which was by accident quoted * change id to labelId, as conflict with id * add new method for entity name * first changes to use entityTemplate * fix conflicts and make function cover all cases * add tooltip, even though is not working! just prepare work * add tooltip * fix linting issues * fix: template hint * fix: lint issues * change the commenf of function * fix comments of function * Update lib/Gateway.js * add autogen node name and also cover empty name * remove autogen name * add NodeID and rename NoneName placeholder * shorten placeholders * fix: fallback to node props in entity name * fix: use device class specific * revert changes and use new cfg.type and cfg.object_id values for customDevices * apply forgoten changes on Gateway * update UI comments * remove nodeName value from function getEntityName * add documentation * lint-fix Co-authored-by: V. Aretakis <[email protected]> Co-authored-by: Daniel Lando <[email protected]>
- Loading branch information