Skip to content

feat: add ThermostatBox component for temperature control and visuali…#2416

Draft
graememross wants to merge 14 commits intoGladysAssistant:masterfrom
graememross:tuya-mods
Draft

feat: add ThermostatBox component for temperature control and visuali…#2416
graememross wants to merge 14 commits intoGladysAssistant:masterfrom
graememross:tuya-mods

Conversation

@graememross
Copy link
Copy Markdown

…zation

  • Implemented ThermostatBox component with real-time data fetching and WebSocket support.
  • Added interactive handles for setting min, max, and target temperature setpoints.
  • Integrated ApexCharts for visual representation of temperature data.
  • Enhanced device feature handling for Tuya devices, including support for Boolean, Integer, Enum, and String types.
  • Updated device mapping and value transformation logic to accommodate new feature types.
  • Improved error handling and user feedback for device state updates.
  • Refactored related components and routes to include the new thermostat functionality.

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (forum) for testing before merging.
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.js) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

…zation

- Implemented ThermostatBox component with real-time data fetching and WebSocket support.
- Added interactive handles for setting min, max, and target temperature setpoints.
- Integrated ApexCharts for visual representation of temperature data.
- Enhanced device feature handling for Tuya devices, including support for Boolean, Integer, Enum, and String types.
- Updated device mapping and value transformation logic to accommodate new feature types.
- Improved error handling and user feedback for device state updates.
- Refactored related components and routes to include the new thermostat functionality.
@Pierre-Gilles
Copy link
Copy Markdown
Contributor

Hi @graememross and thanks for this PR! Let me know if you need help for the tests & cleaning the code :)

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.72%. Comparing base (9b9ae31) to head (e6627a6).
⚠️ Report is 59 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2416      +/-   ##
==========================================
- Coverage   98.72%   98.72%   -0.01%     
==========================================
  Files         952      988      +36     
  Lines       16653    17144     +491     
==========================================
+ Hits        16441    16925     +484     
- Misses        212      219       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stale
Copy link
Copy Markdown

stale bot commented Apr 11, 2026

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants