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

o365.new_task not recognised as a valid service #135

Closed
wigster opened this issue Apr 26, 2023 · 3 comments
Closed

o365.new_task not recognised as a valid service #135

wigster opened this issue Apr 26, 2023 · 3 comments

Comments

@wigster
Copy link

wigster commented Apr 26, 2023

All of a sudden, in HA 2023.04, the repair wizard is complaining that o365.new_task is not a valid service

The automation "Notify: Clean Devices TODO" (automation.notify_clean_devices) has an action that calls an unknown service: o365.new_task.

This error prevents the automation from running correctly. Maybe this service is no longer available, or perhaps a typo caused it.

This is the bit of the automation which caused this:

          - service: o365.new_task
            data:
              subject: Run dishwasher cleaning cycle
              due: "{{now().date()+timedelta(days=1)}}"
              reminder: |-
                {% if now()<today_at('19:00') %}
                  {{today_at('19:00')}}
                {%else%}
                  {{today_at('19:00')+timedelta(days=1)}}
                {%endif%}
            target:
              entity_id: sensor.house_to_do_o365_name

and indeed trying to create a new task in dev tools/services reports that o365.new_task is not a known service.

sensor.house_to_do_o365_name is available and populated properly.

@RogerSelwyn
Copy link
Owner

I assume you have also upgraded to o365 4.2.9 or higher. Did you read about the breaking change in there?

https://github.com/RogerSelwyn/O365-HomeAssistant/releases/tag/v4.2.9

@wigster
Copy link
Author

wigster commented Apr 26, 2023

I have of course missed that breaking change. It is now fixed. Thanks!

@wigster wigster closed this as completed Apr 26, 2023
@the-smart-home-maker
Copy link

the-smart-home-maker commented Oct 31, 2023

I assume you have also upgraded to o365 4.2.9 or higher. Did you read about the breaking change in there?

https://github.com/RogerSelwyn/O365-HomeAssistant/releases/tag/v4.2.9

Very good to know! I was banging my head around this. Could not understand why I won't see the tasks services. I think it would be very good to include the attribute enable_update in the tasks section in the example YAML config in your documentation.

EDIT: I created a pull request for the update of the documentation

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