Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.8.14

- Added new widgets on `RenderWidget` enum

## 3.8.13

- Changed `destinyInformation` field in `AtsLoadingParamsFormInput` from nullable `List<AtsDestinyInformationInput>?` to non-nullable `List<AtsDestinyInformationInput>` with `@Default([])` to ensure it always defaults to an empty list.
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ lint:
.PHONY: test
test:
flutter test

.PHONY: tag
tag:
@git checkout main
@git pull
@git tag -a v$(VERSION) -m "Release v$(VERSION)"
@git push origin v$(VERSION)
@git checkout development
7 changes: 7 additions & 0 deletions lib/src/models/models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 41 additions & 13 deletions lib/src/models/src/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,91 @@ part of '../models.dart';

@JsonEnum(alwaysCreate: true)
enum RenderWidget {
/// Renders a Thermometer
/// Temperature display (°C)
@JsonValue('THERMOMETER')
thermometer,

/// Renders a Humidity display
/// Humidity display (%)
@JsonValue('HUMIDITY')
humidity,

/// Renders a Pressure display
/// Magnet sensor state display
@JsonValue('MAGNET_SENSOR')
magnetSensor,

/// Magnet sensor count display
@JsonValue('MAGNET_COUNT')
magnetCount,

/// Accelerometer display
@JsonValue('ACCELERATION')
accelerometer,

/// Atmospheric Pressure display (hPa)
@JsonValue('PRESSURE')
pressure,

/// Renders an Illuminance display
/// Illuminance display (lux)
@JsonValue('ILLUMINANCE')
illuminance,

/// Renders an Air Quality / CO2 display
/// Air Quality / CO2 display
@JsonValue('AIR_QUALITY')
airQuality,

/// Renders a Battery level display
/// Battery level display (%)
@JsonValue('BATTERY')
battery,

/// Renders a Link Quality (LQI) display
@JsonValue('LINK_QUALITY')
linkQuality,

/// Renders a read-only binary state indicator
/// On/Off state display
@JsonValue('BINARY_SENSOR')
binarySensor,

/// Renders a Switch
/// Presence indicator
@JsonValue('PRESENCE')
presence,

/// Presence count display
@JsonValue('PRESENCE_COUNT')
presenceCount,

/// Touch button state
@JsonValue('TOUCH')
touch,

/// Touch button count display
@JsonValue('TOUCH_COUNT')
touchCount,

/// On/Off switch control (toggable)
@JsonValue('SWITCH')
switch_,

/// Renders a Dimmer slider
/// Dimmer slider control (0-100%)
@JsonValue('DIMMER')
dimmer,

/// Renders a Color Temperature slider
@JsonValue('COLOR_TEMPERATURE')
colorTemperature,

/// Renders a Thermostat Setpoint slider
/// Setpoint control
@JsonValue('SETPOINT')
setpoint,

/// Renders a Fan Speed slider
/// Fan speed control (rpm)
@JsonValue('FAN_SPEED')
fanSpeed,

/// Renders an RGB/RGBW Color Picker
/// RBG Color Picker control
@JsonValue('COLOR_PICKER')
colorPicker,

/// Renders a Mode Selector (e.g. heat/cool/auto)
/// Renders a Mode Selector (list of modes, only one can be active)
@JsonValue('MODE_SELECTOR')
modeSelector,

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: Layrz API models for Dart/Flutter. This package contains the models
used by the Layrz API.
name: layrz_models
version: "3.8.13"
version: "3.8.14"
repository: https://github.com/goldenm-software/layrz_models

environment:
Expand Down
Loading