soloam / ha-pid-controller

PID Controller to Home Assistant
MIT License
97 stars 12 forks source link

I cant get ouput #44

Closed 11sas11 closed 1 year ago

11sas11 commented 1 year ago

What am I doing wrong.

e.g.

pid_controller: sensor:

HA doesn't recognise sensor.pid_1

if I add it to a card I get Entity not available: sensor.pid_1

I think I have followed every step and followed the example but am stuck at this point.

Seems everyone can see the output so sorry for the basic question.

soloam commented 1 year ago

Try searching on the developer tools just for "pid". See if home assistant "decided" to name your entity with another name, for example adding a "_2" to the end!

11sas11 commented 1 year ago

Not there. I think my problem is that if I follow your instructions exactly I end up with a "duplicate key" on sensors. So I put the PID stuff right at the top and had all the sensors below. Then I tried putting all the helpers above thinking they may need to be defined before I use them. Still no luck. I am not experience with YAML so I am sure I am doing something silly

here is my whole configuration.yaml

Loads default set of integrations. Do not remove.

default_config:

Text to speech

tts:

automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

input_boolean: pid_one_invert: name: Invert initial: no pid_one_enabled: name: Enabled

input_select: pid_one_round: initial: Round options:

input_number: pid_one_sample_time: name: Sample Time initial: 0 min: 0 max: 30 step: 1

pid_one_minimum: name: Minimum initial: 0 min: 0 max: 5 step: 1

pid_one_maximum: name: Maximum initial: 50 min: 0 max: 50 step: 1

pid_one_set_point: name: Set Point initial: 15 min: 0 max: 30 step: 1

pid_one_proportional: name: Proportional initial: 0 min: 0 max: 10 step: 0.01

pid_one_integral: name: Integral initial: 0 min: 0 max: 10 step: 0.01

pid_one_derivative: name: Derivative initial: 0 min: 0 max: 10 step: 0.01

pid_one_precision: name: Precision initial: 2 min: 0 max: 10 step: 1

pid_one_windup: name: Windup initial: 0 min: 0 max: 30 step: 1

pid_one_reading: name: Sensor Reading initial: 0 min: -1000 max: 1000 step: 1

pid_controller:

sensor:

soloam commented 1 year ago

The order at this point is irrelevant, if a entity already exists, normally home assistant adds a _2 to the end of the name! Did you tried adding a different name to test? Try the name New PID Controller. For example.

11sas11 commented 1 year ago

um, I did the core update this morning with no changes it worked - thanks for bearing with me!