שלום @sivan22 ו@חוקר
אני רוצה להפעיל כמה התקנים ביחד מצאתי איזה תיעוד על זה כמו שהבאת פה
אני מכניס לימות את הקוד הבא: כמובן עם הפרמטים ב ID ובKAY. הנכונים.
וזה לא עובד לי, ניסתי מלא סוגי נסיונות.
יש לי תחושה שהשורה 5 לא כתובה נכון.
מה הבעיה?
תודהה
type=api
api_url_post=yes
api_link=https://shelly-888-eu.shelly.cloud/device/relay/bulk_control
api_add_0=devices=[{"id":"888","channel":0,"turn":"on"},{"id":"999","channel":0,"turn":"on"}]
api_add_1=auth_key=aaa
//לא להגדיר
api_call_id_send=no
api_phone_send=no
api_did_send=no
api_extension_send=no
api_enter_id_send=no
api_enter_id_name_send=no
api_time_send=no
say_api_answer=yes
api_end_goto=/3
title=777
שאני שולח דרך curl
זה עובד לי
זה מה שאני שולח
curl --location 'https://shelly-30-eu.shelly.cloud/device/relay/bulk_control' \
--form 'auth_key="9992189942022E019E64CB5ABAE2BA5E93B6D213"' \
--form 'devices="[{\"id\":\"888\",\"channel\":\"0\"},{\"id\":\"777\",\"channel\":\"0\"}]"' \
--form 'turn="on"'