Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input Echo Hub... #98

Closed
nitrohaiza opened this issue Jan 25, 2020 · 8 comments
Closed

Input Echo Hub... #98

nitrohaiza opened this issue Jan 25, 2020 · 8 comments
Milestone

Comments

@nitrohaiza
Copy link

Hi there,

I have a question. How can I control a device from the outside? I set process and output at the hub. That means I would send my request at the entrance to the hub. Is that correct?

Thanks a lot.

@nitrohaiza
Copy link
Author

Function

Komplett

Can anyone tell me, what i must write?

Sorry my language is German. Not so easy for me.

Phil

@flowerbob
Copy link

I am having the same issue. Can´t get the Hub recognize the input message.
"Process Input" setting is set to "process"
Here is my try of the function in front of the hub (same setup as yours):
Unbenannt

@datech
Copy link
Owner

datech commented Feb 2, 2020

Related to #90

@datech
Copy link
Owner

datech commented Mar 3, 2020

@nitrohaiza / @flowerbob, did you manage to resolve it?

@flowerbob
Copy link

flowerbob commented Mar 3, 2020

Yes
But for my purpose I still need the rgb value input for the hub so right now only brightness and state are fed into the hub.
I take the message coming from home assistant (current state node) and feed it trough a function
into the hub.

function code:

var bri =msg.data.attributes.brightness;
var name =msg.data.attributes.friendly_name;
var state = msg.data.state;
var onstate;
if (state == "on") {
   onstate= true;
} else {
   onstate= false;
}
var Msg = {
    "nodename": name,
    "bri" : bri,
    "on" : onstate,
}
var newMsg = { payload: Msg };
return newMsg;
}

@datech
Copy link
Owner

datech commented Mar 3, 2020

RGB input is implemented as part of #15, but it is still not released, so it has to be available in the next version.

@datech datech added this to the v0.1.10 milestone Mar 4, 2020
@datech
Copy link
Owner

datech commented Mar 5, 2020

RGB input support has been released in v0.1.10

@datech datech closed this as completed Mar 9, 2020
@fercod
Copy link

fercod commented Jul 30, 2022

I had the same problem, I hope this can help someone:

image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants