Skip to content

Instantly share code, notes, and snippets.

@cablesky
cablesky / clear-mqtt.yaml
Created September 4, 2022 16:34 — forked from techwithjake/clear-mqtt.yaml
clear-mqtt-from-HA
automation:
- alias: clear_mqtt_topic
initial_state: 'on'
trigger:
- platform: state
entity_id:
- input_text.clear_mqtt_topic
condition:
- condition: template
value_template: "{{ 'homeassistant/sensor/' in states.input_text.clear_mqtt_topic.state }}"
@cablesky
cablesky / .bashrc
Created September 4, 2022 16:34 — forked from techwithjake/.bashrc
PS1 BashRC
PS1='\[`[ $? = 0 ] && X=2 || X=1; tput setaf $X`\][$(whoami)@\h\[`tput sgr0`\]:$PWD/] $ '
################################################################
## Packages / Offline devices alert
################################################################
################################################
## Customize
################################################
homeassistant:
customize: