Merci.
En attendant que le lien que tu m’as transmis se charge (il rame, je ne sais pas pourquoi), j’ai flashé ma conbee.
Je pensais avoir le dernier FW mais manifestement non quand je regarde ce que j’avais gardé sur le PC.
Il semble que le souci de baudrate ait disparu :
247894|[2024-07-30 11:45:08] e[31merrore[39m: z2m: Failed to load external converter file '/var/www/html/plugins/z2m/core/class/../config/converters/Danfoss/icon.js' (Cannot find module 'zigbee-herdsman-converters/lib/extend'
247895|Require stack:
247896|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/utils.js
247897|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/dist/util/settings.js
247898|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js)
247899|[2024-07-30 11:45:08] e[31merrore[39m: z2m: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version
247900|[2024-07-30 11:45:08] e[31merrore[39m: z2m: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device
Il ne semble rester que le souci d’image, j’imagine que c’est lié à « Cannot find module ‹ zigbee-herdsman-converters/lib/extend › »
Pour le JSON, c’est de ça que tu as besoin ?
{
"date_code": "",
"definition": {
"description": "Switch with power monitoring",
"exposes": [
{
"features": [
{
"access": 7,
"description": "On\/off state of the switch",
"label": "State",
"name": "state",
"property": "state",
"type": "binary",
"value_off": "OFF",
"value_on": "ON",
"value_toggle": "TOGGLE"
}
],
"type": "switch"
},
{
"access": 1,
"category": "diagnostic",
"description": "Instantaneous measured power",
"label": "Power",
"name": "power",
"property": "power",
"type": "numeric",
"unit": "W"
},
{
"access": 1,
"category": "diagnostic",
"description": "Instantaneous measured electrical current",
"label": "Current",
"name": "current",
"property": "current",
"type": "numeric",
"unit": "A"
},
{
"access": 1,
"category": "diagnostic",
"description": "Measured electrical potential value",
"label": "Voltage",
"name": "voltage",
"property": "voltage",
"type": "numeric",
"unit": "V"
},
{
"access": 1,
"description": "Sum of consumed energy",
"label": "Energy",
"name": "energy",
"property": "energy",
"type": "numeric",
"unit": "kWh"
},
{
"access": 7,
"description": "Type of the switch",
"label": "Switch type",
"name": "switch_type",
"property": "switch_type",
"type": "enum",
"values": [
"toggle",
"state",
"momentary"
]
},
{
"access": 7,
"description": "Recover state after power outage",
"label": "Power outage memory",
"name": "power_outage_memory",
"property": "power_outage_memory",
"type": "enum",
"values": [
"on",
"off",
"restore"
]
},
{
"access": 1,
"category": "diagnostic",
"description": "Link quality (signal strength)",
"label": "Linkquality",
"name": "linkquality",
"property": "linkquality",
"type": "numeric",
"unit": "lqi",
"value_max": 255,
"value_min": 0
}
],
"model": "TS0001_power",
"options": [
{
"access": 2,
"description": "Calibrates the power value (percentual offset), takes into effect on next report of device.",
"label": "Power calibration",
"name": "power_calibration",
"property": "power_calibration",
"type": "numeric"
},
{
"access": 2,
"description": "Number of digits after decimal point for power, takes into effect on next report of device. This option can only decrease the precision, not increase it.",
"label": "Power precision",
"name": "power_precision",
"property": "power_precision",
"type": "numeric",
"value_max": 3,
"value_min": 0
},
{
"access": 2,
"description": "Calibrates the current value (percentual offset), takes into effect on next report of device.",
"label": "Current calibration",
"name": "current_calibration",
"property": "current_calibration",
"type": "numeric"
},
{
"access": 2,
"description": "Number of digits after decimal point for current, takes into effect on next report of device. This option can only decrease the precision, not increase it.",
"label": "Current precision",
"name": "current_precision",
"property": "current_precision",
"type": "numeric",
"value_max": 3,
"value_min": 0
},
{
"access": 2,
"description": "Calibrates the voltage value (percentual offset), takes into effect on next report of device.",
"label": "Voltage calibration",
"name": "voltage_calibration",
"property": "voltage_calibration",
"type": "numeric"
},
{
"access": 2,
"description": "Number of digits after decimal point for voltage, takes into effect on next report of device. This option can only decrease the precision, not increase it.",
"label": "Voltage precision",
"name": "voltage_precision",
"property": "voltage_precision",
"type": "numeric",
"value_max": 3,
"value_min": 0
},
{
"access": 2,
"description": "Calibrates the energy value (percentual offset), takes into effect on next report of device.",
"label": "Energy calibration",
"name": "energy_calibration",
"property": "energy_calibration",
"type": "numeric"
},
{
"access": 2,
"description": "Number of digits after decimal point for energy, takes into effect on next report of device. This option can only decrease the precision, not increase it.",
"label": "Energy precision",
"name": "energy_precision",
"property": "energy_precision",
"type": "numeric",
"value_max": 3,
"value_min": 0
},
{
"access": 2,
"description": "State actions will also be published as 'action' when true (default false).",
"label": "State action",
"name": "state_action",
"property": "state_action",
"type": "binary",
"value_off": false,
"value_on": true
}
],
"supports_ota": false,
"vendor": "TuYa"
},
"disabled": false,
"endpoints": {
"1": {
"bindings": [
{
"cluster": "genOnOff",
"target": {
"endpoint": 1,
"ieee_address": "0x00212effff051a94",
"type": "endpoint"
}
},
{
"cluster": "haElectricalMeasurement",
"target": {
"endpoint": 1,
"ieee_address": "0x00212effff051a94",
"type": "endpoint"
}
},
{
"cluster": "seMetering",
"target": {
"endpoint": 1,
"ieee_address": "0x00212effff051a94",
"type": "endpoint"
}
}
],
"clusters": {
"input": [
"genIdentify",
"genGroups",
"genScenes",
"genOnOff",
"seMetering",
"haElectricalMeasurement",
"manuSpecificBosch",
"manuSpecificTuya_3",
"genBasic"
],
"output": [
"genOta",
"genTime"
]
},
"configured_reportings": [
{
"attribute": "rmsVoltage",
"cluster": "haElectricalMeasurement",
"maximum_report_interval": 3600,
"minimum_report_interval": 5,
"reportable_change": 5
},
{
"attribute": "rmsCurrent",
"cluster": "haElectricalMeasurement",
"maximum_report_interval": 3600,
"minimum_report_interval": 5,
"reportable_change": 50
},
{
"attribute": "activePower",
"cluster": "haElectricalMeasurement",
"maximum_report_interval": 3600,
"minimum_report_interval": 5,
"reportable_change": 10
},
{
"attribute": "currentSummDelivered",
"cluster": "seMetering",
"maximum_report_interval": 3600,
"minimum_report_interval": 5,
"reportable_change": [
1,
1
]
}
],
"scenes": []
},
"242": {
"bindings": [],
"clusters": {
"input": [],
"output": [
"greenPower"
]
},
"configured_reportings": [],
"scenes": []
}
},
"friendly_name": "PAC Piscine",
"ieee_address": "0xa4c1382cd998cde2",
"interview_completed": true,
"interviewing": false,
"manufacturer": "_TZ3000_kqvb5akv",
"model_id": "TS0001",
"network_address": 23415,
"power_source": "Mains (single phase)",
"supported": true,
"type": "Router"
}