Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fragolinux/2bf4212f5f285132191ca685a01954e0 to your computer and use it in GitHub Desktop.
Latest Tasmota DEV version and changelog in Home Assistant card
a couple of sensors and a lovelace card to show latest tasmota info in HA
if you don't like the colors, change them in the CSS code at line 14 :-)
------------- in configuration.yaml -------------
# Sensors
sensor:
- platform: command_line
name: Tasmota Dev
command: 'curl -s https://raw.githubusercontent.com/arendst/Tasmota/development/tasmota/CHANGELOG.md|grep -m 1 "###"|cut -c 5-|cut -d\ -f1'
scan_interval: 3600
# note: the following sensor will not produce output in HA itself, but creates a local file which will be included in a custom lovelace card
- platform: command_line
name: Tasmota Notes
command: >-
curl -s https://raw.githubusercontent.com/arendst/Tasmota/development/tasmota/CHANGELOG.md|tail -n +5|sed '/^$/,$d'|sed 's/^- /<li>/g'|sed '1s/^/<pre style="word-wrap: break-word; white-space: pre-wrap; background-color: #202124; color: #BDC1C6; mix-blend-mode: difference;"><ul>\n/'|sed '$a</ul></pre>' | tee www/tasmota.html > /dev/null 2>&1
scan_interval: 3600
----------------- Lovelace Card -----------------
cards:
- content: >
## <ha-icon icon="mdi:car-esp"></ha-icon> Latest Tasmota DEV:&nbsp;<a
href="http://thehackbox.org/tasmota/" title="TheHackBox"
target="_blank">{{ states('sensor.tasmota_dev') }}</a>
type: markdown
- aspect_ratio: 75%
type: iframe
url: /local/tasmota.html
type: vertical-stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment