The cheap insurance is to capture the traffic while the cloud is still alive. Put the device on its own SSID, route it through mitmproxy (or plain tcpdump if it talks HTTP), and keep a few days of request/response pairs. When the service shuts down you already know what the device expects back, which is most of the work for a fake local server. That would have answered the "what does it want every 24 hours" question upthread.
Won't help with devices that pin certificates, but a lot of the cheap ones don't, or never bothered with TLS at all =)