Page 1 sur 1

Paramétrer température Telsa

Publié : 16 janv. 2023, 17:28
par dranreb38
Merci Flying Domotic pour ce plugin qui me ravit !

Je rencontre un problème pour la remontée de température de ma Tesla , je bataille mais ne comprends pas :evil:
le chemin du topic : teslamate/cars/1/outside_temp

Code : Tout sélectionner

 2023-01-16 17:14:46.170 Status: MqttMapper: Started.
2023-01-16 17:14:46.171 Status: MqttMapper: Entering work loop.
2023-01-16 17:14:46.174 Status: EventSystem: reset all events...
2023-01-16 17:14:46.179 Status: EventSystem: reset all device statuses...
2023-01-16 17:14:46.187 Status: NotificationSystem: thread started...
2023-01-16 17:14:46.312 Status: Python EventSystem: Initializing event module.
2023-01-16 17:14:46.318 Status: EventSystem: Started
2023-01-16 17:14:46.323 Status: EventSystem: Queue thread started...
2023-01-16 17:14:46.519 Status: MqttMapper: Initialized version 1.0.7, author 'Flying Domotic'
2023-01-16 17:14:46.669 Status: PluginSystem: 1 plugins started.
2023-01-16 17:14:46.962 Error: MqttMapper: Call to function 'onMessage' failed, exception details:
2023-01-16 17:14:46.963 Error: MqttMapper: Traceback (most recent call last):
2023-01-16 17:14:46.963 Error: MqttMapper: File "/root/domoticz/plugins/MqttMapper/plugin.py", line 482, in onMessage
2023-01-16 17:14:46.963 Error: MqttMapper: _plugin.onMessage(Connection, Data)
2023-01-16 17:14:46.963 Error: MqttMapper: File "/root/domoticz/plugins/MqttMapper/plugin.py", line 275, in onMessage
2023-01-16 17:14:46.963 Error: MqttMapper: self.mqttClient.onMessage(Connection, Data)
2023-01-16 17:14:46.963 Error: MqttMapper: File "/root/domoticz/plugins/MqttMapper/plugin.py", line 140, in onMessage
2023-01-16 17:14:46.963 Error: MqttMapper: self.mqttPublishCb(topic, Data['Payload'])
2023-01-16 17:14:46.963 Error: MqttMapper: File "/root/domoticz/plugins/MqttMapper/plugin.py", line 329, in onMQTTPublish
2023-01-16 17:14:46.963 Error: MqttMapper: itemValue = self.getPathValue(message, item, '/', None) # Extract value from message
2023-01-16 17:14:46.963 Error: MqttMapper: File "/root/domoticz/plugins/MqttMapper/plugin.py", line 169, in getPathValue
2023-01-16 17:14:46.963 Error: MqttMapper: if pathElement not in element:
2023-01-16 17:14:46.963 Error: MqttMapper: TypeError: argument of type 'float' is not iterable
2023-01-16 17:15:46.060 MqttMapper: Heartbeating...
2023-01-16 17:15:46.061 MqttMapper: Sending 2 bytes of data
2023-01-16 17:15:46.061 MqttMapper: c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �
2023-01-16 17:15:46.111 MqttMapper: Received 2 bytes of data
2023-01-16 17:15:46.111 MqttMapper: d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю
2023-01-16 17:16:46.065 MqttMapper: Heartbeating...  
Mon fichier MqttMapper.json

Code : Tout sélectionner

{
   "Car Temperature Out": {
      "topic": "teslamate/cars/1/outside_temp",
      "type": "80",
      "subtype": "5",
      "switchtype": "0",
      "mapping": {"item": "temperature"}
    }
}
Le device est bien créer mais la température ne remonte pas.

Re: [Plugin] MQTTmapper : Intégration directe de topics MQTT dans Domoticz

Publié : 16 janv. 2023, 17:35
par Neutrino
Elle envoie quoi sur ton broker la Tesla ?
Peut-être une erreur de mapping ?
Essaye sans :

Code : Tout sélectionner

{
   "Car Temperature Out": {
      "topic": "teslamate/cars/1/outside_temp",
      "type": "80",
      "subtype": "5",
      "switchtype": "0",
      "mapping": {"item": ""}
    }
}

Re: [Plugin] MQTTmapper : Intégration directe de topics MQTT dans Domoticz

Publié : 16 janv. 2023, 18:08
par dranreb38
:o :D C'etait bien cela ! :D
En Fait ce n'est pas directement la Tesla , mais une autre appli (TeslaMate qui collecte via une API les données transmis à Tesla)
Merci !
Ci-dessous les infos dispo