-
Notifications
You must be signed in to change notification settings - Fork 132
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
Shelly1/PM: Support Addon as Switch (Input) #967
Conversation
bc8c714
to
0e536be
Compare
did a quick review, don't like the approach. using sys mode for this is a big streatch. here's my thinking:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
Seems reasonable and not complicated, have some WIP, not finished yet |
ad56bb9
to
23ae523
Compare
fe0ca30
to
c0ea4cb
Compare
I changed it, and tested it as far as I can on my setup, but not with the real switch attached... @rojer: I spent some thought: can we really detect the addon in the field, with a switch attached? |
c0ea4cb
to
8ab5ea4
Compare
sorry, i dropped the ball on this one. good point about the switch, i didn't think of that initially. but i still think we can auto-detect the presence of the add-on or an external switch as follows:
|
Are there any news regarding this? |
Just pushed the changes I had lying around. I cannot test it, the question is: can you @HarrySteff ? |
@markirb thanks, I could, but I need a hint how I can test it? If I press update at web-interface, it says „up to date |
Try this file... its for the Shelly1 |
Thank you very much. I’ll try it later.. |
Mhhh that is strange. Right now you cannot do more I guess. I will have to try something, not sure when I will find the time |
Many many thanks, I will stay tuned… do some more tests. If I figure out something, I will let you know! Thanks again! |
8d221ec
to
686c65a
Compare
mhh i checked the addon detection. it should work, at least it does for me... |
Here logfile, first I open the garage door, then I closed it:
|
May I ask why you disabled it? |
I have only one Reed Sensor installed. And this is „closed“ if the garage door is closed, if I open the door there isn’t another reed sensor… did. I understand something wrong? |
Sorry maybe I’m stupid… I do not understand. |
Sorry. For explanation: So now I understand you have your closed sensor on the input of the open sensor :) |
Hardware available. Will test next week with my garage door! Many thanks @markirb |
Tested on my Shelly1+Addon+ 2 magnetic sensors on a Hörmann garage door. One thing that I see is that when I try to open "Log" I do get 401 error. Is this expected? |
@rojer Any plan for official release? |
do you have set a password? If yes it’s expected or better it’s a know bug |
I have a password set. So then this is not because of this release. It a known bug. So for me everything works fine. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Any plan for meging it into official release? |
@vistalba sure when it’s ready |
wip more elaborate addon detection
@timoschilling what is not ready on this PR? Could you merge this. Then DHT can be merged with refactoring and code from this PR |
@markirb It's still marked as |
That explains it. This was tested, i think it is fine.... so yes please review |
366c8d2
to
74b0192
Compare
Contained in other branch closing this |
This would enable an additional Switch via the Addon (e.g. magnetic sensor), for Default mode as well as Garage Door Opener as e.g. requested here:
#713
I have nothing to test this with so far, but maybe someone with the appropriate equipment would be able to?
This defaults to momentary switch in Default mode - maybe it should be "Contact Sensor"? But it could be used as many things...