I did mess up my ESPEasy 8266 that was used for this since ages, but as I’m working on some ESPHome things for work thought it was a nice ‘if it’s broken, lets fix it’ moment. For those of you interested in test-driving and/or improving: https://github.com/CoMPaTech/esphome_c1101 and yes it is based of off @jodur’s library and approach! (Tnx for all the usefull clues in there!)
It’s definitely not final or complete but thought I’d share it here or those with courage
I love esphome and I tried your work compatech. but the first time compiling worked, and after that I saw you fix in a issue and tried that. but after the first time I can’t compile without errors.
I hope you continue you work and let many people enjoy it;)
Spotted your issue @ github … if you’re still allowed to edit it use 3 code-quotes above and below what you pasted (you only used 1 and on the same line) - that way github formats it better
@CoMPaTech, nice to see that there is effort to put this functionality in ESP-Home.
Why not exposing the component as a Fan? Esphome seems to support this component.
You only have to link the actions to the corrsponding commands of the fan.
I know there is not a template fan as with covers and switches in Esphome, but by reading the topics below, you could use the standard Esphome fan component with custom float output to create this functionallity. In this way you don’t need any configuration in Homeassistant.
Unless I’m misreading you, the first example is sort of what I’ve just build. The second example takes a known approach using custom outputs. It’s a viable option but it still works around building a proper (custom) fan in esphome.
I’d understand that - like Daniel mentioned in issue #1 on Github that you’d rather not have the additional switches present, but at some point in building your HA-home you’ll be switching to customizing your lovelace frontend anyway, so redundant switches will no longer be visisble. Going with a non-additional switch route: we’ll have to work around a few things in ESPhome I guess, as those examples actually read a value from the GPIO pin, which is different to how the communication with the C1101 works if I remember correctly from last year.
Very usefull manual. Is it still up to date? I was looking for a manual like this. i want to order the hardware. is it also possible with the esp CH340 CH340G NodeMcu V3?
Hi Dennis, i’ve still running the setup as described in the manual. I cannot confirm if the hardware you mentioned will work but give it a try. It wouldn’t cost you a fortune
Instead of running ESP Easy you could try the ESP home with the config of ComPaTech.
The advantage of all fully integrated fan on Esphome is, that you don’t have to configure anything in homeassistant and that you wil have a plug and play experience.
Sure you have to poke arround the fan-component as long there is no fan-template component, but it should not be that complex. You only have to create a custom float output and use this output in the standard fan component. Within the fan component you can define the float value for low, medium and high. In the custom float output you then decode the values and call the corresponding speedsettings. When i have some time left i wil setup my testboard up again to play with it. My current setup is still running the old esp-easy setup that i didn’t touch now for almost 2 years and i am migrating slowly all my esp-devices to esphome.
There should be something better than using the text-sensor, but the good news is it works (as in … I can control the unit from a functional perspective this way).
Something to improve is divergence between ‘High’ and ‘Full’ (but that goes for the original repo as well) and the difference between ‘off’ and ‘low’ - as my unit doesn’t have an ‘off’ (besides unplugging)
@Denman2103@Arnout YMMV as usual, but it’s just another esp-board - be careful about ordering the top board though as I recall there are different versions (433 vs 868 Mhz) out there and depending on your unit you’ll need the other one.
I don’t really recall when they stopped using the 433, but my old ITHO had that and we could throw away all remotes. So just by assumption (and no guarantees on anything) the units over the last years should be 868’s … then again, like Arnout mentioned, it’s not the biggest fortune giveaway - it might be the waiting time
@CoMPaTech, this is exaclty what i meant. I wil start playing arround with it as soon as i have my bread-bord with wemos and c1101 setup up again. Thnxs!
@jodur your welcome, but I recon it needs some fiddling (and beware of ‘full’ vs ‘high’ - not sure if all units talk the same language on that particular part)
I finally got my breadbord up again with an ESP and a C1101 and was able to fiddle arround with the code you provided, to make a ESPHOME version.
I slightly modified it, to add back the missing features it had against the original ESPEASY plugin.
Added:
Timer countdown, when a timerfunction is called
LastID, so you are able to see which control device issued the last command (Toilet, Kitchen, Bathroom etc… (max. 3 devices is implemented, but could easily be adjuster to more devices)