Skip to content

Commit

Permalink
Feat/new devices (#29)
Browse files Browse the repository at this point in the history
Support for more than one unit.
More generic configuration files.

New devices: 
* F1145-10 PC
* F750 CU 3x400V
* VVM 500
* F2120-12
* F1245-6 E PC EM
* F370 CU 3x400V
* VVM 320 E
* F2040-12
  • Loading branch information
hpruszyn authored Apr 29, 2022
1 parent cbcfd33 commit 160abe8
Show file tree
Hide file tree
Showing 33 changed files with 9,324 additions and 6,870 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"sourceType": "module"
},
"rules": {
"quotes": ["error", "double"],
"quotes": ["error", "single"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
Expand Down
31 changes: 31 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
yaml-files:
- "*.yaml"
- "*.yml"
- ".yamllint"

rules:
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
level: warning
comments-indentation:
level: warning
document-end: disable
document-start: disable
empty-lines: enable
empty-values: disable
hyphens: enable
indentation: enable
key-duplicates: enable
key-ordering: disable
line-length: enable
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy:
level: warning
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,16 @@ Whole setup instruction is available on plugin configuration page in homebridge.

### Supported devices and accessories

**Devices**

**Device list**
* F1145-10 PC
* F750 CU 3x400V
* VVM 500
* F2120-12
* F1245-6 E PC EM
* F370 CU 3x400V
* VVM 320 E
* F2040-12

*If your device is not on the list please install the plugin, configure it and you will see error log in homebridge with details how to create "add new device" issue*

Expand All @@ -52,6 +59,14 @@ Whole setup instruction is available on plugin configuration page in homebridge.
<ul>
<li>F1145-10 PC - v0.0.7</li>
<li>F750 CU 3x400V - v0.0.13</li>
<li>F1145-10 PC - v0.0.14</li>
<li>F750 CU 3x400V - v0.0.14</li>
<li>VVM 500 - v0.0.14</li>
<li>F2120-12 - v0.0.14</li>
<li>F1245-6 E PC EM - v0.0.14</li>
<li>F370 CU 3x400V - v0.0.14</li>
<li>VVM 320 E - v0.0.14</li>
<li>F2040-12 - v0.0.14</li>
</ul>
</td>
</tr>
Expand All @@ -62,6 +77,12 @@ Whole setup instruction is available on plugin configuration page in homebridge.
<ul>
<li>F1145-10 PC - v0.0.8</li>
<li>F750 CU 3x400V - v0.0.13</li>
<li>F1145-10 PC - v0.0.14</li>
<li>F750 CU 3x400V - v0.0.14</li>
<li>VVM 500 - v0.0.14</li>
<li>F1245-6 E PC EM - v0.0.14</li>
<li>F370 CU 3x400V - v0.0.14</li>
<li>VVM 320 E - v0.0.14</li>
</ul>
</td>
</tr>
Expand Down
51 changes: 2 additions & 49 deletions config/F1145-10-PC.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
accessories:
- id: hot-water
services:
- type: HeaterCooler
characteristics:
- type: CurrentTemperature
id: 40014
refresh: true
- type: Active
id: 48132
refresh: true
manage:
id: 48132
- type: CurrentHeaterCoolerState
id: 43115
attribute: displayValue
refresh: true
parser: notEmpty
mapper:
- true: 2
- false: 1
props:
maxValue: 2
minValue: 1
validValues: [1, 2]
- type: TargetHeaterCoolerState
value: 0
props:
maxValue: 0
minValue: 0
validValues: [0]
- type: TemperatureDisplayUnits
id: 40014
attribute: unit
mapper:
- "°F": 1
- "default": 0
props:
perms: ["pr"]
refresh: true
- type: Name
value: temperature.current.name
translate: true
- type: HeatingThresholdTemperature
config:
key: temporaryLuxMaxTemperature
default: 53
props:
maxValue: 70
refresh: true
- outdoor-temperature-40004
- hot-water
3 changes: 3 additions & 0 deletions config/F1245-6-E-PC-EM.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessories:
- outdoor-temperature-40004
- hot-water
2 changes: 2 additions & 0 deletions config/F2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
accessories:
- outdoor-temperature-44362
2 changes: 2 additions & 0 deletions config/F2120.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
accessories:
- outdoor-temperature-44362
3 changes: 3 additions & 0 deletions config/F370-CU-3x400V.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessories:
- outdoor-temperature-40004
- hot-water
51 changes: 2 additions & 49 deletions config/F750-CU-3x400V.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
accessories:
- id: hot-water
services:
- type: HeaterCooler
characteristics:
- type: CurrentTemperature
id: 40014
refresh: true
- type: Active
id: 48132
refresh: true
manage:
id: 48132
- type: CurrentHeaterCoolerState
id: 43115
attribute: displayValue
refresh: true
parser: notEmpty
mapper:
- true: 2
- false: 1
props:
maxValue: 2
minValue: 1
validValues: [1, 2]
- type: TargetHeaterCoolerState
value: 0
props:
maxValue: 0
minValue: 0
validValues: [0]
- type: TemperatureDisplayUnits
id: 40014
attribute: unit
mapper:
- "°F": 1
- "default": 0
props:
perms: ["pr"]
refresh: true
- type: Name
value: temperature.current.name
translate: true
- type: HeatingThresholdTemperature
config:
key: temporaryLuxMaxTemperature
default: 53
props:
maxValue: 70
refresh: true
- outdoor-temperature-40004
- hot-water
3 changes: 3 additions & 0 deletions config/VVM-320-E.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessories:
- outdoor-temperature-40004
- hot-water
3 changes: 3 additions & 0 deletions config/VVM-500.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessories:
- outdoor-temperature-40004
- hot-water
94 changes: 79 additions & 15 deletions config/common.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,90 @@
global:
accessory:
id: nibe-
accessory:
id: nibe-
services:
- type: AccessoryInformation
characteristics:
- type: Manufacturer
value: Nibe
- type: Model
id: 1
attribute: displayValue
- type: SerialNumber
id: 2
attribute: displayValue
accessoriesConfiguration:
- id: outdoor-temperature-40004
name: outdoor-temperature
services:
- type: TemperatureSensor
characteristics:
- type: CurrentTemperature
id: 40004
refresh: true
- type: Name
value: temperature.current.name
translate: true
- id: outdoor-temperature-44362
name: outdoor-temperature
services:
- type: TemperatureSensor
characteristics:
- type: CurrentTemperature
id: 44362
refresh: true
- type: Name
value: temperature.current.name
translate: true
- type: AccessoryInformation
characteristics:
- type: Manufacturer
value: Nibe
- type: Model
id: 1
attribute: displayValue
- type: SerialNumber
id: 2
attribute: displayValue

accessories:
- id: outdoor-temperature
value: "00000000"
- id: hot-water
name: hot-water
services:
- type: TemperatureSensor
- type: HeaterCooler
characteristics:
- type: CurrentTemperature
id: 40004
id: 40014
refresh: true
- type: Active
id: 48132
refresh: true
manage:
id: 48132
- type: CurrentHeaterCoolerState
id: 43115
attribute: displayValue
refresh: true
parser: notEmpty
mapper:
- true: 2
- false: 1
props:
maxValue: 2
minValue: 1
validValues: [1, 2]
- type: TargetHeaterCoolerState
value: 0
props:
maxValue: 0
minValue: 0
validValues: [0]
- type: TemperatureDisplayUnits
id: 40014
attribute: unit
mapper:
- "°F": 1
- "default": 0
props:
perms: ["pr"]
refresh: true
- type: Name
value: temperature.current.name
translate: true
- type: HeatingThresholdTemperature
config:
key: temporaryLuxMaxTemperature
default: 53
props:
maxValue: 70
refresh: true
Loading

0 comments on commit 160abe8

Please sign in to comment.