Sensor does not show up

What am I doing wrong? New D1 wemos and Max 6675
logs show it sending temp, but I cannot find the sensor to add it to lovelace. I am expecting to find sensor.pit_#2
Thanks,
Grey

[18:07:40][C][wifi:355]: IP Address: 192.168.1.64
[18:07:40][C][wifi:356]: BSSID: [redacted]
[18:07:40][C][wifi:358]: Hostname: ‘pit’
[18:07:40][C][wifi:360]: Signal strength: -60 dB ▂▄▆█
[18:07:40][C][wifi:364]: Channel: 2
[18:07:40][C][wifi:365]: Subnet: 255.255.255.0
[18:07:40][C][wifi:366]: Gateway: 192.168.1.1
[18:07:40][C][wifi:367]: DNS1: 192.168.1.1
[18:07:40][C][wifi:368]: DNS2: 0.0.0.0
[18:07:40][C][logger:233]: Logger:
[18:07:40][C][logger:234]: Level: DEBUG
[18:07:40][C][logger:235]: Log Baud Rate: 115200
[18:07:40][C][logger:236]: Hardware UART: UART0
[18:07:40][C][spi:097]: SPI bus:
[18:07:40][C][spi:098]: CLK Pin: GPIO14
[18:07:40][C][spi:099]: MISO Pin: GPIO12
[18:07:40][C][spi:102]: Using HW SPI: YES
[18:07:40][C][max6675:025]: MAX6675 ‘Pit #1
[18:07:40][C][max6675:025]: Device Class: ‘temperature’
[18:07:40][C][max6675:025]: State Class: ‘measurement’
[18:07:40][C][max6675:025]: Unit of Measurement: ‘°C’
[18:07:40][C][max6675:025]: Accuracy Decimals: 0
[18:07:40][C][max6675:026]: CS Pin: GPIO13
[18:07:40][C][max6675:027]: Update Interval: 20.0s
[18:07:40][C][captive_portal:088]: Captive Portal:
[18:07:40][C][mdns:084]: mDNS:
[18:07:40][C][mdns:085]: Hostname: pit
[18:07:40][C][ota:085]: Over-The-Air Updates:
[18:07:40][C][ota:086]: Address: 192.168.1.64:8266
[18:07:40][C][ota:089]: Using Password.
[18:07:40][C][api:138]: API Server:
[18:07:40][C][api:139]: Address: 192.168.1.64:6053
[18:07:40][C][api:143]: Using noise encryption: NO
[18:07:49][D][max6675:046]: ‘Pit #1’: Got temperature=36.2°C
[18:07:49][D][sensor:124]: ‘Pit #1’: Sending state 36.25000 °C with 0 decimals of accuracy

# Example configuration entry
spi:
  miso_pin: D6
  clk_pin: D5

sensor:

  - platform: max6675
    name: "Pit #1"
    cs_pin: D7
    update_interval: 20s  
    accuracy_decimals: 0
#    filters:
 #     - sliding_window_moving_average:
#          window_size: 10
#          send_every:  10

Do you have this in your esphome device config?

api:

Have you added the device to home assistant?

Go to Settings → Devices & Services and look for a discovered esphome device.

Thanks,
yes api is there but it does not show new or there

Enable Home Assistant API

api:

image

