Salut, pour Tasmota, ça ne fonctionne pas par device. Le service sait décoder les features tel que Tasmota les signale.
Tu as certaines features qui sont absentes ou ne fonctionnent pas ?
Fais une liste. J’aurais peut-être quelques jours de disponible la semaine prochaine.
Salut @AlexTrovato ,
J’utilise Tasmota pour mon lecteur RFID (RC522), l’envoi et réception RF et IR et des interrupteurs de contact (en tant que capteurs). Soient les commandes et valeurs reçues :
- IrSend (envoyé via commande http) ;
- RfSend (envoyé via commande http) ;
- IRrcv : {“IrReceived”:{“Protocol”:“value”,“Bits”:value,“Data”:value}} ;
- RFrcv : {“RfReceived”:{“Data”:“hex-value”,“Bits”:value,“Protocol”:value,“Pulse”:value}} ;
- RFID : MQT: tele/tasmota_XXXX/SENSOR = {“Time”:“value”,“RC522”:{“UID”:“value”,“Data”:“value”,“Type”:“value”}} ;
- Switchs : MQT: tele/tasmota_XXXX/SENSOR = {“Time”:“value”,“Switch3”:“OFF”,“Switch4”:“ON”} ;
- Boutons : MQT: stat/tasmota_XXXX/RESULT = {“Button1”:{“Action”:“DOUBLE”}} (ou single, triple, quad, penta et hold)
Voilà. En ce moment, je contourne le “manque” en utilisant la fonction “Rule” pour dire à Tasmota de poster chez Gladys en MQTT.
Si je peux aider…
Ok, ça va être plus compliqué que prévu, je me souviens pourquoi je n’avais pas implémenté ces features IR et RF.
Les valeurs ne sont pas numériques, mais des chaînes de caractère.
Je vais donc devoir travailler sur le cœur de Gladys pour gérer correctement ce genre de valeur.
Je te demanderai certainement de tester l’image contenant les améliorations dès que tout sera prêt.
Juste une question, pour IR et/ou RF, l’envoie de commande via HTTP est suffisant ?
Car pour intégrer proprement cela dans Gladys, il va falloir faire de très gros changements sur le service Tasmota.
Histoire de ne pas me tromper, peux-tu m’envoyer le résultat de la commande MQTT cmnd/tasmota_XXXX/status stp ?
Si ça pose problème, ne te prends pas la tête avec ça, l’utilisation de la fonction ‹ rule › fonctionne très bien (mais est moins dans l’esprit ‹ user friendly › de Gladys)
Ce serait trop facile ![]()
Pas de problème, je ferai de mon mieux !
Oui, sans souci ! Ça doit pouvoir marcher en MQTT mais ça nécessite de publier sur un topic spécifique et Gladys n’est pas trop d’accord ![]()
Sur quel(s) device(s) ? RFID, switches, boutons, IR/RF send ou IR/RF rcv?
Le module RFID renvoie
15:25:24.193 CMD: cmnd/tasmota_C5B00A/status
15:25:24.201 MQT: stat/tasmota_C5B00A/STATUS = {"Status":{"Module":0,"DeviceName":"Barrière_Scan","FriendlyName":["Barriere_Scan"],"Topic":"tasmota_C5B00A","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
15:25:24.318 MQT: stat/tasmota_C5B00A/STATUS11 = {"StatusSTS":{"Time":"2021-07-11T15:25:24","Uptime":"14T22:08:30","UptimeSec":1289310,"Heap":28,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":298,"Wifi":{"AP":1,"SSId":"XXXXX","BSSId":"XXXXX","Channel":6,"RSSI":90,"Signal":-55,"LinkCount":79,"Downtime":"0T00:11:52"}}}
15:25:24.416 MQT: stat/tasmota_C5B00A/STATUS8 = {"StatusSNS":{"Time":"2021-07-11T15:25:24"}}
Le module avec bouton renvoie
15:45:25.892 CMD: cmnd/tasmota_067277/status
15:45:25.899 MQT: stat/tasmota_067277/STATUS = {"Status":{"Module":8,"DeviceName":"Liseuse","FriendlyName":["Tasmota"],"Topic":"tasmota_067277","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
15:45:26.052 MQT: stat/tasmota_067277/STATUS11 = {"StatusSTS":{"Time":"2021-07-11T15:45:26","Uptime":"3T04:38:40","UptimeSec":275920,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"POWER":"OFF","Wifi":{"AP":1,"SSId":"XXXXXXX","BSSId":"XXXXXXX","Channel":6,"Mode":"11n","RSSI":52,"Signal":-74,"LinkCount":2,"Downtime":"0T00:00:09"}}}
15:45:26.138 MQT: stat/tasmota_067277/STATUS8 = {"StatusSNS":{"Time":"2021-07-11T15:45:26"}}
Pas sûr que ça t’aide, je continue?
Merci pour tout!
Super, en fait c’est surtout les IR et RF qui m’intéresse, étant de potientiels actionneurs.
Voilà pour le Wemos qui gère tout ça :
10:27:00.766 MQT: stat/tasmota_D186E6/STATUS = {"Status":{"Module":0,"DeviceName":"RFTransmitter","FriendlyName":["RFTransmitter"],"Topic":"tasmota_D186E6","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0}}
10:27:00.885 MQT: stat/tasmota_D186E6/STATUS11 = {"StatusSTS":{"Time":"2021-07-12T10:27:00","Uptime":"0T00:00:23","UptimeSec":23,"Heap":21,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"XXXXXX","BSSId":"XXXXXX","Channel":6,"RSSI":60,"Signal":-70,"LinkCount":1,"Downtime":"0T00:00:03"}}}
10:27:00.967 MQT: stat/tasmota_D186E6/STATUS8 = {"StatusSNS":{"Time":"2021-07-12T10:27:00","AM2301":{"Temperature":21.4,"Humidity":62.4,"DewPoint":13.9},"TempUnit":"C"}}
Hello!
I again have a problem when I ask Gladys to send me an image from the cam via Telegram.
The difference is that this time I have no response in the chat:
with this nice error:
2022-08-05T10:46:23+0200 <error> index.js:15 (process.<anonymous>) unhandledRejection catched: Promise {
<rejected> NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
at Camera.command (/src/server/lib/device/camera/camera.command.js:32:25)
at EventEmitter.emit (events.js:400:28)
at Event.emit (/src/server/lib/event/index.js:18:16)
}
2022-08-05T10:46:23+0200 <error> index.js:16 (process.<anonymous>) NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
at Camera.command (/src/server/lib/device/camera/camera.command.js:32:25)
at EventEmitter.emit (events.js:400:28)
at Event.emit (/src/server/lib/event/index.js:18:16)

In English it’s OK
In French it’s not working
Problem with the translation files
It works in French too
So your error is strange, it may sound silly, but have you tried restarting Gladys?
@spenceur you need to ask by room, not by the camera’s name! How would you ask that in French?
However, the error you’re getting is due to another error — a French translation of the response is missing in case of an error ^^
Show me the camera in bedroom xyz
xyz is to be replaced with my child’s name.
For that, it doesn’t work either..
However, I do get an image when I write:
Show me the camera bedroom xyz
Which is ugly
You can add a sentence here Gladys/server/config/brain/camera/questions.fr.json at master · GladysAssistant/Gladys · GitHub
Like \"Show me the camera in the %room%\"
Ok strange, c’est peut-être les noms des chambres de tes enfants qui « tricks » l’algo, derrière c’est une boite noire le NLP qui fait ça, il a « appris » avec le modèle, et parfois certains noms un peu spéciaux peuvent le troubler ^^
Uh, though I don’t recommend doing that on your machine; if we find an improvement why not make a PR, but it’s not the user’s job to touch the code ^^
The first names of my children are as « simple » as can be ^^
Isn’t it more the sequence of the words « de » and « la » that it
Yes, that’s what I meant, but I expressed it poorly ![]()
I think we can add this phrasing to the model in a PR, yes! Anyone making a PR? ![]()
Lucky luke


