connected rest of the devices and functions and trigger api

This commit is contained in:
ashrafzarkanisala
2024-06-29 18:24:33 +03:00
parent 320afb0ca8
commit 043e8c1e2d
24 changed files with 630 additions and 162 deletions

View File

@ -45,7 +45,7 @@ class SceneApi {
static Future<bool> triggerScene(String sceneId) async {
try {
final response = await _httpService.post(
path: ApiEndpoints.triggerScene.replaceAll('{sceneUuid}', sceneId),
path: ApiEndpoints.triggerScene.replaceAll('{sceneId}', sceneId),
showServerMessage: false,
expectedResponseModel: (json) => json['success'],
);