Skip to content

Commit

Permalink
[general] Testing fixes (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 25, 2024
1 parent 7d3b0dc commit 55567fe
Show file tree
Hide file tree
Showing 90 changed files with 4,292 additions and 2,595 deletions.
32 changes: 1 addition & 31 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 150
max_line_length = 120
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
Expand All @@ -14,9 +14,6 @@ ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = false

[*.blade.php]
ij_blade_keep_indents_on_empty_lines = false

[*.css]
ij_css_align_closing_brace_with_properties = false
ij_css_blank_lines_around_nested_selector = 1
Expand All @@ -41,10 +38,6 @@ ij_css_value_alignment = do_not_align
indent_size = 2
ij_gherkin_keep_indents_on_empty_lines = false

[*.haml]
indent_size = 2
ij_haml_keep_indents_on_empty_lines = false

[*.latte]
ij_latte_keep_blank_lines_in_code = 2
ij_latte_spaces_around_assignment_operators = true
Expand All @@ -55,29 +48,6 @@ ij_latte_spaces_around_multiplicative_operators = true
ij_latte_spaces_around_relational_operators = true
ij_latte_spaces_around_unary_operator = false

[*.less]
indent_size = 2
ij_less_align_closing_brace_with_properties = false
ij_less_blank_lines_around_nested_selector = 1
ij_less_blank_lines_between_blocks = 1
ij_less_block_comment_add_space = false
ij_less_brace_placement = 0
ij_less_enforce_quotes_on_format = false
ij_less_hex_color_long_format = false
ij_less_hex_color_lower_case = false
ij_less_hex_color_short_format = false
ij_less_hex_color_upper_case = false
ij_less_keep_blank_lines_in_code = 2
ij_less_keep_indents_on_empty_lines = false
ij_less_keep_single_line_blocks = false
ij_less_line_comment_add_space = false
ij_less_line_comment_at_first_column = false
ij_less_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
ij_less_space_after_colon = true
ij_less_space_before_opening_brace = true
ij_less_use_double_quotes = true
ij_less_value_alignment = 0

[*.sass]
indent_size = 2
ij_sass_align_closing_brace_with_properties = false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ "8.1", "8.2" ]
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]

steps:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ "8.1", "8.2" ]
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]

steps:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ "8.1", "8.2" ]
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]

steps:
Expand Down Expand Up @@ -339,7 +339,7 @@ jobs:

strategy:
matrix:
php-version: [ "8.1", "8.2" ]
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

# FastyBird IoT Thermostat Device addon

