Hello,
When i make a new sensor (dallas) in esphome, I can see it in my log, but it doesn’t show up by entities.
When i make a new gpio switch is shows well up as an entities.
What am I doing wrong?
Hello,
When i make a new sensor (dallas) in esphome, I can see it in my log, but it doesn’t show up by entities.
When i make a new gpio switch is shows well up as an entities.
What am I doing wrong?
You can share Dallas sensor configuration
substitutions:
device_name: vloer
friendly_name: "vloer"
mintemp: '20' # minimale aanvoertemperatuur verwarming
maxtemp: '40' # maximale aanvoertemperatuur verwarming
stooklijn: '1'
offset: '0'
esphome:
name: vloerverwarming-badkamer
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
# encryption:
# key: "t3Zlkv4EZsJVvrVr70/Rls8HF+G0IusZq+B5X/J6uOM="
ota:
# password: "024433b73e36b1ff7a632e1c4b4826ce"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.195
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Vloerverwarming-Badkamer"
password: ""
mqtt:
# topic_prefix: $friendly_name
discovery: true
broker: 192.168.1.200
username: thermostaat
password: thermostaat
captive_portal:
dallas:
- pin: GPIO23
sensor:
- platform: dallas
address: 0xcc01212f63e86c28
name: "vloer aanvoertemperatuur sensor"
id: aanvoertemp
- platform: template
name: "$friendly_name Berekende aanvoer temperatuur"
id: taanvber
lambda: |-
float x = (id(offset).state + $mintemp + (id(stooklijn).state * (20 - id(buitentemp).state)));
if ( x > $maxtemp)
{ return $maxtemp;}
else
{
if ( x < $mintemp)
{ return $mintemp;}
else
{ return x;}
}
update_interval: 10s
switch:
- platform: gpio
pin: 32
id: pomp
name: "pomp"
- platform: gpio
pin: 27
id: motor_open
name: "$friendly_name motor open"
interlock_wait_time: 5s
interlock: &interlock_group [motor_open, motor_dicht]
- platform: gpio
pin: 26
id: motor_dicht
name: "$friendly_name motor dicht"
interlock: *interlock_group
interlock_wait_time: 5s
number:
- platform: template
name: "$friendly_name Stooklijn"
id: stooklijn
min_value: 0.1
max_value: 2.0
step: 0.1
optimistic: true
on_value:
- mqtt.publish:
topic: "stooklijn"
payload: stooklijn
retain: true
retain: false
# internal: true
- platform: template
name: "$friendly_name Offset"
id: offset
min_value: -5.0
max_value: 5.0
step: 0.1
optimistic: true
retain: true
- platform: template
name: "$friendly_name Buitentemperatuur"
id: buitentemp
min_value: -20
max_value: 40.0
step: 0.1
optimistic: true
- platform: template
name: "$friendly_name Ruimtetemperatuur"
id: ruimtetemperatuur
min_value: -20
max_value: 40.0
step: 0.1
optimistic: true
Did you add the device in devices and integrations?
Yes, I see the device, and I see 11 old entities,
When I change the name of the old entities, it works,
But new entities doesn’t show up.