Skip to content

Commit

Permalink
Ticket #232 / #2: Added it.diederik.solar:growatt to the ignore list …
Browse files Browse the repository at this point in the history
…(while waiting for solar support)
  • Loading branch information
frodeheg committed Apr 15, 2023
1 parent ae4dcff commit 27c154f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,19 @@ const DEFAULT_IGNORED = {
type: DEVICE_TYPE.IGNORE
};

// Default Ignored device:
// Default Meter reader device:
const DEFAULT_METER = {
type: DEVICE_TYPE.METERREADER,
readPowerCap: 'measure_power',
readMeterCap: 'meter_power',
default: true
};

// Default Solar devices:
const DEFAULT_SOLAR = {
type: DEVICE_TYPE.IGNORE
}

// Supported devices and how to use them
const DEVICE_CMD = {
'ady.smartthings:stDevice': {
Expand Down Expand Up @@ -352,6 +357,7 @@ const DEVICE_CMD = {
tempMax: 30,
tempStep: 0.5
},
'it.diederik.solar:growatt': DEFAULT_SOLAR,
'me.nanoleaf:shapes': DEFAULT_SWITCH,
'net.filllip-namron:4512725': {
...DEFAULT_HEATER,
Expand Down
13 changes: 13 additions & 0 deletions doc/devices/it.diederik.solar:growatt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Log ID: 2023-04-10T10:50:17.438Z
App version 0.20.19

+10:50:17.438: ----- ANALYZING DEVICE -----
+10:50:17.440: Report type: Device is not listed
+10:50:17.457: Device name: Solceller
+10:50:17.459: Driver Id: homey:app:it.diederik.solar:growatt
+10:50:17.461: Error: TypeError: Cannot read properties of undefined (reading 'onoff_cap')
+10:50:17.462: Capabilities: measure_power,meter_power
+10:50:17.463: Options for 'measure_power': {"id":"measure_power","type":"number","iconObj":null,"title":"Effekt","getable":true,"setable":false,"insights":true,"insightsTitleTrue":null,"insightsTitleFalse":null,"units":"W","decimals":2,"value":5020.2,"lastUpdated":"2023-04-10T10:50:13.407Z"}
+10:50:17.465: Options for 'meter_power': {"id":"meter_power","type":"number","iconObj":null,"title":"Energi","getable":true,"setable":false,"insights":true,"insightsTitleTrue":null,"insightsTitleFalse":null,"units":"kWh","decimals":2,"value":17.3,"lastUpdated":"2023-04-10T10:50:13.404Z"}
+10:50:17.466: --- ANALYZING DEVICE DONE ---
+10:52:2.499: Sending log

0 comments on commit 27c154f

Please sign in to comment.