Is there a way to run Harmony routines from ActionTiles? I can run the Harmony routines from the ST app. But they are not listed to add to ActionTiles. I tried to create a virtual switch for each Harmony routine and link that to the correct Harmony routine using Core. But then have to add a virtual switch and a core routine to switch off each Harmony routine. Gets messy very quickly with a lot of virtual switches and core routines. There must be a better way?
You should not have to do that at all, mine connect directly to AT. @tgauchat should be able to assist, he is the co-founder.
Jason you are correct. The Harmony Routines are listed under âadd things that are missing listâ but not on the âthings listâ in ST. Your comment made me look again. Thanks buddy.
-
Do you mean âSTâ (SmartThings) or âATâ (ActionTiles)?
-
Please reference the ActionTiles Forum on this Topic: Logitech Harmony Activities / ActionTiles Forum / AT Support & Ideas
I meant the ActionTiles smartapp within ST. There is a section called âSelect any or all of your thingsâ and a separate section called 'Add any or all things missing from the first list". I was able to add the Harmony routines to the second list.
OK⌠That makes senseâŚ
##Hereâs the technical info behind the scenes:
The first list are âSensorsâ, the second list are âActuatorsâ. Many Things are both, so thatâs why many Things show up twice:
- The Device Type Handler for âHarmony Activityâ is non-compliant to SmartThingsâs specifications: DTH is missing Capability âSensorâ (a Switch is always a Sensor if it reports its State change back to SmartThings â I presume it does?):
- It is not a critical situation in this case, because ActionTiles only requires that a Thing be present on one list and/or the other (by claiming Capability Sensor and/or Actuator). It does not have to be âcorrectâ.
The way we use capabilities is mostly to inherit the commands associated with it. In this case switch has commands on and off and attribute switch that keeps the state. Actuator can be removed from this implementation without causing any issue.
I respectfully, but emphatically disagree!
###Capabilities are also Input Statement *filters!âŚ
âSensorâ and âActuatorâ as useful filters due to their nature and purpose as âmarkerâ or âtaggingâ classifiersâŚ
(ref: http://docs.smartthings.com/en/latest/device-type-developers-guide/overview.html?highlight=sensor%20actuator#actuator-and-sensor)
If I am writing a SmartApp with a single input statement wishing to allow the user to select any or all Things that âcan accept Commandsâ, the tag Capability âActuatorâ only serves this purpose if it is used consistently and comprehensively in ALL applicable Device Type Handlers.
Similarly for Sensor: Any Thing that âsets an Attributeâ, usually by sensing some environmental condition or external action.
A Switch is both: It has Command switch([on,off])
which is sent by SmartThings to actuate it and it has Attribute switch=(on or off)
which is set by the thing and reported via sendEvent.
(A Button, by the way, is just a Sensor; which Iâll leave as an exercise for the reader to determine why).
Totally, If all the devices were consistent on the implementation.
The problem is that capabilities have been changing over time. Originally light bulbs were defined as switches but latter it was clear that having a capability light might be useful to identify bulbs and potentially rendering a better UI but it proved harder to replace without breaking current implementations.
In the end, it is a good practice to define the capabilities that fit the device but I think that many devices donât have capability sensor or actuator in their implementation as of today.
It is true, it can be use as filters but both actuator and sensor are so wide that personally canât imagine myself using them. That said, filtering was the only reason those were added since those donât define any attribute nor command.
In any platform or language, there are thousands upon thousands of commands and APIs that most of us âcanât imagine usingâ; until we suddenly come up with a personal use case, or just canât think of a unique industry or environment where such an API is not only appropriate, it is essential.
In the case of ActionTiles the use of Sensor/Actuator is essential to the fundamental nature of our application.
Therefore, it is essential that all DTHâs follow the published âtaggingâ specifications in the SmartThings documentation.