je viens de faire la mise à jour :
Code : Tout sélectionner
git pull
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 4), reused 4 (delta 2), pack-reused 0 (from 0)
Unpacking objects: 100% (6/6), 1.79 KiB | 183.00 KiB/s, done.
From https://github.com/FlyingDomotic/domoticz-mqttmapper-plugin
e857fa1..9f889cf main -> origin/main
Updating e857fa1..9f889cf
error: Your local changes to the following files would be overwritten by merge:
checkJsonFiles.py
Please commit your changes or stash them before you merge.
Aborting
du coup j'ai supprimé le fichier et relancé, la, c'est OK.
il faut quand même ajouter le chmod pour l'exécution
effectivement c'est plus fin au niveau analyse :
Code : Tout sélectionner
marc@domoticz:~/domoticz/plugins/MqttMapper $ ./checkJsonFiles.py
/home/marc/domoticz/plugins/MqttMapper/./checkJsonFiles.py V1.2.0
Checking MqttMapper.json
Invalid data in ('E I Secteur', {'topic': 'zigbee2mqtt/Energie', 'type': '243', 'subtype': '23', 'switchtype': '0', 'key': 'current_a', 'mapping': {'item': 'current_a', 'ValueUnits': 'A'}})
--> ValueUnits is unkown for mapping
Invalid data in ('E I Solaire', {'topic': 'zigbee2mqtt/Energie', 'type': '243', 'subtype': '23', 'switchtype': '0', 'key': 'current_b', 'mapping': {'item': 'current_b', 'ValueUnits': 'A'}})
--> ValueUnits is unkown for mapping
Invalid data in ('E Irms Solaire', {'topic': 'zigbee2mqtt/Energie', 'type': '243', 'subtype': '23', 'switchtype': '0', 'key': 'power_b', 'mapping': {'item': 'power_b', 'multiplier': 0.00425, 'ValueUnits': 'A', 'digits': 2}})
--> ValueUnits is unkown for mapping
Errors in MqttMapper.json, fix them and recheck!!!