Git Product home page Git Product logo

Comments (23)

hoolius avatar hoolius commented on June 24, 2024

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.

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

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”?

from smartthings_myq.

strakaido avatar strakaido commented on June 24, 2024

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).

from smartthings_myq.

Coolio098 avatar Coolio098 commented on June 24, 2024

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.

from smartthings_myq.

dekeweinblatt avatar dekeweinblatt commented on June 24, 2024

same issue here

from smartthings_myq.

crogers2287 avatar crogers2287 commented on June 24, 2024

Same issue here.

from smartthings_myq.

felixling34 avatar felixling34 commented on June 24, 2024

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

from smartthings_myq.

15niner avatar 15niner commented on June 24, 2024

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...
20210917_154744 1

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

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.

image

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

@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:
image

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

Also, could you verify one more time that the brbeaird:virtual switch in your device type handler list matches this code exactly?

https://github.com/brbeaird/SmartThings_MyQ/blob/master/devicetypes/brbeaird/virtual-switch.src/virtual-switch.groovy

from smartthings_myq.

15niner avatar 15niner commented on June 24, 2024

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"
switch

from smartthings_myq.

Coolio098 avatar Coolio098 commented on June 24, 2024

@15niner my device looks identical to yours

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

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.

from smartthings_myq.

crogers2287 avatar crogers2287 commented on June 24, 2024

from smartthings_myq.

15niner avatar 15niner commented on June 24, 2024

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.

from smartthings_myq.

15niner avatar 15niner commented on June 24, 2024

I also noticed this warning at the top of the device handler code:

image

from smartthings_myq.

felixling34 avatar felixling34 commented on June 24, 2024

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.

Update:

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.

from smartthings_myq.

crogers2287 avatar crogers2287 commented on June 24, 2024

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.

from smartthings_myq.

15niner avatar 15niner commented on June 24, 2024

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.

from smartthings_myq.

strakaido avatar strakaido commented on June 24, 2024

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!

from smartthings_myq.

Coolio098 avatar Coolio098 commented on June 24, 2024

This also worked for me, thanks all!!!

from smartthings_myq.

brbeaird avatar brbeaird commented on June 24, 2024

from smartthings_myq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.