haydendonald / hdl-automation-nodered

Provides control and feedback of the HDL Automation bus for Node Red https://www.hdlautomation.com/
Apache License 2.0
7 stars 1 forks source link

[BUG] Single сhannel control is not working #2

Open sou1t opened 4 years ago

sou1t commented 4 years ago

Single сhannel control is not working. The problem was found in ../functions/functionList.js. The listing skipped the line singleChannelControl: require (" ./ singleChannelControl.js ") I tried to open a PR, but I do not have permissions... Could you fix this bug? @haydendonald

haydendonald commented 4 years ago

Hi Thank you for reporting this issue, I’ll fix it asap when i get home!

I haven’t tested this feature so when i fix the issue can you just let me know how it works :)

Thanks

sou1t commented 4 years ago

Ok, thanks, I will wait!

haydendonald commented 4 years ago

Hi sorry for the wait! I have pushed version 1.6.1 which should add the functionality. Please tell me if there are any issues as i cannot test this right now...

Thanks

sou1t commented 4 years ago

Hello! Thank you for fixes! I've tried and get another error:

here is a payload for hdl bus -- image

and in output I get an error: "Error: invalid subnetId. An subnetId is expected to be a number between 0 and 254"

haydendonald commented 4 years ago

Hi I cannot get this to give me the same error. Are you sending this to a bus node or device node? I ask as 1.6.1 and below do not support setting the subnetId and deviceId though the message, this has been added in 1.6.2.

I've tested offline with the following:

var msg = { 
    "payload": {
    "operate": "singleChannelControl",
    "mode": "set",
    "direction": "request",
    "subnetId": 1,
    "deviceId": 123,
    "data": {
        "channelNumber": 6,
        "channelLevel": 100,
        "runningTime": 0
    }
}};
return msg;

and have had it send successfully (since i'm offline no idea if it worked but it didn't error)

Let me know if that helps!

Lexsus2020 commented 3 years ago

Hello can you help me configure the HDL network forward in the homekit device how much will your work cost?

Lexsus2020 commented 3 years ago

сам не могу разобраться

haydendonald commented 3 years ago

Hello can you help me configure the HDL network forward in the homekit device how much will your work cost?

Hello @Lexsus2020 Are you asking for help using a single channel control with homekit?

This is possible i have a working solution for this on our server, however i cannot access it at the moment.