Skip to content

Commit

Permalink
Fix ShellyProDimmerPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnittcher committed Jun 13, 2024
1 parent 932d2d3 commit b688ed3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
26 changes: 18 additions & 8 deletions ShellyProDimmerPM/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@
"translations": {
"de": {
"Active": "Aktiv",
"State": "Status",
"State 1": "Status 1",
"State 2": "Status 2",
"Brightness 1": "Helligkeit 1",
"Brightness 2": "Helligkeit 2",
"Power 1": "Leistung 1",
"Power 2": "Leistung 2",
"Total Energy 1": "Gesamtenergie 1",
"Total Energy 2": "Gesamtenergie 2",
"Current 1": "Stromstärke 1",
"Current 2": "Stromstärke 2",
"Voltage 1": "Spannung 1",
"Voltage 2": "Spannung 2",
"Errors 1": "Fehler 1",
"Errors 2": "Fehler 2",
"Reachable": "Erreichbar",
"Device Temperature 1": "Gerätetemperatur 1",
"Device Temperature 2": "Gerätetemperatur 2",
"Variable profile type does not match for profile": "Der Profiltyp der Variablen stimmt nicht mit dem Profil überein",
"Power": "Leistung",
"Total Energy": "Gesamt Energie",
"Current": "Stromstärke",
"Voltage": "Volt",
"Total consumption": "Gesamtverbrauch",
"Device Temperature": "Gerätetemperatur",
"Brightness": "Helligkeit",
"Input 1": " Eingang 1",
"Input 2": " Eingang 2",
"Event": "Ereignis",
"Event Component": "Ereignis Komponente",
"Zeroing by unreach": "Nullung durch Unerreichbarkeit"
}
}
Expand Down
10 changes: 5 additions & 5 deletions ShellyProDimmerPM/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class ShellyProDimmerPM extends ShellyModule
['Error10', 'Errors 2', VARIABLETYPE_STRING, '', ['shellyprodimmer1pm', 'shellyprodimmer2pm'], '', false, true, false],
['DeviceTemperature1', 'Device Temperature 2', VARIABLETYPE_FLOAT, '~Temperature', ['shellyprodimmer1pm', 'shellyprodimmer2pm'], '', false, true, false],

['Input0', 'Input 1', VARIABLETYPE_BOOLEAN, '~Switch', [], '', false, true],
['Input1', 'Input 2', VARIABLETYPE_BOOLEAN, '~Switch', [], '', false, true],
['EventComponent', 'Event Component', VARIABLETYPE_STRING, '', [], '', false, true],
['Event', 'Event', VARIABLETYPE_STRING, '', [], '', false, true],
['Reachable', 'Reachable', VARIABLETYPE_BOOLEAN, 'Shelly.Reachable', '', '', false, true]
['Input0', 'Input 1', VARIABLETYPE_BOOLEAN, '~Switch', [], '', false, true, false],
['Input1', 'Input 2', VARIABLETYPE_BOOLEAN, '~Switch', [], '', false, true, false],
['EventComponent', 'Event Component', VARIABLETYPE_STRING, '', [], '', false, true, false],
['Event', 'Event', VARIABLETYPE_STRING, '', [], '', false, true, false],
['Reachable', 'Reachable', VARIABLETYPE_BOOLEAN, 'Shelly.Reachable', '', '', false, true, false]
];

public function RequestAction($Ident, $Value)
Expand Down

0 comments on commit b688ed3

Please sign in to comment.