I was able to turn heater off with that. To turn back on, it seems that one needs to pass the targetTemperature again, just requesting heatingEnabled: true won’t work.
Once you’ve added the custom repository to HACS, on the HACS Integrations page:
Click the (+) in the bottom right corner and search for and add the Adax integration.
HACS will show you an information page which includes configuration instructions (you need to configure this in configuration.yaml)
You can pull up the information page again by clicking the three dots in the corner of the Adax integration card and choosing information.
why make a copy of Danieliversens module, why not help him to make his module HACS compatible, makes it easier for all of us, since Daniel has made several new customizations after your copy.
I guess he has no problem giving you credit for your contribution.
Fundamentally I wanted a HACS-compatible integration now, so I built one. And because I’d built it for myself, I shared it with others. It was about expedience, nothing else.
@danielhiversen’s code sits in a repository alongside other custom components, which doesn’t appear to be compatible with the way HACS works (though feel free to correct me if I’m wrong on that) - and there’s no such things as a pull request that says “split this out into a separate repository”. Importantly - feel free to take whatever you like out of what I’ve done. That might be nothing, it might be something. Whatever works for you.
For my use case HACS wins over the addon store in the supervisor because HACS works inside home assistant core. Your mileage may vary - different people have different needs. If someone else wants to pull together a HACS-compatible integration I’ll happily switch and contribute to that.
Functionally what I did and what Daniel did are similar, though there are some differences.
Daniel’s integration now implements heat/off, whereas I picked Auto/Off. I picked Auto because that seems to reflect better what the heater does - and it’s then meaningful to report the status as Heating/Idle as appropriate (or Off).
Would be nice if their API included heater state, I mean if it is heating or not. Maybe they don’t provide that because the target temperature operates at room level (and room might have multiple heaters). Although one can figure that out from target & current temperatures the visual green feedback on thermostat card is nice (like on generic_thermostat entity I have for older heater).
I’m planning to use this to keep a summer cottage dry during winter so it won’t be controlled by temperature but by humidity instead, ie. if humidity is > 75% turn heater on, otherwise off.