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

Time to reach low tariff or time needed to wait for low tariff #24

Closed
simacekjakub opened this issue Dec 9, 2024 · 11 comments
Closed

Comments

@simacekjakub
Copy link

Hi,

you say, there is a possibility to see "time to reach low tariff or time needed to wait for low tariff". How do I see that? I don't see any way how to do it. Should I make any sensor for it?

Thank you

@mazzy89
Copy link
Collaborator

mazzy89 commented Dec 10, 2024

The sensor exposes two information:

  • as state HDO čas do nízkého tarifu
  • as attribute HDO čas do vysokého tarifu

@Dejmal69
Copy link

Dejmal69 commented Jan 4, 2025

And where can I find it? I don't have anything like that there and I never have.

@mazzy89
Copy link
Collaborator

mazzy89 commented Jan 4, 2025

Post screenshot of your HDO sensor from Home Assistant

@Dejmal69
Copy link

Dejmal69 commented Jan 4, 2025

HDO Entity

@Dejmal69
Copy link

Dejmal69 commented Jan 4, 2025

That's the only sensor I have.

@mazzy89
Copy link
Collaborator

mazzy89 commented Jan 4, 2025

Please post a better screenshot. it is cut and it is not visible. A full screen picture would be better.

@mazzy89
Copy link
Collaborator

mazzy89 commented Jan 4, 2025

What you are showing is the binary sensor. the HDO sensor that reports the time is named sensor.hdo_cas_do_nizkeho_tarifu. Please check if you have this sensor. if you do not then you have not configured correctly.

@Dejmal69
Copy link

Dejmal69 commented Jan 4, 2025

As I wrote. I don't have any other HDO sensors from this integration. What is the correct configuration for this attribut?

@mazzy89
Copy link
Collaborator

mazzy89 commented Jan 4, 2025

Instead of configuring a binary_sensor, you need to configure a sensor. Replace binary_sensor with sensor in your configuration YAML. In this way a sensor will be created with the attributes you need.

@Dejmal69
Copy link

Dejmal69 commented Jan 4, 2025

Thanks for You. It's a shame that this isn't mentioned in the documentation. How is a user who doesn't understand the integration code supposed to know this?

@mazzy89
Copy link
Collaborator

mazzy89 commented Jan 4, 2025

The configuration shows as an example the case of the binary_sensor only. For the more navigated people on HA which know the mechanism of sensor and binary sensor creation, looking at the code of this custom component is possible to grasp the mechanism of creation. For the others, it is important to rely on the documentation that in this case lack to include an example to create a sensor. It would be definitely a good addition. @Dejmal69 contributions are welcome. Feel free to open a Pull Request to include in the README the example you would like to see.

@mazzy89 mazzy89 closed this as completed Jan 4, 2025
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

3 participants