-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No writable sensors in mqtt autodiscovery for Home Assistant #1038
Comments
do you have writable messages at all? check with "ebusctl find -w" |
Hi, same issue here. Trying to send a mqtt message results in |
Found this github issue while trying to figure out why I can't set anything (first time setup), I think I'm having similar problems:
|
I have the same issue. However i cant seem to get the ebusctl to run anywhere (its possibly on my end) ssh'ing the HA it sends back unknown command ebusctl. tried to ssh the adapter itself (just to make sure) but i couldnt., Sorry im just a layman at this point. i have HA running on VM, all the sensors from ebus adapter arriving but no option to write anything. |
look out for the message definition using "ebusctl f -a -l * -w". if it appears as writable there, then you have to check your settings (e.g. acl file missing) |
you don't need ebusctl, a simple netcat is doing quite the same. the adapter can't do ssh (would be fancy though). |
The adapter should communicate over netcat? I get no response trying to access it by ncat.. |
not the adapter, you can communicate with ebusd using netcat. |
You did, at first it did not work, it took me some time to get it to work - had to change it to "ebusctl f -a -l "*" -w". Result
|
I think i have the same issue. I do see "select" and "number" entities being created for my thermostat (350), but nothing for my Vaillant-boiler (bai).
I'm using the Home Assistant addon and configured: In MQTT-explorer i see the following "sensor" (while i would expect it as a writable-type):
in the config definition file it is specified as:
Might it be related to the unit "s" not being recognized as usable for "number"?
I've set the "accesslevel=*". I'm not using an acl-file. Note to others: It's possible to run commands in the ebusd-container by using the Portainer-addin. |
I'm pretty sure it has got something to do with the "%direction" token replacement. This as the entity "Hc12stepanalogCtrl" is being registered as a sensor, while it's registered as "r;wi" here: https://github.com/john30/ebusd-configuration/blob/4675cd03b2763867cf74bd12426b1990bebb6204/ebusd-2.1.x/de/vaillant/15.370.csv#L34 Other writable fields with "r;w" do get registered as number or select types. Temporary workaround!
Note! Probably the entities in Home Assistant will have no values. This is because the values have not been read yet by ebusd. In the ebusd-repository there is a "contrib/scripts"-folder with a "readall.sh" script you might want to run. You probably need to install netcat (nc) via "apk add netcat-freebsd". Although it might be possible to create a Home Assistant script which will query all mqtt-entries automatically. Dunno (yet). Looking through the code, i see: ebusd/src/ebusd/mqtthandler.cpp Line 359 in b901232
@john30 In the definition-file i see that "ws" and "wi" are being used. Should these values not be aligned? |
if ws is used, then it is a matter of assigning more rights to the default user by using an ACL file and define a "mqtt" user there or just loosen the default rights (by using the "--accesslevel=..." option) |
Perhaps someone will find my solution useful. On Debian, where ebusd is installed, I've run a script that sends the necessary data via MQTT to my MQTT broker
done The only issue I can't solve is obtaining data on gas consumption. |
Description
I'm using the Home Assistant Addon together with MQTT and a Vaillant atmoTEC exclusive boiler.
Auto discovery works perfect for a few binary sensors and a lof ot sensors.
To control my heater I added
--mqttvar=filter-direction=r|u|^w
to the additional parameters from the addon. In the arguments field below you can validate that it gets passed through to ebus, but:Actual behavior
only sensors and binary sensors in /homeassistant/
Expected behavior
Good question, switches or range inputs?
ebusd version
23.2
ebusd arguments
--foreground --httpport=8889 --mqtthost=core-mosquitto --mqttport=1883 --mqttuser=mosquitto --mqttpass=*** --scanconfig --mqttjson --mqttint=/etc/ebusd/mqtt-hassio.cfg --mqtttopic=ebusd --device=ens:192.168.178.8:9999 --log=all:notice --log=other:notice --mqttvar=filter-direction=r|u|^w
Operating system
other
CPU architecture
x64
Dockerized
other
Hardware interface
adapter 3.1 WiFi
Related integration
MQTT Home Assistant via mqtt-hassio.cfg
Logs
The text was updated successfully, but these errors were encountered: