I’m running hass.io in a docker on a synology box (installation instructions here: Hass.io on Synology DSM (native package) )
I have installed the mqtt add-on and after much stuffing around I am finally able to see some items pop up but having a hard time managing them.
For one I’m getting errors that entity_id’s aren’t unique, but I can’t finding where those ids exist anywhere else. I eventually logged into the sonoff device and changed friendly names and mqtt settings thinking that should help, but that just made it worse, now there’s two devices, one with an “_2” and one without (which is now old and removed). Through a few searches I was able to “hide” the old entry, but the new one still claims the entity_id isn’t unique.
The second problem I’m having with this unit is that it is identifying as a “switch” and coming up as “switch.laundryth” (laundry because that’s where it is, and th because it is a sonoff TH model)
I have the mqtt addon installed, but I can’t see any interaction anywhere in the logs or history between HA and MQTT and the sonoff.
I’ve been trying to get the temperature and humidity readings from it and I can’t determine what to enter where to even poll the device and see what the readings are. In the mqtt debug tools all I can see is listed under states and that is the fact it is a status of being on or off. There’s nothing there about the devices other values.
I’ve been clutching at this for a couple of days now and am pulling my hair out. It appears nothing I enter into the publish a packet field can find its way to the sonoff, I realise I’m just not entering the right text/mqtt query, so any help would be appreciated.
Oh and obviously the mqtt signals are working as I can turn the device on and off without issues (it is slow, it it does do it).
- what packet to send from the publish a packet in the mqtt debug tools will allow me to see the other data?
MQTT settings I have are:
Client : dves_%06X <— what is this even used for?
Topic : laundryth
Full topic : %prefix%/%topic%
In “publish” I’ve tried all variants of:
stat/laundryth/
stat/laundryth/status10
cmnd/laundryth/status10
I’ve tried the status10 on the payload line to no avail.
- how do I get that data into HA?
Edit:
Bonus points:
3) how can I make sure laundryth has a unique entity_id? I mean, I’m not seeing a duplicate anywhere.
I moved this to a new question here: Entities and hass.io, where are they stored?