Skip to content

Commit

Permalink
Philips support + RWL021 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Nov 19, 2024
1 parent 668bd3f commit 4242aff
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 30 deletions.
32 changes: 4 additions & 28 deletions core/config/devices/RWL021/RWL021.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,49 +57,25 @@
"Up": {
"use": "upGroup"
},
"EventButtonI": {
"use": "boutonStateRWL021_1"
},
"DureeButtonI": {
"use": "boutonStateRWL021_2"
},
"EventButtonLumPlus": {
"use": "boutonStateRWL021_3"
},
"DureeButtonLumPlus": {
"use": "boutonStateRWL021_4"
},
"EventButtonLumMoins": {
"use": "boutonStateRWL021_5"
},
"DureeButtonLumMoins": {
"use": "boutonStateRWL021_6"
},
"EventButtonO": {
"use": "boutonStateRWL021_7"
},
"DureeButtonO": {
"use": "boutonStateRWL021_8"
},
"I": {
"Button ON": {
"comment": "Button I/On, value=short-press/long-press/short-release/long-release",
"use": "inf_generic-String",
"logicalId": "philipsFC00-00-01",
"isVisible": 1
},
"B+": {
"Button B+": {
"comment": "Button Bightness +, value=short-press/long-press/short-release/long-release",
"use": "inf_generic-String",
"logicalId": "philipsFC00-00-02",
"isVisible": 1
},
"B-": {
"Button B-": {
"comment": "Button Bightness -, value=short-press/long-press/short-release/long-release",
"use": "inf_generic-String",
"logicalId": "philipsFC00-00-03",
"isVisible": 1
},
"0": {
"Button OFF": {
"comment": "Button 0/Off, value=short-press/long-press/short-release/long-release",
"use": "inf_generic-String",
"logicalId": "philipsFC00-00-04",
Expand Down
4 changes: 2 additions & 2 deletions core/php/AbeilleParser-Philips.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function philipsDecodeCmdFC00($net, $addr, $ep, $clustId, $cmdId, $pl) {
// $unknown2 = substr($pl, 7, 2);
$time = substr($pl, 9, 2);
$typeTxt = isset($buttonTypeTxt[$type]) ? $buttonTypeTxt[$type] : "?";
parserLog2("debug", $addr, " Philips private: Cluster=$clustId, Cmd=$cmd, Button=$button, Type=$type/$typeTxt, Time=$time");
parserLog2("debug", $addr, " Philips private: Cluster=$clustId, Cmd=$cmdId, Button=$button, Type=$type/$typeTxt, Time=$time");

$attrReportN = [];
$attrReportN[] = Array( "name" => "$philipsFC00-$cmdId-$button", "value" => $typeTxt );
$attrReportN[] = Array( "name" => "philipsFC00-$cmdId-$button", "value" => $typeTxt );

// OBSOLETE SUPPORT
// $attrReportN[] = Array( "name" => $clustId."-".$ep."-".$attrId."-Event", "value" => $buttonEvent );
Expand Down
9 changes: 9 additions & 0 deletions docs/fr_FR/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# ChangeLog

**Mise-à-jour de modèles d'équipement**

- Malgré la volonté de faire des évolutions les plus transparentes possibles, il se peut que certains équipements nécessitent d'être mis-à-jour à partir de leur dernier modèle pour à nouveau fonctionner correctement.

- Si ils sont sur batterie, réinclusion nécessaire.
- Si sur secteur, aller à la page 'avancé' et bouton 'mise-à-jour'.
- Modèle RWL021 modifié. Revoir vos scenarios si besoin. (voir 1243).

- Amélioration: Modèle d'équipement avec support 'private': Ajout du type 'generic'.
- Amélioration: Philips RWL021: Mise-à-jour modèle (1243). Attention à revoir scenario si besoin !!
- Amélioration: Ajout support Philips RWL020.
- Amélioration: Suppression de cmdes obsoletes 'boutonStateRWL021_X.json'.

## 241117-BETA-1

Expand Down

0 comments on commit 4242aff

Please sign in to comment.