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

Calendar get_events not working #1683

Closed
jq-yeraz opened this issue Nov 6, 2024 · 2 comments
Closed

Calendar get_events not working #1683

jq-yeraz opened this issue Nov 6, 2024 · 2 comments

Comments

@jq-yeraz
Copy link

jq-yeraz commented Nov 6, 2024

Describe the bug

In home assistant, I call the calendar.get_events action with the next data :

action: calendar.get_events
target:
  entity_id: calendar.poubelles
data:
  start_date_time: "2024-11-04 00:00:00"
  end_date_time: "2024-11-10 00:00:00"

The service return some result corresponding to the selected entity. Example :

calendar.poubelles:
  events:
    - start: "2024-11-06"
      end: "2024-11-07"
      summary: Poubelle jaune
      description: "

I use exactly the same parameters (with a JSONata expression) in node red with the action node manually triggered :

{ 
 "start_date_time" : "2024-11-04 00:00:00",
 "end_date_time":"2024-11-10 00:00:00"
}

Below the debug information :

object
  domain: "calendar"
  service: "get_events"
  target: object
    entity_id: "calendar.poubelles"
  data: object
    start_date_time: "2024-11-04 00:00:00"
    end_date_time: "2024-11-10 00:00:00"

The action return no events :

object
  _msgid: "5d094a76252cf720"
  payload: 1730924536853

I try with other format like "2024-11-04T00:00:00.000Z" but same result.

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Example Flow

No response

Environment Information

Version: 0.74.2

Home Assistant version: 2024.10.4
Companion version: 0.0.0

Node-RED version: 4.0.5
Docker: no
Add-on: no

Node.js version: v18.19.1 x64 linux
OS: Linux 6.8.12-2-pve x64

Additional context

No response

@zachowj
Copy link
Owner

zachowj commented Nov 7, 2024

Set an output property in the action node to output the results. This will allow you to use the result further in your flow.

image

@jq-yeraz
Copy link
Author

jq-yeraz commented Nov 8, 2024

Perfect... sorry for the inconvenience I don't find this information on the documentation.n

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