KaufHA / kauf-rgb-switch

Files for the KAUF RGB Wall Switch
21 stars 8 forks source link

Question about initial configuration with HA #16

Open den-mac opened 8 months ago

den-mac commented 8 months ago

Hi, so I'm a little stuck and was hoping to get some advice. I have a new RGB switch that I'm trying to get set up with HA.

I got it connected via ESPHome and it's there and working, but there are a bunch of the switch boxes that showed up on the integrations page with blue reconfigure buttons. Tried to click those and stuff and nothing happens, so I don't know what to do there. But it doesn't matter now as I wanted to set a static IP, and the only way I know how is to configure the yaml file by clicking EDIT.

When I do that and set up my new config, it tries to OTA update and says there's not enough storage space for the image. I know there's a limit but I also don't know how to specify which image I should use, or even what that image should be.

So I went to the web UI of the switch and there's a place to upload a tasmota image, which I also use, so I was able to get the [tasmota-lite.bin.gz image uploaded and started up. I use it's local AP and configured by wifi, and then configured mqtt, and it's connected now to HA via tasmota. But now all those settings to set up the RGB colors (on/off, big/small) are gone and I don't know how to fix that.

I'm left with a single color push button now.

So I maybe might want to go back to ESPhome? I want a static IP though. And I don't know how to pick an image to use...

Any help here would be appreciated!

P.S. All those rouge things in the integrations with reconfigure buttons are gone now once I deleted the ESP Kauf device.

den-mac commented 8 months ago

Also, here's my config line I got from https://templates.blakadder.com/kauf_SRF10.html

{"NAME":"Kauf SRF10","GPIO":[448,1,450,1,450,449,1,1,449,32,448,224,1,1],"FLAG":0,"BASE":18}
den-mac commented 8 months ago

Also, I went ahead and built a new binary from ESPhome using the kauf-rgbs.yaml file and it's over 600k, so I don't think I can upload that either to revert back to ESP from tasmota?

den-mac commented 8 months ago

Update here - never mind answering I have tried so many things and am giving up and returning this to Amazon. Sorry it didn't work out for me.

bkaufx commented 8 months ago

For the original problem of the file size when flashing from the dashboard, in the yaml you need to remove api encryption as described here: https://github.com/KaufHA/common#binary-size-error

To get back to ESPHome from Tasmota, you can flash the bin.gz update file from here, it should be small enough. If not, flash from regular tasmota to tasmota-minimal first. https://github.com/KaufHA/kauf-rgb-switch/releases/download/v1.33/kauf-rgbsw-v1.33-update.bin.gz

I don't think Tasmota supports multiple RGB lights so I'm not sure you are ever going to get as much functionality with Tasmota as with ESPHome. Sorry it didn't work out for you.

den-mac commented 8 months ago

One last note here - I was able to find that image you mentioned to the 1.33 version so I downloaded it and was able to reflash to that version, and everything went back to the ESP version with HA. I still had all those rogue integration boxes show up with reconfigure buttons but I figured I'd try to work through that later.

But I still needed to set a static IP, so I edited the config of the device that got "adopted" and added the few lines needed for a static IP config. When it rebuilt the image, it complained that the new image was too big to push to the switch, so I got stuck again.

I didn't change anything else in the config, and it did build at least once and push to the switch, so I don't know what I did wrong there to desire a static IP config.