Ce Forum passera en lecture seule en janvier 2020
Image
Merci de vous rendre sur https://community.jeedom.com maintenant pour vos prochains postes ;)

[DEV] Plugin Alexa-Api en BETA uniquement

Sous forum pour les plugins Dialogflow et Google Assistant
Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6488
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Nebz » 25 juin 2019, 15:45

aureil6 a écrit :Non, je suis sur le script alexa_remote_control.sh dont on parle au début de ce thread. Il me suffit donc d'installer ton plugin Alexa-Api pour que ça fonctionne ? J'avoue que je n'ai pas essayé, le script fonctionnait bien jusqu'à présent
Plus ou moins, le problème que tu as vient de chez Amazon.

Dans le plug-in en bêta, on a contourné le problème rapidement mais on (sigalou) est en train d'implémenter la méthode correcte et définitive.

Par contre comme ce n'est pas terminé, on a pas encore mis en stable.

(Pour rappel le core jeedom n'a pas besoin d'être en bêta pour installer CE plug-in en bêta)


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

neoxyne
Timide
Messages : 2
Inscription : 25 juin 2019, 16:20

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par neoxyne » 25 juin 2019, 16:23

Bonjour, Comment peut-on accéder à la version BETA d'Alexa API ? je ne vois que l'install stable sur le market ?

J'ai aussi le soucis des commandes vocales HS avec le alexa remote control et j'aimerai pouvoir retrouver la voix x)

Merci !

neoxyne
Timide
Messages : 2
Inscription : 25 juin 2019, 16:20

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par neoxyne » 25 juin 2019, 17:00

Je m'auto répond! j'ai du désactiver l'accès aux BETA dans mon market... tout est bon maintenant !

aureil6
Timide
Messages : 18
Inscription : 28 janv. 2018, 19:26

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par aureil6 » 25 juin 2019, 18:07

Ok, merci. Je teste avec le plugin en beta ce soir

Avatar de l’utilisateur
tomdom
Actif
Messages : 925
Inscription : 14 nov. 2016, 05:46

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par tomdom » 25 juin 2019, 20:52

Bonjour,

Quand dans un scénario, j'utilise la commande "Delete All Alarms" avec comme type "Reminder" et status "ON", ça m'efface toutes les alarmes actives mais pas les rappels.
Il y a 10 catégories de personnes, celles qui connaissent le binaire et les autres
.

Avatar de l’utilisateur
sigalou
Actif
Messages : 1075
Inscription : 23 janv. 2017, 16:02

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par sigalou » 25 juin 2019, 21:04

tomdom a écrit :
25 juin 2019, 20:52
Bonjour,

Quand dans un scénario, j'utilise la commande "Delete All Alarms" avec comme type "Reminder" et status "ON", ça m'efface toutes les alarmes actives mais pas les rappels.
Ha ? Ça devrait être l'inverse.
Et quand tu mets Type alarms, ça t'efface les rappels ?
Sigalou

Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog



Avatar de l’utilisateur
tomdom
Actif
Messages : 925
Inscription : 14 nov. 2016, 05:46

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par tomdom » 25 juin 2019, 21:30

Non :) ça efface aussi les alarmes.
Il y a 10 catégories de personnes, celles qui connaissent le binaire et les autres
.

Avatar de l’utilisateur
tomdom
Actif
Messages : 925
Inscription : 14 nov. 2016, 05:46

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par tomdom » 25 juin 2019, 21:36

Les logs :

Code : Tout sélectionner

