You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to create a empty scene and it works well when triggers and actions are empty. But I can't create a scene with assigned trigger.
Using this code:
Traceback (most recent call last):
File "/Users/slajob/git/dirigera_local/shortcut-somrig.py", line 24, in<module>
dirigera_hub.create_scene(info=Info(name="ha_dir-pla_test_test1_test2", icon=Icon.SCENES_CLEAN_SPARKLES), triggers=[trigger], actions=[action])
File "/Users/slajob/git/dirigera_local/venv/lib/python3.9/site-packages/dirigera/hub/hub.py", line 421, in create_scene
response_dict = self.post(
File "/Users/slajob/git/dirigera_local/venv/lib/python3.9/site-packages/dirigera/hub/hub.py", line 132, in post
response.raise_for_status()
File "/Users/slajob/git/dirigera_local/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://192.168.0.73:8443/v1/scenes/
{"error":"Error","message":"\"triggers[0]\" does not match any of the allowed types"}
Have you ever tried creating scene with trigger assigned?
The text was updated successfully, but these errors were encountered:
I tried to create a empty scene and it works well when triggers and actions are empty. But I can't create a scene with assigned trigger.
Using this code:
I getting error:
Have you ever tried creating scene with trigger assigned?
The text was updated successfully, but these errors were encountered: