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
Please provide more detailed example #1
Comments
Same problem here, I do not understand how add this compent in the configuration file |
This isn't a component, it's a python script - to see how to use it in homeassistant please scroll down the README file to the section 'Example configuration.yaml entry' - it's pretty self-explanatory. The automation in that example runs the python script once a day, which creates/updates the countdown sensors. |
If I understood this correctly, for each reminder, I will have separate yaml file inside python_scripts folder? |
No, you just use an automation to run the script as many times as you need to create the number of sensors you need. Please see the example in the Readme |
@mf-social
|
Define 'type' of sensor? The sensor is 'registered' in the automation that runs the script. - service: python_script.date_countdown
data:
name: Our wedding
type: anniversary
date: 14/02/1994 |
I assumed, that this automation "register" sensors by its name right? |
Here is my automation example:
|
Do you have
Somewhere in your configuration.yaml? |
Yes, I have |
When you trigger the automation, any errors in the log? |
@stefancvetkovic - is this still a problem or have you sorted it? |
It’s not clear to me exactly how I define the birthdays... I see from the readme which fields you expect but what’s not clear to me is where I define these... Do they go in the configuration.yaml ?
The text was updated successfully, but these errors were encountered: