Closed Coolio098 closed 3 years ago
Same behavior here. I get the error I noted in the other thread if I open the individual button card and run from there. Logging for those devices shows no activity.
Strange. The newest version should fix these buttons. I've not been able to reproduce this problem. You’re sure it’s using the newer “virtual switch” device and not the old “momentary button tile”?
I have the same issue, where the virtual tiles do not function, using the current "virtual switch" and not the old "momentary button tile". I'm not sure if it makes a difference, but I do not have a door sensor set up (using NoSensor).
Positive I'm using the new virtual switch. I uninstalled everything and did a fresh install based on the instructions. Also, I don't have a sensor.
same issue here
Same issue here.
Thanks for all your work on this. My on/off tiles are not working either. I deleted the old smart app and device handlers, and did a fresh install. I'm trying to use myq lite with Google home, using the no sensor device handler
I too have the same issue... I do not possess, nor ever could, the intelligence required to code for this app or any other, but is it possible the issue is because the switches are set to "ON" by default? I'm only thinking in mechanical/electrical terms and you can't turn a switch more on if it is already on. So by my logic, if you ask Alexa/Google/SmartThings etc. to turn something "ON" that is defaulted to that position, nothing will occur...
is it possible the issue is because the switches are set to "ON" by default?
That is part of the reason this is such a mystery to me. The SmartApp code explicitly sets the switches to OFF upon creation.
@15niner - can you post a screenshot of what your virtual switch looks like in your IDE? Just blur out your door's serial number.
Here's mine for comparison:
Also, could you verify one more time that the brbeaird:virtual switch in your device type handler list matches this code exactly?
I copied and pasted the code from your link above and it did not fix the issue. I noticed from my screen shot my switch is on whereas yours is off... The other difference is your execution location is cloud and mine is "Local"
@15niner my device looks identical to yours
Hmm. If it shows local execution, that makes me wonder if it's actually using the native virtual switch instead of the brbeaird:virtual switch handler.
When you click the Edit button on that device, do you see multiple "virtual switch" entries in the drop down? If you do, can you try to select the other one and see if things work any differently? If so, I may need to rename this device to something more distinct.
I made sure it was using the correct device handler
On Friday, September 17, 2021, 07:48:12 PM EDT, Brian Beaird ***@***.***> wrote:
Hmm. If it shows local execution, that makes me wonder if it's actually using the native virtual switch instead of the brbeaird:virtual switch handler.
When you click the Edit button on that device, do you see multiple "virtual switch" entries in the drop down? If you do, can you try to select the other one and see if things work any differently? If so, I may need to rename this device to something more distinct.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
There is one other "Virtual Switch" in the drop down menu. It is listed located alphabetically in the list near a virtual dimmer and a virtual appliance. I tried that one and it did not have any change. The original virtual switch that was selected is at the bottom of the list.
I also noticed this warning at the top of the device handler code:
my IDE shows similar findings to 15niner and Coolio98 -- current state switch: On (not off), and Execution Location is Local (not cloud)
in SmartThings, the "Main Garage" device has an Open and Close -- pressing these does correctly open and close the garage.
however, the virtual tiles that are created, which are the ones needed for Google Home integration, are always reporting "On", and pressing them does not open or close the garage.
Ok not sure what this means, but a couple posts up brbeaird suggested looking for a different "virtual switch" option when editing the device. I went to my Main Garage Opener device, clicked Edit, and went to Type. The current selection is "Virtual Switch" at the very bottom of the list. But scrolling up, in the alphabetically organized section, there is another exactly same named "Virtual Switch", between "Virtual Dimmer Switch" and "Vision 4-in-1 Motion Sensor". When I select this Virtual Switch and hit Update, the tile in my SmartThings app suddenly switches from "On" to "Off", and without me actually pressing anything (other than updating the Virtual Switch type in the IDE), the action actually occurs (ie. Main Garage Opener opens the door when I update the virtual switch, and Main Garage Closer closers the door when I update its virtual switch).
Yada yada yada, I think the virtual tiles are working (for me!). Even tested in Google Home, which is all I really wanted to work again.
TL;dr -- I updated the Device Type to the 'other' Virtual Switch in the drop down menu, and now my SmartThing tiles correctly report in the "Off" status, and my virtual tiles work correctly now.
So trying felixling34's solution worked for me too, if i chose the generic Virtual Switch from the drop down and not the one created with your code, everything seems to work.
Update: after seeing others have success using the virtual switch found alphabetically in the drop down menu rather than the one at the bottom of the list, I tried it again and all virtual switches are now set to "off" and work correctly. Hope this fix works for everyone!
There is one other "Virtual Switch" in the drop down menu. It is listed located alphabetically in the list near a virtual dimmer and a virtual appliance. I tried that one and it did not have any change. The original virtual switch that was selected is at the bottom of the list.
Following others' solutions above also works for me! Thank you everyone for your input, and brbeaird for your incredible work on this! Happy voice-controlling!
This also worked for me, thanks all!!!
Ok that is great news - thanks for testing that. I do think I will rename my switch to something different to try and avoid people having to do that each time.
On Sat, Sep 18, 2021 at 8:28 AM Coolio098 @.***> wrote:
Closed #137 https://github.com/brbeaird/SmartThings_MyQ/issues/137.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/brbeaird/SmartThings_MyQ/issues/137#event-5323002330, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXHM2AFIZEW6KKMFOGVZUTUCSHXXANCNFSM5D4JVIAQ .
Hey All,
I did a total reinstall and successfully connected to MyQ. If I click on "Garage Door" I'm able to open/close the garage with no issues. However, the on/off switches just hang and nothing happens and these are the switches that show up in Google Home. Any idea what I'm doing wrong?