[2019-6-25 21:33:57] Alexa-API: DeleteAllAlarms
[2019-6-25 21:33:57] Alexa-Remote: No authentication check needed (time elapsed 44686)
[2019-6-25 21:33:57] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/notifications?cached=true&_=1561491237978","method":"GET","timeout":10000,"headers":{}}
[2019-6-25 21:33:58] Alexa-Remote: Response: {"notifications":[{"alarmTime":0,"createdDate":1560915961140,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-21c2f51f-e8b9-365d-bce3-99a5dbcd61f4","lastUpdatedDate":1561352434142,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"21c2f51f-e8b9-365d-bce3-99a5dbcd61f4","originalDate":"2019-06-24","originalTime":"07:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"8"},{"alarmTime":2871759540000,"createdDate":1561489206897,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-5cc059f3-4972-4fe3-aaff-426c9b774661","lastUpdatedDate":1561489206897,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"5cc059f3-4972-4fe3-aaff-426c9b774661","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":2871759540000,"createdDate":1561489207327,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-61cd40ab-c6f8-4d49-bc15-6cfe65a62dc0","lastUpdatedDate":1561489207328,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"61cd40ab-c6f8-4d49-bc15-6cfe65a62dc0","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":2871759540000,"createdDate":1561491006500,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-654897aa-0f0b-4a6a-a2a0-f794bf837d15","lastUpdatedDate":1561491006501,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"654897aa-0f0b-4a6a-a2a0-f794bf837d15","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":2871759540000,"createdDate":1561490105606,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-704cb9e1-c2c3-4a02-8fe3-9aeebf9973f1","lastUpdatedDate":1561490105606,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"704cb9e1-c2c3-4a02-8fe3-9aeebf9973f1","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":0,"createdDate":1558695795220,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-73070c43-5c27-3e73-82e8-db3d509d8b71","lastUpdatedDate":1559918712324,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"73070c43-5c27-3e73-82e8-db3d509d8b71","originalDate":"2019-06-07","originalTime":"16:45:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"8"},{"alarmTime":0,"createdDate":1561013245765,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-7e0ae258-40d3-3293-993f-454d6eb96719","lastUpdatedDate":1561028418067,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"7e0ae258-40d3-3293-993f-454d6eb96719","originalDate":"2019-06-20","originalTime":"13:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"},{"alarmTime":0,"createdDate":1561488532218,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-901a7654-4a10-434e-b275-5809e1f3ce07","lastUpdatedDate":1561488532503,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"901a7654-4a10-434e-b275-5809e1f3ce07","originalDate":"2019-06-26","originalTime":"05:45:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":"XXXX-WD","remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"3"},{"alarmTime":2871759540000,"createdDate":1561491005404,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-9bd11579-db2e-45aa-967e-c6676f59e04d","lastUpdatedDate":1561491005404,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"9bd11579-db2e-45aa-967e-c6676f59e04d","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":0,"createdDate":1561031839642,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-a083320e-40b1-3bbd-8f1d-3904a39c73c8","lastUpdatedDate":1561035016414,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"a083320e-40b1-3bbd-8f1d-3904a39c73c8","originalDate":"2019-06-20","originalTime":"14:50:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"},{"alarmTime":2871759540000,"createdDate":1561490106647,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-c6dfff2e-a241-41b8-be09-a526280b8afd","lastUpdatedDate":1561490106647,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"c6dfff2e-a241-41b8-be09-a526280b8afd","originalDate":"2060-12-31","originalTime":"23:59:00.000","personProfile":null,"provider":null,"rRuleData":{"byMonthDays":null,"byWeekDays":null,"flexibleRecurringPatternType":null,"frequency":null,"intervals":null,"nextTriggerTimes":null,"notificationTimes":null,"recurEndDate":null,"recurEndTime":null,"recurStartDate":null,"recurStartTime":null,"recurrenceRules":null},"recurringPattern":null,"remainingTime":0,"reminderLabel":"Test Alexa-api","skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"ON","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Reminder","version":"2"},{"alarmTime":0,"createdDate":1560758511246,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-e1ac9001-58c9-3f7c-a29e-9623afae0b6c","lastUpdatedDate":1560760713692,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"e1ac9001-58c9-3f7c-a29e-9623afae0b6c","originalDate":"2019-06-17","originalTime":"12:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"},{"alarmTime":0,"createdDate":1561109345046,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-e5fff6d5-a0e3-3b4b-9998-426c032df27d","lastUpdatedDate":1561117521080,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"e5fff6d5-a0e3-3b4b-9998-426c032df27d","originalDate":"2019-06-21","originalTime":"13:45:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"},{"alarmTime":1558828800000,"createdDate":1558869518878,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-f4a2b27b-9769-3bda-a8b1-6d1d7647dad8","lastUpdatedDate":1558874836570,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"f4a2b27b-9769-3bda-a8b1-6d1d7647dad8","originalDate":"2019-05-26","originalTime":"15:00:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"},{"alarmTime":0,"createdDate":1560941599172,"deferredAtTime":null,"deviceSerialNumber":"G090P308822205DW","deviceType":"A7WXQPH584YP","extensibleAttribute":null,"geoLocationTriggerData":null,"id":"A7WXQPH584YP-G090P308822205DW-f577f27a-9fe4-35de-ac52-61fb14967066","lastUpdatedDate":1560945314390,"musicAlarmId":null,"musicEntity":null,"notificationIndex":"f577f27a-9fe4-35de-ac52-61fb14967066","originalDate":"2019-06-19","originalTime":"13:55:00.000","personProfile":null,"provider":null,"rRuleData":null,"recurringPattern":null,"remainingTime":0,"reminderLabel":null,"skillInfo":null,"snoozedToTime":null,"sound":{"displayName":"Simple Alarm","folder":null,"id":"system_alerts_melodic_01","providerId":"ECHO","sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_01.mp3"},"status":"OFF","targetPersonProfiles":null,"timeZoneId":null,"timerLabel":null,"triggerTime":0,"type":"Alarm","version":"4"}]}
[2019-6-25 21:33:58] Alexa-API - deleteallalarms req.query.type: reminder
[2019-6-25 21:33:58] Alexa-API - DeleteAllAlarms delete id: A7WXQPH584YP-G090P308822205DW-901a7654-4a10-434e-b275-5809e1f3ce07
[2019-6-25 21:33:58] Alexa-Remote: No authentication check needed (time elapsed 45058)
[2019-6-25 21:33:58] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/notifications/A7WXQPH584YP-G090P308822205DW-901a7654-4a10-434e-b275-5809e1f3ce07","method":"DELETE","timeout":10000,"headers":{}}
[2019-6-25 21:33:58] Alexa-Remote: Response: OK

