Repository navigation
Add CO2 measurement and control capabilities - #2
Merged
Merged
Conversation
… limits, to the SwegonCasa driver. Update related enums and settings in the application.
Add CO2 measurement and control capabilities
… SwegonCasa driver. Implement triggers for temperature and ventilation level changes, and register new action and condition cards for improved control. Update localization files for additional terms.
…mate mode conditions to improve clarity and accuracy.
…e control in app.json; update build script in package.json and output directory in tsconfig.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Feature/add temperature cards
…guration - Updated TypeScript and ESLint dependencies in package.json for better compatibility and features. - Modified ESLint configuration to extend from 'athom/homey-app' and added .eslintrc.js to ignore itself. - Enhanced error handling in SwegonCasa driver and SwegonClient by adding catch blocks to promise-based methods. - Updated app.ts to standardize temperature and ventilation type references. - Added new entries to .eslintignore for better linting control.
…nsistency - Updated variable names from `temperatureType` and `ventilationType` to `temperature_type` and `ventilation_type` to align with naming conventions. - Ensured all related flow trigger and condition listeners reflect these changes for improved clarity and maintainability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Including home and awaylimits, to the SwegonCasa driver. Update related enums and settings in the application.
Tested on my own Homey and my Casa with CO2 sensor.
Note
Adds CO2 sensor capability and CO2 Home/Away limit settings, wiring them through the SwegonCasa driver, client, and enums/constants.
CO2readings; add/removemeasure_co2capability and update its value inMeasurementHandlerand ensure capability indevice.ts.co2HomeLimitandco2AwayLimitto device viaSettingsHandlerand set defaults indevice.ts.CO2measurements; read/emitCO2HomeLimitandCO2AwayLimitsettings inSwegonClientandSwegonConstants.measure_co2and its definition (.homeycompose/capabilities/measure_co2.json,app.json,driver.compose.json).co2HomeLimitandco2AwayLimit(app.json,driver.settings.compose.json).MeasurementType.CO2,SettingType.CO2HomeLimit,SettingType.CO2AwayLimit.SwegonObjectId.CO2,CO2HomeLimit,CO2AwayLimit; update subscriptions.Written by Cursor Bugbot for commit bd51d20. This will update automatically on new commits. Configure here.