Code Monkey home page Code Monkey logo

Comments (4)

digitaldan avatar digitaldan commented on July 17, 2024

I was just looking at this as well. This would be very easy to implement, I'm a little hesitant to add new tags until we have eclipse-archived/smarthome#1093 figured out.

from openhab-alexa.

heborras avatar heborras commented on July 17, 2024

Hi,
Any news on the scenes topic?
Looking through the code, I noticed that "SCENE_TRIGGER" is already mentioned, but not implemented. As well the readme hints with "Alexa turn on Home Theater Scene" that there could be such a feature.
I would very much like to help with this topic. Concerning JavaScript my knowlege is very little, but if there is a way to do something to push this topic, it'd be intresting to know.

Cheers,
Hendrik

from openhab-alexa.

jsetton avatar jsetton commented on July 17, 2024

In case, this support will not be part of the initial release of the v3 ported skill [#54], I have implemented the scene trigger support with the current version. This implementation relies on the scene logic being handled on the OH side through rules.

jsetton/openhab-alexa@b91c375

Here is an item definition example:

// Define a scene with on/off capability (default)
Switch sceneOne "Scene One" ['Scene']
// Define a scene with on capability only
Switch sceneTwo "Scene Two" ['SceneOn']
// Define a scene with off capability only
Switch sceneThree "Scene Three" ['SceneOff']

// Define an activity with on/off capability (default)
Switch activityOne "Activity One" ['Activity']
// Define an activity with on capability only
Switch activityTwo "Activity Two" ['ActivityOn']
// Define an activity with off capability only
Switch activityThree "Activity Three" ['ActivityOff']

Based on the API reference guide, the only difference between an activity and a scene is if the changes in that entity must occur in a specific order or not. I am not sure how this difference is represented on the Amazon side as both activities and scenes are showing in the scenes discovered tab and are actionable when called directly. However, when using routines, it seems that only activities are available as scene commands.

from openhab-alexa.

digitaldan avatar digitaldan commented on July 17, 2024

This is implemented in the upcoming v3 skill, closing.
https://github.com/openhab/openhab-alexa/blob/v3/ohConnectorV3.js#L522

from openhab-alexa.

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.