twocolors / node-red-contrib-esphome

Node-RED nodes to ESPhome devices
MIT License
18 stars 5 forks source link

Cant get value to espout-Node for Servo vontrol #25

Closed Faeslich8 closed 7 months ago

Faeslich8 commented 7 months ago

Hello!

First of all: great project!

I try to controll a servo with the espout-Node but cant find a way to inject the value correct.

If i try a inject node with number as a payload the servo gets always the position 0. grafik

I tried to inject it as JSON value and wasnt more sucssesfull. Can you tell me what Im doing wrong? grafik

When I`m using the Home Assistent Dashboard I can move the servo fine.

grafik

Thank und and greetings!

twocolors commented 7 months ago

Show me you screen in out-node , what is component you use ?

Faeslich8 commented 7 months ago

Thank you for the fast reply,

This is the out-node: grafik

This is the YAML of the servo: grafik

twocolors commented 7 months ago

try

msg.payload.state = 100

p.s. and i recomment use password if you not use HA, encrypt use more resourses in esp

Faeslich8 commented 7 months ago

You are a god among men! It works fine now. Thank you very much.