If anybody is interested, I’ve managed to get this to work using the starting point from @XPatt in terms of the mqtt set up.
For the switch, I used the below code:
Hi everyone - just wanted to check if your connection is still working? I can’t see lollipop in my MQTT broker any more. Haven’t changed any settings so not sure what is going on. Tried re-downloading the certificate but doesn’t seem to have made a difference. Just checking if anyone else is having issues? using Mosquitto 2.0.14 as per before - haven’t changed any other settings
Just a quick note – it seems there was a firmware update recently which introduced authentication on the MQTT and RTSP connections. Thankfully I was able to packet capture the lollipop app using PCAPDroid, and find the credentials on the initial RTSP request (since it’s still unencrypted) and add them to HomeAssistant to get it working again.
And from another person ( Tyler)
For anyone with HTTP digest auth that can’t get the login off a packet trace, the full URL (including username/password) is available if you have a rooted Android phone. In com.aoitek.lollipop\databases\LollipopProvider.db you’ll find the baby_camera table with a internal_live_url column.
Hello
Since 10 days the MQTT transmission does not work anymore. Yesterday I updated the firmware and now even the Gneric Camera transmission no longer works. Does anyone have an idea or workaround?
I ended up getting it working by switching over to Node-Red:
Add a mqqt out node into a flow in NodeRed.
Double click it to edit.
From the Server drop-down list select Add new mqtt-broker... and then click edit.
From the Add new mqtt-broker config node panel, enter a name (eg: Lollipop MQTT) and the Lollipop server (eg: 192.168.1.123) with port 1883.
Enable Connect automatically.
Enable Use TLS.
Select Add new tls-config... and click edit
From the Add new tls-config node panel, click the Upload button for Certificate and browse your computer for your saved Lollipop’s certificate (refer to caear1987’s post above for extracting the certificate).
Give it a name (eg: Lollipop Certificate).
Click Add to save and close the panel.
Repeat, and you should now be back at the Edit mqtt out node panel. Set the Topic to: [YOUR_CAMERA_TOPIC]/liveNote (again, refer to caear1987’s post above for obtaining your camera topic name).
By initial RTSP request do you mean on first time connecting via the app or during initial camera setup? I’ve tried both but don’t seem to see any credentials captured in my PCAPDroid RTSP logs. I can find the rtsp://192.168.0.XXX:554/live/long_hex_code/ch00_0 address in these logs, but don’t seem to have a username or password jumping out at me. Was there a specific part of the RTSP logs that you needed to look at to glean this info - or a particular way of triggering that initial unencrypted exchange of credentials? Apologies if this is obvious in the other site input you referred to from James - but I couldn’t find a link to that or any hits from a web search.
Really hoping to get the RTSP packet capture method working, but as a side note - would you be able to share the form of the username/password (i.e. the character types used, length, etc.) - in case I need to try and brute force crack the credentials?