Code : Tout sélectionner

[2019-06-25 21:33:57][DEBUG] : buildDeleteAllAlarmsRequest
[2019-06-25 21:33:57][INFO] : Request : http://10.10.10.82:3456/deleteallalarms?type=reminder&status=ON&device=G090P308822205DW
[2019-06-25 21:33:57][DEBUG] : Result : {"value":"Fini"}
Il y a 10 catégories de personnes, celles qui connaissent le binaire et les autres
.

aureil6
Timide
Messages : 18
Inscription : 28 janv. 2018, 19:26

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par aureil6 » 25 juin 2019, 22:35

Nebz a écrit :
25 juin 2019, 15:45
aureil6 a écrit :Non, je suis sur le script alexa_remote_control.sh dont on parle au début de ce thread. Il me suffit donc d'installer ton plugin Alexa-Api pour que ça fonctionne ? J'avoue que je n'ai pas essayé, le script fonctionnait bien jusqu'à présent
Plus ou moins, le problème que tu as vient de chez Amazon.

Dans le plug-in en bêta, on a contourné le problème rapidement mais on (sigalou) est en train d'implémenter la méthode correcte et définitive.

Par contre comme ce n'est pas terminé, on a pas encore mis en stable.

(Pour rappel le core jeedom n'a pas besoin d'être en bêta pour installer CE plug-in en bêta)


Envoyé de mon iPhone en utilisant Tapatalk
Bien installé le plugin en Beta, et sans mettre le core jeedom en beta (merci pour le tuyau).

Miracle, mon Alexa a recommencé à parler ! Un grand merci.

Greg0307
Timide
Messages : 181
Inscription : 13 févr. 2016, 08:55
Localisation : Le Crés

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Greg0307 » 26 juin 2019, 07:22

Bonjour à tous,

En version stable du market, ne fonctionne plus erreur ni crsf fond malgré réinstallation des dépendances et régénération du cookie réussie.
Une idée ?


Envoyé de mon iPad en utilisant Tapatalk

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6488
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Nebz » 26 juin 2019, 08:56

Oui, lis plus haut ;)
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Greg0307
Timide
Messages : 181
Inscription : 13 févr. 2016, 08:55
Localisation : Le Crés

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Greg0307 » 28 juin 2019, 19:43

Nebz a écrit :Oui, lis plus haut ;)
J’en déduis passage en bêta, fais ok.
Merci


Envoyé de mon iPhone en utilisant Tapatalk

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6488
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Nebz » 28 juin 2019, 19:55

Mais depuis, il semblerait que amazon soit revenu sur ses modification et que la stable fonctionne à nouveau...


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
sigalou
Actif
Messages : 1075
Inscription : 23 janv. 2017, 16:02

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par sigalou » 29 juin 2019, 09:46

Cool, donc tout va refonctionner et on peut terminer sereinement la Beta.
Sigalou

Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog



Avatar de l’utilisateur
tomdom
Actif
Messages : 925
Inscription : 14 nov. 2016, 05:46

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par tomdom » 29 juin 2019, 19:36

Bonjour,

J'ai trouvé le problème du cron 15 qui génère constamment des rappels et des messages de relance.
Dans la boucle

Code : Tout sélectionner

foreach($json as $item)
                        {
                                if ($item['type']!="Reminder") break;
                                //log::add('alexaapi', 'debug', '*********************************************************On boucle sur item:'.$item['originalDate']);
                                if (($item['originalDate']=="2060-12-31") && ($item['reminderLabel']=="Test Alexa-api")) {
.....
de la méthode public function test2060() du fichier alexaapi.class.php il faut remplacer la ligne

Code : Tout sélectionner

 if ($item['type']!="Reminder") break;
par

Code : Tout sélectionner

 if ($item['type']!="Reminder") continue;
En effet la requête

Code : Tout sélectionner

$json=file_get_contents("http://" . config::byKey('internalAddr') . ":3456/reminders");

retourne aussi bien des Reminder que des Alarm. Donc le break fait sortir de la boucle si on trouve une alarme avant les rappels
Il y a 10 catégories de personnes, celles qui connaissent le binaire et les autres
.

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6488
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Nebz » 29 juin 2019, 19:56

tomdom a écrit :Bonjour,

J'ai trouvé le problème du cron 15 qui génère constamment des rappels et des messages de relance.
Dans la boucle

Code : Tout sélectionner

foreach($json as $item)
                        {
                                if ($item['type']!="Reminder") break;
                                //log::add('alexaapi', 'debug', '*********************************************************On boucle sur item:'.$item['originalDate']);
                                if (($item['originalDate']=="2060-12-31") && ($item['reminderLabel']=="Test Alexa-api")) {
.....
de la méthode public function test2060() du fichier alexaapi.class.php il faut remplacer la ligne

Code : Tout sélectionner

 if ($item['type']!="Reminder") break;
par

Code : Tout sélectionner

 if ($item['type']!="Reminder") continue;
En effet la requête

Code : Tout sélectionner

$json=file_get_contents("http://" . config::byKey('internalAddr') . ":3456/reminders");

retourne aussi bien des Reminder que des Alarm. Donc le break fait sortir de la boucle si on trouve une alarme avant les rappels
Bien vu ! Je corrige


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
Nebz
Modérateur
Messages : 6488
Inscription : 23 avr. 2017, 01:37
Localisation : Belgique

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Nebz » 29 juin 2019, 19:59

C'est fait ... si tu mets à jour via github ça fonctionnera, sinon demain ;-)


Envoyé de mon iPhone en utilisant Tapatalk
Dev plugin Homebridge

- Fournissez les logs, la capture de vos commandes et vos types génériques svp
- Constructif et bonne humeur, on est pas là pour se lancer des périfs z-wave à la figure :-)

Un petit don ça fait toujours plaisir :)

Avatar de l’utilisateur
sigalou
Actif
Messages : 1075
Inscription : 23 janv. 2017, 16:02

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par sigalou » 29 juin 2019, 22:09

Bien vu :D Je pull
Sigalou

Utilisateur/Développeur Plugin Jeedom
Créateur des plugins Alexa-API & WatchDog



Avatar de l’utilisateur
tomdom
Actif
Messages : 925
Inscription : 14 nov. 2016, 05:46

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par tomdom » 30 juin 2019, 11:32

Bonjour,
Nebz a écrit :
29 juin 2019, 19:59
C'est fait ... si tu mets à jour via github ça fonctionnera, sinon demain ;-)
Màj faite. Je confirme que la correction a bien été reportée ;)
Il y a 10 catégories de personnes, celles qui connaissent le binaire et les autres
.

Moctesuma
Timide
Messages : 63
Inscription : 20 nov. 2018, 22:09
Localisation : Drôme

Re: [DEV] Plugin Alexa-Api en BETA uniquement

Message par Moctesuma » 02 juil. 2019, 19:39

Hello la Team Dev ;)