Looks like api: is specified going on the logs - but the hash (#) symbol is not supported in device ids - if you create an entity with the name “Pit #1” in HA it will give it an id of pit_1. Maybe that is the issue.

Well I guess not. I thought it just automagicly showed uo

@zoogara
this one works but I will try without #configuration Thanks,
Grey

sensor:

  • platform: max6675
    name: “Meat Probe #2
    cs_pin: GPIO13
    update_interval: 30s
    accuracy_decimals: 0

filters:

- sliding_window_moving_average:

window_size: 10

send_every: 10

#sensor:
  - platform: max6675
    name: "Meat Probe #1"
    cs_pin: GPIO15
    update_interval: 30s 

Oh well - was worth a try. :slight_smile:

I am prone to make stupid mistakes, but I am not sure what I have done now.

Changed it to Pit 1 , still no findy

[18:52:20][D][max6675:046]: ‘Pit 1’: Got temperature=37.5°C
[18:52:20][D][sensor:124]: ‘Pit 1’: Sending state 37.50000 °C with 0 decimals of accuracy

Actually Tom is probably right (as usual) - looks like it’s not connected to HA via the API. Those lines in the log are the ESPhome API.

You should see something like:

[09:06:23][D][api:102]: Accepted 192.168.0.100
[09:06:23][D][api.connection:861]: Home Assistant 2022.7.5 (192.168.0.100): Connected successfully

After the Using noise encryption: NO line but before the sensors start updating. I can’t see that in your log.

I have seen what you are referencing in the past. But I do not see it anymore even on these sensors that are working.

I do appreciate your help so much, I really want this to work. What can I do to help you figure it out?\

I did add a new device today with the MQTT prefix home/ In the past everything was homeassitant/ I think. “Think” is bold.

Grey

19:09:29][C][dht:020]: Auto-detected model: DHT11
[19:09:29][C][dht:027]: Update Interval: 60.0s
[19:09:29][C][dht:029]: Temperature ‘Big Room Temperature’
[19:09:29][C][dht:029]: Device Class: ‘temperature’
[19:09:29][C][dht:029]: State Class: ‘measurement’
[19:09:29][C][dht:029]: Unit of Measurement: ‘°C’
[19:09:29][C][dht:029]: Accuracy Decimals: 1
[19:09:29][C][dht:030]: Humidity ‘Big Room Humidity’
[19:09:29][C][dht:030]: Device Class: ‘humidity’
[19:09:29][C][dht:030]: State Class: ‘measurement’
[19:09:29][C][dht:030]: Unit of Measurement: ‘%’
[19:09:29][C][dht:030]: Accuracy Decimals: 0
[19:09:29][C][captive_portal:088]: Captive Portal:
[19:09:29][C][mdns:084]: mDNS:
[19:09:29][C][mdns:085]: Hostname: bigroom
[19:09:29][C][ota:085]: Over-The-Air Updates:
[19:09:29][C][ota:086]: Address: 192.168.1.48:8266
[19:09:29][C][api:138]: API Server:
[19:09:29][C][api:139]: Address: 192.168.1.48:6053
[19:09:29][C][api:143]: Using noise encryption: NO
[19:09:40][D][dht:048]: Got Temperature=25.5°C Humidity=67.0%
[19:09:40][D][sensor:124]: ‘Big Room Temperature’: Sending state 25.50000 °C with 1 decimals of accuracy
[19:09:40][D][sensor:124]: ‘Big Room Humidity’: Sending state 67.00000 % with 0 decimals of accuracy
[19:10:40][D][dht:048]: Got Temperature=25.5°C Humidity=67.0%
[19:10:40][D][sensor:124]: ‘Big Room Temperature’: Sending state 25.50000 °C with 1 decimals of accuracy
[19:10:40][D][sensor:124]: ‘Big Room Humidity’: Sending state 67.00000 % with 0 decimals of accuracy

You will only see it in the startup logs. Not if you connect to the device after boot.

That is the wrong address for HA it should be 50 not 62?

[19:25:37][C][ota:085]: Over-The-Air Updates:
[19:25:37][C][ota:086]: Address: 192.168.1.62:8266
[19:25:37][C][ota:089]: Using Password.
[19:25:37][C][api:138]: API Server:
[19:25:37][C][api:139]: Address: 192.168.1.62:6053
[19:25:37][C][api:143]: Using noise encryption: NO
[19:25:40][D][max6675:046]: ‘Pit 1’: Got temperature=35.8°C
[19:25:40][D][sensor:124]: ‘Pit 1’: Sending state 35.75000 °C with 0 decimals of accuracy
[19:26:00][D][max6675:046]: ‘Pit 1’: Got temperature=35.8°C
[19:26:00][D][sensor:124]: ‘Pit 1’: Sending state 35.75000 °C with 0 decimals of accuracy
[19:26:20][D][max6675:046]: ‘Pit 1’: Got temperature=35.8°C
[19:26:20][D][sensor:124]: ‘Pit 1’: Sending state 35.75000 °C with 0 decimals of accuracy

No that’s just telling you the port the ESPhome API server is running on - on the device.

sorry yes, i reinstalled another one that is working and figured that out
What now?
Yes I no longer see the MQTT accepted anywhere.
I appreciate your help soo much
Grey

Post the whole config - not just the sensor. Maybe there is something we are missing.

you mean in espphome? I think the prob is deeper as I do not see that connect to HA anymore

esphome:
  name: pit2

esp8266:
  board: d1_mini


# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "c7e9d7fe5d929c8a6e9b17767e228bbb"

wifi:
  ssid: "shop2"
  password: "xxxx"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.62
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "M2 Fallback Hotspot"
    password: "mine0313"
    
# Example configuration entry
spi:
  miso_pin: D6
  clk_pin: D5

sensor:

  - platform: max6675
    name: "Pit 1"
    cs_pin: D7
    update_interval: 20s  
    accuracy_decimals: 0
#    filters:
 #     - sliding_window_moving_average:
#          window_size: 10
#          send_every:  10
      


captive_portal:

Looks pretty simple.

You are using a manual IP. Is anything else using that IP as well? What happens if you use DHCP? Ignore- ESPhome would have trouble connecting - doh!

Also it isn’t in the disabled device list? On the Devices and Services tab, Devices, top right filter menu.

Apart from that - maybe delete it completely and re-add.

Yes , I have already tried readd and it is not showing disabled.

I am going to restore last nights backup before I added the home/ mqtt topic

Grey

Well that did not help.

I am lost

aw geeze sorry I wasted so much of your time
thanks again
Grey

image

1 Like

Sometimes they show up automatically, you get a notification and then add the device to HA.

Sometimes (or if you are impatient like me) you need to add it manually per your last post.

1 Like