Skip to content

Instantly share code, notes, and snippets.

@DavidDeSloovere
DavidDeSloovere / readme.md
Last active December 20, 2024 21:33
Self executing Snowflakes as a JS module

Home Assistant

  • Create snowflakes.js under config\www folder.
  • Add content from the gist
    • Choose to run always (remove all below line 4),
    • Or by date (remove line 4, optionally editing the dates you want the snowflakes to trigger)
    • and save.
  • In HA, go to Configuration > Lovelace Dashboards > Resources.
  • Click 'Add Resources' and enter local/snowflakes.js (it's a JavaScript module)
  • Save it
  • Enjoy the holidays
@dlashua
dlashua / README.md
Created October 13, 2020 12:26
PyScript Candle Light Simulator

Use this in a Home Assistant Automation or Script to start a candle light effect on a bulb.

action:
  - service: pyscript.candle_light
    data:
      entity_id: light.living_overhead
      state: 'on' #use 'off' to stop the effect
      brightness: 12 #optional
 color_temp: 450 #optional