Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95925

MQQT Sensors from ESPEasy show "unavailable"

$
0
0

@JeeCee wrote:

Hi all,
I’ve searched the forums, but I could not find anything which solved my problem.
I’m sure it’s a small config error but I’m searching for a week now, time to call in the troops.

I have some ESPeasy devices which are connected to the Moscquitto broker add-on.
I used discovery before (with rules in EASPeasy) and that worked but I found it more tedious to keep the easpEasy rules up to date so I wanted to migrate to configuring them in HAS.

Developer Tools -> Listen to ‘#’ reveals all topics in the expected scheme.
However, in Developer Tools - States the sensors show “unavailable”.

I’m running HASS.io version 3.10 and HAS version 200.

My broker config is default:

logins: []
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem

I have created an HAS user ‘MQTT’.
The configuration.yaml section is:

mqtt:
  broker: 192.168.2.100
  username: mqtt
  password: *****
#  discovery: true
#  discovery_prefix: homeassistant

My sensors are configured as follows:

sensor:
######################################
# Elec Meters
######################################
  - platform: mqtt
    name: "Souterrain Electricity Power"
    state_topic: "homeassistant/ESPElecMeters/Electricity-SOU/Power"
    availability_topic: "homeassistant/ESPElecMeters/available"
    device_class: "power"
    unit_of_measurement: "W"
    #icon: mdi:

Other sensors:

  - platform: mqtt
    state_topic: "ESP-Sauna/Inside/Humidity"
    name: "Sauna Inside Humidity"

Generate ‘unknown’ state :thinking:
etc.

Related ESPeasy config:

Controller Publish:	homeassistant/%sysname%/%tskname%/%valname%
Controller LWT Topic: homeassistant/%sysname%/available
Unit name: ESPElecMeters
Device name: Electricity-SOU
Device values: Power (and usage)

I am at a loss what I am doing wrong.
Thanks for any help!

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles