Paramétrer température Telsa

Sous forum dédié au plugin MQTTMAPPER de FlyingDomotic
Merci de poster vous questions concernant ce plugin ici et non pas dans le forum MQTT directement
dranreb38
Messages : 134
Inscription : 17 avr. 2020, 14:33

Paramétrer température Telsa

Message 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.
Pièces jointes
Screenshot_25.jpg
Screenshot_25.jpg (41.74 Kio) Consulté 1644 fois
Raspberry 3B+ Buster & PiZiGate V2 Firmware: v3.21 Plugin: 6.3.008
Version: 2022.2 dzVents Version: 3.0.18
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:44) [GCC 8.3.0]

Signature à jours au : 28/12/2022
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

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

Message 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": ""}
    }
}
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
dranreb38
Messages : 134
Inscription : 17 avr. 2020, 14:33

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

Message 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
Pièces jointes
Screenshot_26.jpg
Screenshot_26.jpg (85.44 Kio) Consulté 1634 fois
Raspberry 3B+ Buster & PiZiGate V2 Firmware: v3.21 Plugin: 6.3.008
Version: 2022.2 dzVents Version: 3.0.18
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:44) [GCC 8.3.0]

Signature à jours au : 28/12/2022
Répondre