Skip to content

DrumSlayers/homeassistant-blueprints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homeassistant-blueprints

Blueprints i made for my Home Assistant

AWTRIX Blueprints

Each of them can take multiples AWTRIX display as output.

AWTRIX - Linky

Consist of two page (one for last day kWh, one for last day cost) I am using myElectricalData entity provided via MQTT by myelectricaldata_import (It provides the cost via attributes)

Need icons 42453 & 53070 awtrix linky con awtrix linky cost

AWTRIX - Temp & Hum

Consist of two page (one for °c, one for % hum) Take simple temp & hum sensors as input

Need icons 5836 & 2423 awtrix temp awtrix hum

AWTRIX Naolib Transport Next Tram/Bus Display

Displays Naolib (Nantes) waiting times for a specific stop and for each lines you want on your Awtrix device.

Publish a topic per line awtrix (1)

Features:

  • 🚌 Multi-Page: Cycles through lines automatically (one page per line).
  • ⏱️ Smart Filter: Shows only the next bus for each destination.
  • 🌈 Visual Alerts: Rainbow text when bus is "Proche" (close).
  • ⚠️ Stale Data: Shows a red bar if data isn't updated for 2 minutes.
  • 🚊 Per Line Icon: JSON Configuration to set a specific icon for each transport lines/routes.

📋 How To Setup

1. Create the Sensor

You must add a command_line sensor to your configuration.yaml. Replace HAUB with your stop code (find it via https://open.tan.fr/ewp/arrets.json/).

command_line:
  - sensor:
      name: Naolib Haubans
      unique_id: naolib_haubans
      # Fetch JSON and transform array to object with keys "0", "1", etc.
      command: 'curl -s https://open.tan.fr/ewp/tempsattente.json/HAUB | python3 -c "import sys, json; print(json.dumps({str(i):x for i,x in enumerate(json.load(sys.stdin))}))"'
      value_template: "OK"
      scan_interval: 60
      json_attributes:
        - "0"
        - "1"
        - "2"
        - "3"
        - "4"
        - "5"
        - "6"
        - "7"
        - "8"
        - "9"
2. Reload & Configure
  1. Reload YAML configuration in Home Assistant.
  2. Create this automation from the blueprint.
  3. Select the sensor (e.g., sensor.naolib_haubans).
  4. Configure Line Icons (see below).
3. Icon Configuration (JSON)

In the "Line Icons" field, map your transport lines to Awtrix Icon IDs.

Example:

{
  "5": "ligne-5",
  "C3": "ligne-c3",
  "default": "1309"
}

I've joined the two icons i use for reference in the icon/ folder

About

Blueprints I created for HA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors