openhab-android
openhab-android copied to clipboard
Voice commands are no longer being sent
Actual behaviour
When I click on the microphone button whether in the application or on the widget, it understands very well what I say to it but afterwards, I receive a notification with an http 500 code which tells me voice command update failed. And that, only with voice commands, all the other items are sent very well!
Expected behaviour
The command should send just as it did before.
Steps to reproduce
- Open the app and click on the microphone icon 2. Say something
- Notice that the command does not send!
Can you reproduce the issue in demo mode?
No
Environment data
Client
- Android version: 12
- Device model: OnePlus 8 Pro
- App version : 2.20.0
- Build flavor : Foss
- Device language: French
Server
- Server version: The latest of May 16, 2022
- Reverse Proxy: ?
- Authentication method : API Key
openHAB Cloud
- Self hosted cloud or myopenhab.org: No
- openHAB Cloud version : /
- Authentication method : user and password
Logs
App log
Click to expand
-----------------------
Device information
Model: IN2023
Manufacturer: OnePlus
Brand: OnePlus
Device: OnePlus8Pro
Product: OnePlus8Pro_EEA
OS: 12
Display: 1080x2283, 3.0 density
Data usage policy: DataUsagePolicy(canDoLargeTransfers=true, loadIconsWithState=true, autoPlayVideos=true, canDoRefreshes=true), data saver: 1, battery saver: false
-----------------------
--------- beginning of events
05-16 19:24:22.839 18853 18853 I wm_on_top_resumed_lost_called: [25029421,org.openhab.habdroid.ui.LogActivity,topStateChangedWhenResumed]
05-16 19:24:22.850 18853 18853 I wm_on_paused_called: [25029421,org.openhab.habdroid.ui.LogActivity,performPause]
05-16 19:24:22.864 18853 18853 I wm_on_stop_called: [25029421,org.openhab.habdroid.ui.LogActivity,STOP_ACTIVITY_ITEM]
--------- beginning of main
05-16 19:24:26.281 18853 18853 D BackgroundTasksManager: onReceive() with intent org.openhab.habdroid.background.action.VOICE_RESULT
05-16 19:24:26.281 18853 18853 I BackgroundTasksManager: Recognized text: test
05-16 19:24:26.282 18853 18853 D BackgroundTasksManager: Scheduling work for tag voiceCommand
05-16 19:24:26.334 18853 31182 D ItemUpdateWorker: Trying to get connection
05-16 19:24:26.335 18853 18890 I WM-Processor: Moving WorkSpec (d29c566c-516d-4eb1-bcd6-a61c5f8560ec) to the foreground
05-16 19:24:26.356 18853 18853 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=org.openhab.habdroid/androidx.work.impl.foreground.SystemForegroundService (has extras) }
05-16 19:24:26.362 18853 18853 E penhab.habdroi: Invalid ID 0x00000000.
05-16 19:24:26.362 18853 18853 E penhab.habdroi: Invalid ID 0x00000000.
05-16 19:24:26.362 18853 18853 E penhab.habdroi: Invalid ID 0x00000000.
05-16 19:24:26.362 18853 18853 E penhab.habdroi: Invalid ID 0x00000000.
05-16 19:24:28.000 18853 18853 I wm_on_restart_called: [25029421,org.openhab.habdroid.ui.LogActivity,performRestartActivity]
05-16 19:24:28.001 18853 18853 I wm_on_start_called: [25029421,org.openhab.habdroid.ui.LogActivity,handleStartActivity]
05-16 19:24:28.001 18853 18853 I wm_on_resume_called: [25029421,org.openhab.habdroid.ui.LogActivity,RESUME_ACTIVITY]
And sometimes the http error is 400 and not 500!
Can you post the server side log? Did you enter a WiFi SSID in the app settings?
Can you post the server side log? Did you enter a WiFi SSID in the app settings?
Ho, I didn't receive any notifications, I hadn't seen you, I had replied to me, I just received that you closed. But in the server side log there is nothing that appears as if it received nothing. And yes, I put my wifi SSID but I didn't change it and it worked fine before. Thanks for your reply and sorry for the delay in mine.
I added some more debug messages: https://github.com/openhab/openhab-android/pull/2943
I'll poke you if they are available in the beta version.
Well ! Thanks !
2.20.13-beta should be live in Play Store soon.
Nice, thank you very mutch !!
2.20.13-beta only contains more debug messages, but no fix. Can you capture the log after trying to send a voice command?
Ok, I saw that it still did not work but I did not reopen the subject because it is surely a problem of the server!?
Here is !
Thanks !
The server returns "Bad Request". Can you check the server logs or reverse proxy logs for an evidence why "Bad request" is returned?
Hello,
Yes, I can, but I don't know how to do it ?
How did you install openHAB? Via openhabian?
There's a doc page about logging: https://www.openhab.org/docs/administration/logging.html#logging-in-openhab
Ralala, I hadn't seen this message yet... I installed OpenHab via the official site. File to flash on the RPi's SD card.
And I'll send you the server log during the day if I don't forget...
@mueller-ma , I just went to see by typing log:tail in the openhab console but nothing appeared for the microphone. Yet I still get http 400, 500 errors on the phone. And on top of that, I have a lot of red line telling me this:
11:42:00.334 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Capteurdouverture_TemperatureSensor.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Capteurdouverture_TemperatureSensor.rrd] is not a RRD4J RRD file
11:42:00.397 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Capteurdetemperature2_Temperature.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Capteurdetemperature2_Temperature.rrd] is not a RRD4J RRD file
11:42:00.409 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Scriban_Brightness.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Scriban_Brightness.rrd] is not a RRD4J RRD file
11:42:00.423 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Capteurdetemperature1_Temperature.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Capteurdetemperature1_Temperature.rrd] is not a RRD4J RRD file
11:42:00.443 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/PontMiLight_Color.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/PontMiLight_Color.rrd] is not a RRD4J RRD file
11:42:00.515 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Capteurdouverture.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Capteurdouverture.rrd] is not a RRD4J RRD file
11:42:00.524 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Capteurdetemperature_Humidity2.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Capteurdetemperature_Humidity2.rrd] is not a RRD4J RRD file
11:42:00.547 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/ChambredeSebastienRoom_Couleur.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/ChambredeSebastienRoom_Couleur.rrd] is not a RRD4J RRD file
11:42:00.561 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Etagere.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Etagere.rrd] is not a RRD4J RRD file
11:42:00.593 [ERROR] [rd4j.internal.RRD4jPersistenceService] - Could not create rrd4j database file '/var/lib/openhab/persistence/rrd4j/Plafond_Couleur.rrd': Invalid file header. File [/var/lib/openhab/persistence/rrd4j/Plafond_Couleur.rrd] is not a RRD4J RRD file
Do you have any idea what it could be and how to fix it? If I have to try other manipulations in order to test and understand what is wrong, I can always try other things if you still have ideas. Thanks
For these rd4j errors I recommend to ask in the community forum.
Do you use a reverse proxy that might have an additional log? Is there anything useful when you enter tail -f /var/log/openhab/*log
and then try to send a voice command?
Ok. I'll do that! I don't know what this "reverse proxy" is. I just ran the command you gave me but I have exactly the same thing except that I have no more color and everything is monochrome.