Esphome using another sensor in filter

I am doing the following:

  - platform: max6675
    id: maintemp
    name: "BBQ Main"
    cs_pin: GPIO5
    accuracy_decimals: 0
    device_class: "temperature"
    state_class: "measurement"
    unit_of_measurement: "°C"
    update_interval: 5s
    filters:
      - lambda: 'return x + id(bbq_adj).state;'

This is to adjust the maintemp by adding a value derived from bbq_adj. It works bu as soon as I add the same logic to my other sensors the whole thing stops connecting to my wifi.

Here is the full code:
https://github.com/TurboTronix/BBQ-Meter/blob/main/esphome.yaml

I ended up fixing it…

https://github.com/TurboTronix/BBQ-Meter/tree/main

1 Like

And then deleted it?

No, i ended up changing the code, was another issue causing this.

I was just commenting that you pointed to your code then appear to have deleted it fron github.

The link was dead cuz i renamed the file from .txt to .yaml so looked like it was deleted but it was actually always there…

There isn’t even a visible repo named BBQ-Meter on your github. Perhaps you didn’t make it public?

Oh, I’m not very familiar with Github sharing so will need to check it out.

Fixed now.