This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| available () { | |
| command -v $1 >/dev/null 2>&1 | |
| } | |
| # Make sure we have wget or curl | |
| if available wget; then | |
| SILENT_DL="wget -qO-" | |
| LOUD_DL="wget" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Broadlink.yaml | |
| #Examples for your Configuration.yaml | |
| #switch: | |
| - platform: broadlink | |
| host: 192.168.1.66 | |
| mac: '78:0f:77:18:20:43' | |
| type: rm2_pro_plus | |
| switches: | |
| tv: | |
| friendly_name: "Projector" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for state in states.sensor -%} | |
| {% if loop.first %} | |
| {% elif loop.last %} | |
| {% else %} | |
| {% endif %} | |
| {{- state.entity_id }}: | |
| friendly_name: '{{ state.attributes.friendly_name|replace("_"," ",)|title() if state.attributes.friendly_name is defined else state.name|replace("_"," ",)|title() }}' | |
| emulated_hue_hidden: {{state.attributes.emulated_hue_hidden if state.attributes.emulated_hue_hidden is defined else 'False' }} | |
| hidden: {{state.attributes.hidden if state.attributes.hidden is defined else "False"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {%- set find = "shenzhen_neo_electronics_co_ltd_water_leakage_detector" -%} | |
| {%- set replace = "boiler_water_leak_sensor" -%} | |
| {%- for item in states -%} | |
| {% if find in item.object_id %} | |
| hass-cli entity rename --name "{{ item.object_id.replace(find, replace).replace("_", " ")|title }}" {{ item.entity_id }} {{ item.entity_id.replace(find, replace) }} | |
| {%- endif -%} | |
| {%- endfor -%} |
OlderNewer