I have successfully operated the ESP32 Relay board from HE without any modifications. Programming the ESP with in Arduino IDE using code from ESP8266 NodeMCU Relay Module - Control AC Appliances (Web Server) | Random Nerd Tutorials. This creates a webpage for the device, making that part easy to test. Next, use a virtual button and send a get command. Works great, but no return status. Haven't figured out a way to get that yet.
I have been using Kasa plugs, but I wanted more options and to eliminate the need for a plug and socket. I also prefer to use static IPs. This opens up numerous applications for this set up.
You can reflash this board with Hubduino (search a forum for Hubduino) and you will get everything you want.
You can also install Tasmota and use the Tasmota sync drivers from Gary. You will still have the webpage on the device itself for local control and be able to control from HE. This will give you return status also.
But what your doing is a great learning experience.
I looked at both of these in the past, but it looked like each had things I didn't like, but I may have missed some important parts.
I like being able to edit the C code with tweaks to fit my needs. Looking at the GitHub for Tasmota, it looks like each device is packaged; just load it and run it.
Hubduino talks a lot about Thingshield and st_anything, and talks about parent and child devices. Are there different devices to 'relay' between the Hubduino and Hubistat? I have never used either or any other HUB. My previous home automation was X10, or I designed my own pc board, and built my devices. During COVID, I took another look at both Arduino and Raspberry Pi and jumped in. Love them both for different uses. Next, I tried Kasa and added Hubistat. That's where I'm at now. I'd like to replace some of my Kasa devices with Arduino devices that could be wired into module boxes.
I would love to use either of these, but I don't want to give up the ability to edit the code.
I was hoping for a Habitat app like the one for Kasa or maybe a few libraries to add to Arduino IDE to make the connections to HE.
Open for suggestions.
Tasmota is/can be flash and play, however the source code is available and you can tweak it to your needs. I have not found the need to edit the source. There are very few things it doesn't support in the way of sensors, relays, etc.
Hubduino started life on the Samsung Smartthings hub/ecosystem so there are references to that and older technology.
I don't know what your referring to regarding Hubistat (Hubitat maybe?)
The Huduino project gives you access to the source code (for the ESP) and also provides editable drivers for Hubitat to talk with the ESP devices you create.
To use your above referenced ESP32 Relay board in Hubitat terms you could do either or both:
Download and install Hubduino into your Arduino IDE, modify/compile and flash the firmware to the ESP relay. Next Install the appropriate Hubduino Hubitat driver to talk to the ESP32 relay. You can then use the automation capabilities of Hubitat to control your ESP32 relay board.
The same can be done with Tasmota and the Tasmota Sync drivers. Flash Tasmota to the ESP32 relay, configure Tasmota to the specifics of your relay. Install Tasmota sync drivers on you Hubitat hub and add the ESP32 relay as a device, then automate.
I am not aware of any libraries for arduino that are specific to Hubitat. Huduino is the closest.
Thank you for that information. I will look again at Hubitat. It sounds like what I am looking for.
Regarding the parent-child aspect, is there a limit to the number of children one parent can handle? Is it a one-to-one or one per group?
I am not really sure if there is a limit to number of children. That might be better asked in the developers forum.