Comments (23)
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.
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.
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.
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.
same issue here
from smartthings_myq.
Same issue here.
from smartthings_myq.
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.
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...
from smartthings_myq.
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.
from smartthings_myq.
@15niner - can you post a screenshot of what your virtual switch looks like in your IDE? Just blur out your door's serial number.
from smartthings_myq.
Also, could you verify one more time that the brbeaird:virtual switch in your device type handler list matches this code exactly?
from smartthings_myq.
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"
from smartthings_myq.
@15niner my device looks identical to yours
from smartthings_myq.
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.
from smartthings_myq.
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.
I also noticed this warning at the top of the device handler code:
from smartthings_myq.
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.
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.
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.
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.
This also worked for me, thanks all!!!
from smartthings_myq.
from smartthings_myq.
Related Issues (20)
- myqtokengenerator-win closes HOT 5
- Make latest changes compatible with Hubitat HOT 3
- I have 2 doors and I am unable to create two toggle doors HOT 1
- Can no longer update DTH through GitHub repository in IDE HOT 1
- Error creating "no sensor" version of SmartApp HOT 1
- Token Generator HOT 5
- Push button switches don't connect HOT 1
- could you please update the Hubitat version as well? HOT 1
- new myq code issues HOT 24
- java.lang.NullPointerException: Cannot invoke method post() on null object @line 418 (getVersionInfo) HOT 2
- MyQ on Smartthings still doesn't work HOT 1
- Can't authenticate on mobile app HOT 1
- Instructions don't seem to match current SmartThings app HOT 4
- Still having login error. HOT 1
- Controlling lights with Z-wave relay HOT 1
- java.lang.NullPointerException: Cannot get property deviceNetworkld' on null object. HOT 1
- delete
- No longer working with the retirement of SmartThings IDE HOT 1
- Error installing garage doors with sensor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartthings_myq.