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

message-failed-to-send #5

Open
ritech opened this issue Apr 30, 2022 · 1 comment
Open

message-failed-to-send #5

ritech opened this issue Apr 30, 2022 · 1 comment

Comments

@ritech
Copy link

ritech commented Apr 30, 2022

i am run under hassos node-red dock
my hdl bus ip 192.168.88.2
hassos ip 192.168.88.5
docker ip 172.17.0.3
I have everything set up, but when I link, I get the error

{"connected":true,"status":"message-failed-to-send","extraInformation":"timeout"}

mycode

var msg = {
"payload": {
"operate": "UVSwitch",
"mode": "set",
"direction": "request",
"subnetId": 1,
"deviceId": 50,
"data": {
"switchNumber": 6,
"switchState": 0
}
}};
return msg;

i dont know what happen , but node-red-contrib-hdlbus run ok

@ritech
Copy link
Author

ritech commented Apr 30, 2022

sloved , uninstall contrib-hdlbus , send message ok
but new problem , i can't get info about channel , how to check channel true or false?
this is my code for ON channel 6 light
var msg = {
"payload": {
"operate": "singleChannelControl",
"mode": "set",
"direction": "request",
"subnetId": 1,
"deviceId": 50,
"data": {
"channelNumber": 6,
"channelLevel": 100,
"runningTime": 0
}
}};
return msg;

if check channel 6 status
like this code?
var msg = {
"payload": {
"operate": "singleChannelControl",
"mode": "get",
"direction": "request",
"subnetId": 1,
"deviceId": 50,
"data" : {}
}

};

return msg;

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

1 participant