Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer tools > Services no longer exists #173

Open
thomasssso opened this issue Nov 13, 2024 · 4 comments
Open

Developer tools > Services no longer exists #173

thomasssso opened this issue Nov 13, 2024 · 4 comments
Assignees

Comments

@thomasssso
Copy link

Trying to get the template to work. A small suggestion in the manual (perhaps more will follow)

In the documentation for the 'template sensor configuration' you refer to the developertools > services. This does no longer exist and has been replaces by developertools > actions.

background

Could you please update this in the manual?

@TheFes
Copy link
Owner

TheFes commented Nov 13, 2024

Ah, sure, I will change that in the documentation

@thomasssso
Copy link
Author

thomasssso commented Nov 14, 2024

Thanks for the quick reply. I am new to this and trying to get the code working. But this is quite a challenge. Seems that some updates have outdated your documentation. Just spend some hours getting the energy_Zero template to work. For future users please add that they can add the code to the configuration.yaml file (this is the easiest way) and the code for energy zero should look like this:

# Example configuration entry
template:
  - trigger:
      - trigger: time_pattern
        hours: "/1" #update every hour
      - trigger: homeassistant
        event: start #update during start of Homeassistant
    action:
      - action: energyzero.get_energy_prices
        data:
          incl_vat: false
          config_entry: 2cff44427073c9dbd7fe6b12df78d9ce # replace with the config entry for your entity
          start: "{{ today_at() - timedelta(days=1) }}"
          end: "{{ today_at() + timedelta(days=2) }}"
        response_variable: prices
    sensor:
      - unique_id: 79c470d8-4ccd-4f44-b3a2-e3d59d5dda8a
        name: "energieprijzen_zero"
        state: "{{ prices.prices }}"
        attributes:
          prices: "{{prices.prices}}"

hope this will help future users. I still don't have the system working perhaps more updates will follow and we can improve the documentation together.

@TheFes
Copy link
Owner

TheFes commented Nov 14, 2024

Sure, thanks for your improvements.
Also feel free to add them as PR directly.

@TheFes TheFes self-assigned this Nov 14, 2024
@TheFes
Copy link
Owner

TheFes commented Nov 14, 2024

I've made some changes. I'm not sure what you changed in the YAML for the template sensor, besides the comments explaining what the triggers do. I've added that as an alias to the trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants