PUN and PSV in Home Assistant (Italian Gas & Light Prices)

Hello all,

just a quick share of my project to implement custom cards in home assistant for GAS and light prices (reference prices from Italy).

https://blackwiz4rd.github.io/projects/2026-01-09-pun-psv-tracking/

I hope you can will use it in your project too! If you have any issue or doubt feel free to reach out.

1 Like

Hi, i am trying to use your configs and installed all the components (sensors, automations, scripts, templates) but i still do not understand how the templates work if the conditions are:

conditions:
  - condition: template
    value_template: ""
  - condition: template
    value_template: >
      

Do i miss something? And more, the .py scripts you say must be inside /config/scripts/ but i have inside the config the folder python_scripts. Must i rename that folder or the scripts must go in another folder called /config/scripts?

EDIT: Ok, solved all the doubts. I changed the sensors in command_line to refer to /config/python_scripts/ and the cards were populated in the right mode. Good work!