maxwellhadley / node-red-contrib-rfxcom

node-RED nodes to access an RFXtrx433 transceiver
BSD 2-Clause "Simplified" License
22 stars 13 forks source link

Sending Dimmer brightness to an AC dimmer #113

Closed PuckeyP closed 3 years ago

PuckeyP commented 3 years ago

I have a problem with sending brightness information to an AC type dimmer with the rfx-light out node payload. Cannot find any information on this topic. "On" and Off" works fine. Can you point me in the right direction. Thx!!

maxwellhadley commented 3 years ago

There is some information in the help text for the node:

Typical commands are 'On' & 'Off' (or equivalently 1 & 0, or true & false); 'Bright' or 'Dim+' to increase brightness; 'Dim' or 'Dim-' to reduce brightness; 'level percentage%' or 'level number' (where number is a value between 0 and 1) to set the brightness.

So a payload of something like level 62% will work if the device accepts any sort of numeric input - the percentage is translated according to whatever range of numbers the device subtype specifies it can handle. Some subtypes only accept increase and decrease commands, in which case a payload of bright will increase and dim will decrease (or just + and -)

PuckeyP commented 3 years ago

Thx Maxwell, level xx% works, thx thx. You made my day!

maxwellhadley commented 3 years ago

I'm glad you got it going OK!