je viens vous rapporter un petit souci que je viens d'identifier.
Les commandes "Volume" génèrent plusieurs "requêtes" et parfois on obtient le message suivant:

Alexa-Remote: Response: {"message":"Rate exceeded"}

Dans le cas de scénarii, cela me pose de gros problèmes car au final le "speak" n'est même pas joué.
Avec un scénario tout simple comme celui-ci:
  • Mettre le volume à 40
  • Sleep 1 seconde
  • Speak
  • Sleep 3 secondes
  • Mettre le volume à 30
j'ai ce type de logs

Code : Tout sélectionner

[2019-7-2 18:57:12] Alexa-API: Lancement /Volume
[2019-7-2 18:57:12] Alexa-API: device: G090U50990350MNF & value: 40
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262248)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262251)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262255)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262259)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262263)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:12] Alexa-Remote: No authentication check needed (time elapsed 262268)
[2019-7-2 18:57:12] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":40},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:13] Alexa-Remote: Response: OK
[2019-7-2 18:57:13] Alexa-Remote: Response: OK
[2019-7-2 18:57:13] Alexa-Remote: Response: OK
[2019-7-2 18:57:13] Alexa-Remote: Response: OK
[2019-7-2 18:57:13] Alexa-Remote: Response: OK
[2019-7-2 18:57:14] Alexa-API: Lancement /Speak
[2019-7-2 18:57:14] Alexa-API: device: G090U50990350MNF
[2019-7-2 18:57:14] Alexa-API: text: Désolée, mais l'alarme est déjà coupée
[2019-7-2 18:57:14] Alexa-Remote: No authentication check needed (time elapsed 263321)
[2019-7-2 18:57:14] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"textToSpeak\":\"Désolée, mais l'alarme est déjà coupée\"},\"type\":\"Alexa.Speak\"}}","status":"ENABLED"}
[2019-7-2 18:57:14] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:14] Alexa-Remote: Response: {"message":"Rate Exceeded"}
[2019-7-2 18:57:16] Alexa-API: Lancement /Volume
[2019-7-2 18:57:16] Alexa-API: device: G090U50990350MNF & value: 30
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265612)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265619)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265625)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265642)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265648)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: No authentication check needed (time elapsed 265655)
[2019-7-2 18:57:16] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"A32DOYMUN6DTXA\",\"deviceSerialNumber\":\"G090U50990350MNF\",\"locale\":\"fr-FR\",\"customerId\":\"A3TTCMPLOAZAVI\",\"value\":30},\"type\":\"Alexa.DeviceControls.Volume\"}}","status":"ENABLED"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
[2019-7-2 18:57:16] Alexa-Remote: Response: {"message":"Rate exceeded"}
Est-ce un comportement normal ou pas ?

Pour info, je suis sur la dernière Beta.

Merci pour votre travail les gars :!:
Jeedom sur Raspberry Pi 3+SSD, Rfxcom et Aeotec Z-Stick - Gen 5,
5 Oregon THGN132, 2 Fibaro FGMS-001, 4 Danfoss LC13, 1 Micromodule Fibaro FGS-212

Répondre

Revenir vers « [Plugin Officiel] Assistant vocaux »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité