Skip to content

Conversation

@adityashibu
Copy link
Member

This pull request includes significant changes to the backend automation and device management system. The updates include refactoring existing functions, adding new automation functionalities, and cleaning up debug print statements.

Automation Enhancements:

  • backend/automations.json: Updated the structure to include multiple automation entries with specific attributes such as id, name, device_id, triggers, and status.
  • backend/automations.py: Added functions to load, update, add, delete, and edit automation rules, and implemented an asynchronous scheduler to trigger automations at specified times.

Device Management Improvements:

  • backend/devices_json.py: Removed unused functions related to device timers, cleaned up debug print statements, and updated functions to handle device status changes more efficiently. [1] [2] [3] [4] [5]

API Enhancements:

  • backend/fastAPI.py: Integrated new automation functions into the FastAPI endpoints, added new endpoints for managing automations, and cleaned up imports and middleware setup. [1] [2] [3] [4] [5] [6]

Testing Updates:

adityashibu and others added 26 commits March 12, 2025 07:48
@adityashibu adityashibu requested a review from david-g-f March 15, 2025 18:43
Copy link
Contributor

@david-g-f david-g-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@adityashibu adityashibu merged commit 41a53b3 into PowerHouse-Project:main Mar 15, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants