Bonjour, depuis les mise à jour du plugin, je constate que les niveaux de pile ne remontent plus correctement.
J’ai 3 équipements qui sont en piles faible et jeedom indique 100%.
Après recherche, la trame envoyée par le rfxcom est OK:
[2020-12-05 15:41:52][DEBUG] : Message: 10560278360000e1001c00260500004660
[2020-12-05 15:41:52][DEBUG] : Decode : 10560278360000e1001c00260500004660
[2020-12-05 15:41:52][DEBUG] : Test message: 10560278360000e1001c00260500004660
[2020-12-05 15:41:52][DEBUG] : PacketType: 0x56
[2020-12-05 15:41:52][DEBUG] : Length: 17
[2020-12-05 15:41:52][DEBUG] : Start decoding packet type 0x56
[2020-12-05 15:41:52][DEBUG] : Subtype = WIND2 is WGR800
[2020-12-05 15:41:52][DEBUG] : Data : {'seqnbr': '0x78', 'battery': 10, 'id1': '0x36', 'packettype': '0x56', 'id2': '0x00', 'subtype': '0x02', 'temperature': 1280, 'gust': 38, 'chillsign': '', 'packetlen': '0x10', 'temperaturesign': '', 'rssi': 6, 'chill': 70, 'direction': 225, 'av_speed': 28}
[2020-12-05 15:41:52][DEBUG] : Decoded info : {'direction': 225, 'gust': 3.8, 'packettype': '0x56', 'av_speed': 2.8, 'battery': 10, 'id': '3600', 'temperature': '128.0', 'chill': '7.0', 'rssi': 6, 'subtype': '0x02'}
[2020-12-05 15:41:52][DEBUG] : Device is known id : 3600
[2020-12-05 15:41:53][DEBUG] : Send to jeedom : {'devices': {'360056': {'direction': 225, 'gust': 3.8, 'packettype': '0x56', 'av_speed': 2.8, 'battery': 10, 'id': '3600', 'temperature': '128.0', 'chill': '7.0', 'rssi': 6, 'subtype': '0x02'}, '37005B': {'total': 5260417.18, 'count': 0, 'packettype': '0x5B', 'ch2': 2.9, 'ch1': 0.4, 'ch3': 0.5, 'id': '3700', 'battery': 100, 'rssi': 7, 'subtype': '0x01'}}}
[2020-12-05 15:41:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2020-12-05 15:41:53][DEBUG] : {"devices":{"360056":{"direction":225,"gust":3.8,"packettype":"0x56","av_speed":2.8,"battery":10,"id":"3600","temperature":"128.0","chill":"7.0","rssi":6,"subtype":"0x02"},"37005B":{"total":5260417.18,"count":0,"packettype":"0x5B","ch2":2.9,"ch1":0.4,"ch3":0.5,"id":"3700","battery":100,"rssi":7,"subtype":"0x01"}}}
Ici on voit bien la valeur de battery à 10, mais jeedom affiche 100.
J’ai fini par trouver: dans jeeRfxcom.php, on a:
if(isset($datas['battery'])){
$rfxcom->batteryStatus($datas['battery']*10+10);
}
J’ai enlevé le *10+10 et mes modules sont à nouveau passé en warning.