Closed bsaurusrex closed 1 year ago
The devices are all generic but run under tuya cloud. There is a lot of information available for home assistant addons like "localtuya" or using the traditional tuya cloud API.
I’m not likely to end up supporting the cloud, but if there is a (user friendly) way to support the devices locally I might be open. Is there any API documentation out there for local device support?
The critical feature is some way for the switch to shut off if it doesn’t receive a command in a certain period of time instructing it to stay on.
Localtuya is an option. https://github.com/rospogrigio/localtuya
I picked up a Kasa outlet.
Sounds good. I’m still open to adding support for other devices, but the two crucial features I’d like to have in a device are a “dead man’s switch” and local connectivity.
For Kasa switches there is a feature that lets the BrewPi-ESP tell the switch every second, “Hey, stay on for 5 more seconds”. If the BrewPi then crashes (or the router goes down) then you don’t have the risk of your heater/cooler staying on forever and boiling/freezing your beer as it will automatically shut off once that timer is reached.
Kasa switches also happen to have a local, non-cloud protocol which means that if your internet connection fails for any reason (but your router stays alive), your beer will continue to be controlled.
Can you add links to these devices? (Even better - links to an API for them?)