[![Build Status](https://img.shields.io/github/actions/workflow/status/FastyBird/thermostat-device-addon/ci.yaml?style=flat-square)](https://github.com/FastyBird/thermostat-device-addon/actions)
[![Licence](https://img.shields.io/github/license/FastyBird/thermostat-device-addon?style=flat-square)](https://github.com/FastyBird/thermostat-device-addon/blob/main/LICENSE.md)
[![Code coverage](https://img.shields.io/coverallsCoverage/github/FastyBird/thermostat-device-addon?style=flat-square)](https://coveralls.io/r/FastyBird/thermostat-device-addon)
[![Mutation testing](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FFastyBird%2Fthermostat-device-addon%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/FastyBird/thermostat-device-addon/main)

![PHP](https://badgen.net/packagist/php/FastyBird/thermostat-device-addon?cache=300&style=flat-square)
[![Latest stable](https://badgen.net/packagist/v/FastyBird/thermostat-device-addon/latest?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/thermostat-device-addon)
[![Downloads total](https://badgen.net/packagist/dt/FastyBird/thermostat-device-addon?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/thermostat-device-addon)
[![Build Status](https://img.shields.io/github/actions/workflow/status/FastyBird/virtual-thermostat-addon/ci.yaml?style=flat-square)](https://github.com/FastyBird/virtual-thermostat-addon/actions)
[![Licence](https://img.shields.io/github/license/FastyBird/virtual-thermostat-addon?style=flat-square)](https://github.com/FastyBird/virtual-thermostat-addon/blob/main/LICENSE.md)
[![Code coverage](https://img.shields.io/coverallsCoverage/github/FastyBird/virtual-thermostat-addon?style=flat-square)](https://coveralls.io/r/FastyBird/virtual-thermostat-addon)
[![Mutation testing](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FFastyBird%2Fvirtual-thermostat-addon%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/FastyBird/virtual-thermostat-addon/main)

![PHP](https://badgen.net/packagist/php/FastyBird/virtual-thermostat-addon?cache=300&style=flat-square)
[![Latest stable](https://badgen.net/packagist/v/FastyBird/virtual-thermostat-addon/latest?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/virtual-thermostat-addon)
[![Downloads total](https://badgen.net/packagist/dt/FastyBird/virtual-thermostat-addon?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/virtual-thermostat-addon)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)

***
Expand All @@ -36,7 +36,7 @@ and is licensed under [Apache2](http://www.apache.org/licenses/LICENSE-2.0).

## Requirements

FastyBird Thermostat Device Addon is tested against PHP 8.1 and require installed [Process Control](https://www.php.net/manual/en/book.pcntl.php)
FastyBird Thermostat Device Addon is tested against PHP 8.2 and require installed [Process Control](https://www.php.net/manual/en/book.pcntl.php)
PHP extensions.

## Installation
Expand All @@ -45,13 +45,13 @@ This extension is part of the [FastyBird](https://www.fastybird.com) [IoT](https
In case you want to create you own distribution of [FastyBird](https://www.fastybird.com) [IoT](https://en.wikipedia.org/wiki/Internet_of_things) ecosystem you could install this extension with [Composer](http://getcomposer.org/):

```sh
composer require fastybird/thermostat-device-addon
composer require fastybird/virtual-thermostat-addon
```

## Documentation

:book: Learn how to configure FastyBird thermostat devices and manage them with [FastyBird](https://www.fastybird.com) [IoT](https://en.wikipedia.org/wiki/Internet_of_things) system
in [documentation](https://github.com/FastyBird/thermostat-device-addon/wiki).
in [documentation](https://github.com/FastyBird/virtual-thermostat-addon/wiki).

# FastyBird

Expand Down Expand Up @@ -99,4 +99,4 @@ For release info check [release page](https://github.com/FastyBird/fastybird/rel

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/fastybird/thermostat-device-addon](https://github.com/fastybird/thermostat-device-addon).
repository [https://github.com/fastybird/virtual-thermostat-addon](https://github.com/fastybird/virtual-thermostat-addon).
26 changes: 10 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fastybird/thermostat-device-addon",
"name": "fastybird/virtual-thermostat-addon",
"type": "fastybird-addon",
"description": "FastyBird IoT virtual thermostat device addon",
"keywords": [
Expand Down Expand Up @@ -29,21 +29,21 @@
"support": {
"email": "[email protected]",
"issues": "https://github.com/FastyBird/fastybird/issues",
"source": "https://github.com/FastyBird/thermostat-device-addon"
"source": "https://github.com/FastyBird/virtual-thermostat-addon"
},
"require": {
"php": ">=8.1.0",
"php": ">=8.2.0",
"contributte/console": "^0.9",
"contributte/monolog": "^0.5",
"contributte/translation": "^2.0",
"cweagans/composer-patches": "^1.7",
"doctrine/orm": "2.15.*",
"fastybird/bootstrap-library": "dev-main",
"fastybird/application-library": "dev-main",
"fastybird/datetime-factory": "^0.6",
"fastybird/devices-module": "dev-main",
"fastybird/metadata-library": "dev-main",
"fastybird/virtual-connector": "dev-main",
"ipub/doctrine-crud": "^3.0",
"ipub/doctrine-crud": "^4.0",
"nette/di": "^3.0",
"psr/log": "^3.0",
"ramsey/uuid": "^4.5",
Expand Down Expand Up @@ -72,15 +72,15 @@
},
"autoload": {
"psr-4": {
"FastyBird\\Addon\\ThermostatDevice\\": "src/"
"FastyBird\\Addon\\VirtualThermostat\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"FastyBird\\Addon\\ThermostatDevice\\Tests\\Cases\\Unit\\": "tests/cases/unit",
"FastyBird\\Addon\\ThermostatDevice\\Tests\\Fixtures\\": "tests/fixtures",
"FastyBird\\Addon\\ThermostatDevice\\Tests\\Fixtures\\Dummy\\": "tests/fixtures/dummy",
"FastyBird\\Addon\\ThermostatDevice\\Tests\\Tools\\": "tests/tools"
"FastyBird\\Addon\\VirtualThermostat\\Tests\\Cases\\Unit\\": "tests/cases/unit",
"FastyBird\\Addon\\VirtualThermostat\\Tests\\Fixtures\\": "tests/fixtures",
"FastyBird\\Addon\\VirtualThermostat\\Tests\\Fixtures\\Dummy\\": "tests/fixtures/dummy",
"FastyBird\\Addon\\VirtualThermostat\\Tests\\Tools\\": "tests/tools"
}
},
"config": {
Expand Down Expand Up @@ -109,12 +109,6 @@
}
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mathsolver/mathsolver.git"
}
],
"minimum-stability": "dev",
"prefer-stable": true
}
48 changes: 25 additions & 23 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ user interface or through the console.
To configure the thermostat device through the console, run the following command:

```shell
php bin/fb-console fb:thermostat-device-addon:install
php bin/fb-console fb:virtual-thermostat-addon:install
```

> [!NOTE]
Expand Down Expand Up @@ -261,19 +261,36 @@ average value, which will be employed in subsequent calculations.

#### Thermostat modes configuration

The target temperature for the thermostat in manual mode determines the desired temperature. In manual mode, the thermostat
works to heat or cool down to this specific target temperature.
When configuring a thermostat with floor sensors, you will be prompted to set the maximum floor temperature to prevent overheating.

```
Provide target temperature value for manual mode (°C):
> 20
Provide maximum allowed floor temperature (°C) [28]:
> 28
```

When configuring a thermostat with floor sensors, you will be prompted to set the maximum floor temperature to prevent overheating.
In the next steps, you will be guided to configure thermostat presets. This thermostat offers predefined presets,
and you have the flexibility to choose any of them according to your preferences.

```
Provide maximum allowed floor temperature (°C) [28]:
> 28
Please select thermostat supported presets (multiple answers available) [Away, Eco, Home, Comfort, Sleep, Anti freeze]:
[0] Away
[1] Eco
[2] Home
[3] Comfort
[4] Sleep
[5] Anti freeze
[6] None
>
```

Once presets are selected you will be asked to configure each preset individually.

The target temperature for the thermostat in selected preset mode determines the desired temperature. In the selected mode,
the thermostat works to heat or cool down to this specific target temperature.

```
Provide target temperature value for manual mode (°C):
> 20
```

When setting up the thermostat for **automatic mode**, it is necessary to configure both heating and cooling thresholds.
Expand All @@ -291,21 +308,6 @@ the thermostat activates cooling actors until the target temperature is reached,
> 21
```

In the final steps, you will be guided to configure thermostat presets. This thermostat offers predefined presets,
and you have the flexibility to choose any of them according to your preferences.

```
Please select thermostat supported presets (multiple answers available) [Away, Eco, Home, Comfort, Sleep, Anti freeze]:
[0] Away
[1] Eco
[2] Home
[3] Comfort
[4] Sleep
[5] Anti freeze
[6] None
>
```

> [!TIP]
For selecting multiple values, enter the corresponding numbers separated by commas, such as > 0,1,2. Alternatively,
if you prefer not to use thermostat presets, simply choose **None**, and your thermostat will operate solely in manual mode.
Expand Down
4 changes: 2 additions & 2 deletions docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This addon has some services divided into namespaces. All services are preconfig
container automatically.

```
\FastyBird\Addon\ThermostatDevice
\FastyBird\Addon\VirtualThermostat
\Commands - Services used for user console interface
\Drivers - Main thermostat services responsible for handling actions
\Entities - All entities used by addon
Expand All @@ -40,7 +40,7 @@ Find fundamental details regarding the installation and configuration of this ad

This addon is equipped with interactive console. With this console commands you could manage almost all addon features.

* **fb:thermostat-device-addon:install**: is used for addon installation and configuration. With interactive menu you could manage addon and device.
* **fb:virtual-thermostat-addon:install**: is used for addon installation and configuration. With interactive menu you could manage addon and device.

Addon console command could be triggered like this :nerd_face:

Expand Down
2 changes: 1 addition & 1 deletion docs/_Footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Thank you for testing, reporting and contributing.

***
Homepage [https://www.fastybird.com](https://www.fastybird.com) and
repository [https://github.com/fastybird/thermostat-device-addon](https://github.com/fastybird/thermostat-device-addon).
repository [https://github.com/fastybird/virtual-thermostat-addon](https://github.com/fastybird/virtual-thermostat-addon).
Loading

0 comments on commit 55567fe

Please sign in to comment.