Giter Site home page Giter Site logo

Comments (6)

MeisterTR avatar MeisterTR commented on July 22, 2024

please try:

on("mihome.0.devices.switch_158d0002b221d8.click", function(obj){
    if(obj.newState.val){
        setState("yeelight-2.0.ceiling1-0x000000000370088e.control.power", true);
    }
});

from iobroker.yeelight-2.

lexmephi avatar lexmephi commented on July 22, 2024

no, the same...

type ID val ack from Timestamp Last change
stateChange yeelight-2.0.ceiling1-0x000000000370088e.control.power false true yeelight-2.0 2019-01-21 21:22:43.917 2019-01-21 21:22:43.917
stateChange yeelight-2.0.ceiling1-0x000000000370088e.info.connect true true yeelight-2.0 2019-01-21 21:22:43.916 2019-01-20 23:33:01.154
stateChange yeelight-2.0.ceiling1-0x000000000370088e.control.power true true yeelight-2.0 2019-01-21 21:22:35.530 2019-01-21 21:22:35.511
stateChange yeelight-2.0.ceiling1-0x000000000370088e.info.connect true true yeelight-2.0 2019-01-21 21:22:35.528 2019-01-20 23:33:01.154
stateChange yeelight-2.0.ceiling1-0x000000000370088e.control.power true false javascript.0 2019-01-21 21:22:35.511 2019-01-21 21:22:35.511

from iobroker.yeelight-2.

lexmephi avatar lexmephi commented on July 22, 2024

do you have any suggestions why this is happening?

from iobroker.yeelight-2.

MeisterTR avatar MeisterTR commented on July 22, 2024

no i havent, i also have a problem with the scene value if i send it from the object everything works, if i send it from a script it dosnt work. if i have some free time i will chekc this

from iobroker.yeelight-2.

Sineos avatar Sineos commented on July 22, 2024

Also happens when trying to set values via Node Red.
Anything we can do to help debugging it?

Edit:
Setting the adapter to debug shows that there is a send command:
(16729) SEND STATE: id:0x0000000005443143, state: rgb, value: #ff9800
when doing it via the "Objects" page.

Sending the same via Node-Red causes no reaction in the debug log.

from iobroker.yeelight-2.

Sineos avatar Sineos commented on July 22, 2024

Ah, k. Figured out my NR issue:

if (state && !state.ack) {
requires !state.ack, so sending new values as "Command" works.

from iobroker.yeelight-2.

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.