-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use switching actuators as switches instead of lights #141
Conversation
@EnricoBilla if I see it correctly, your code was never merged. How can I use it? Do I just have to Update the files manually? If so, what happens, if an Update is rolled out? Is your code then "gone" and I have to implement it again? |
@Ruko2010 Yes, you are correct. You just need to download the files from my repo, the downside is that I didn't keep it updated from this repo and probably you are going to miss some features. If there's some interest in merging this feature I'm willing to reopen this PR |
Maybe we wait for a reaction from @jheling why it was not merged in the first place. Maybe he'll merge it now. |
I can only repeat what I already written in #168 |
@derjoerg I didn't know it was a possibility to use switch-as-x when I first wrote those lines of code, moreover it was meant to solve a issue of mine. I opened this PR when I saw there was some interest. Now if we want to build a cleaner solution I totally agree with you that the HA way of doing things is to use switch-as-x, it's important to underline that this will be a HUGE retrocompatibility issue. |
@EnricoBilla I'm 100% on the same page as you |
Maybe someone could fork and implement this "switch-as-x" Version 😬 |
ok, I'll test your code....just for curiosity. I already installed this version of the integration. Can I just deinstall it and install your integration? Do I need to add the serial numbers of the BuschJäger Actors before installing, or after? Do you know what will happen to the devices already synct with Apple Homekit? |
Yes, of course you can deinstall the old one and reinstall the new one. If you stop and restart the HA instance in the meanwhile, you shouldn't have to reconfigure it in HA. As for Homekit I don't know since I've never used it. |
ok thank you. I'll give it a shot. |
@EnricoBilla I'll delete the integration by jheling, and installed yours, but getting the following error after installation "No Devices or Entities found" |
I'll see the following Error in the Logs:
I added the following to my configuration.yaml of HA:
|
@EnricoBilla BTW, where can I see the Channel Number of my Actor? I know the Serial from the Busch Jäger App, but I don't know where to get the Channel from. |
@EnricoBilla I got it running. I saw the problem. If I add your Repo to HACS as Custom Repo, it always adds the master branch, not the branch from the URL I specified. So I logged into the HA via SSH and copied the files from the switch-as-x branch. Now it is working. I now changed the switches to lights and it's working perfectly. |
@Ruko2010 Thanks! It's nice to know it's working fine for you. Do you have any dimmable devices? If yes please test them and report back in the PR! |
@EnricoBilla yes, we have some dimmable lamps that were correctly discovered as lamps in the first place without necessary changes of the type. |
That's perfect, thanks! |
Hi all! This closes #120 .
I added the possibility to configure a switching actuator as a switch instead of a light by defining its serial and channel in the configuration:
For now it's kind of an hack, I think it would be best having some way to retrieve this information from the sysap but I couldn't find anything. Please try it and let me know what do you think.
Note that if the
configure_as_switch
parameter is not defined the behaviour is the same as before.