Error: java.lang.NullPointerException: Cannot invoke method toInteger() on null object (speak)
So this was working for a couple days. Now, its broke. Only thing interesting event since it was working was I had to power cycle my network (switch, router, AP's, etc).
I've isolated the issue down to this:
- A sonos speaker can play a track via a notification rule in Hubitat
- The same sonos speaker (actually all 6 of them) cannot use Text to Speech.
- The Device UI page on Hubitat says the status of the speaker is stopped and shows no other details.
Things I've tried:
- Removing the speaker.
- Restarting the speaker (power cycle)
- Removing all sonos speakers and re-adding
- Disabling all other rules involving sound or sonos speakers.
I enabled debug logging and performed the following:
- Open a door that causes the notification rule to play a track on the Sonos speaker [SUCCESS]
- Use the device UI in Hubitat with Text: "test" and Volume Level: "50" and click the Speak button [FAILURE]
Resulting Log (read from bottom up). First line is where it fails to try Text to Speech via the Device Speak button.
dev:692021-06-04 03:39:29.982 pm errorjava.lang.NullPointerException: Cannot invoke method toInteger() on null object (speak)
dev:42021-06-04 03:38:59.129 pm debugSunroom Door is closed
dev:42021-06-04 03:38:59.126 pm debugSunroom Door is closed
dev:692021-06-04 03:38:59.060 pm debugparse description:mac:7828CA027292, ip:c0a801b3, port:578, headers:SFRUUC8xLjEgMjAwIE9LDQpDT05URU5ULUxFTkdUSDogMjQwDQpDT05URU5ULVRZUEU6IHRleHQveG1sOyBjaGFyc2V0PSJ1dGYtOCINCkVYVDogDQpTZXJ2ZXI6IExpbnV4IFVQblAvMS4wIFNvbm9zLzYzLjItODkyNjAgKFpQUzEzKQ0KQ29ubmVjdGlvbjogY2xvc2UNCg==, body:PHM6RW52ZWxvcGUgeG1sbnM6cz0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHM6ZW5jb2RpbmdTdHlsZT0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbmNvZGluZy8iPjxzOkJvZHk+PHU6UGxheVJlc3BvbnNlIHhtbG5zOnU9InVybjpzY2hlbWFzLXVwbnAtb3JnOnNlcnZpY2U6QVZUcmFuc3BvcnQ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