Here is were i am at prescent
Installed on a pi4 Emoncms
conf below
#######################################################################
####################### emonhub.conf #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/configuration.md
#######################################################################
####################### emonHub settings #######################
#######################################################################
[hub]
### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
loglevel = DEBUG
autoconf = 1
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
####################### Interfacers #######################
#######################################################################
[interfacers]
### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
[[EmonPi2]]
Type = EmonHubOEMInterfacer
[[[init_settings]]]
com_port = /dev/ttyAMA0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
subchannels = ToRFM12,
[[USB0]]
Type = EmonHubOEMInterfacer
[[[init_settings]]]
com_port = /dev/ttyUSB0
com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
subchannels = ToRFM12,
nodename = emonTx4
[[SPI]]
Type = EmonHubRFM69LPLInterfacer
[[[init_settings]]]
nodeid = 5
networkID = 210
resetPin = 24
selPin = 16
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
[[MQTT]]
Type = EmonHubMqttInterfacer
[[[init_settings]]]
mqtt_host = 192.168.8.10
mqtt_port = 1883
mqtt_user = emonpi
mqtt_passwd = emonpimqtt2016
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
# emonhub/rx/10/values format
# Use with emoncms Nodes module
node_format_enable = 0
node_format_basetopic = emonhub/
# emon/emontx/power1 format - use with Emoncms MQTT input
# http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
nodevar_format_enable = 1
nodevar_format_basetopic = emon/
# Single JSON payload published - use with Emoncms MQTT
node_JSON_enable = 0
node_JSON_basetopic = emon/
[[emoncmsorg]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToRFM12,
subchannels = ToEmonCMS,
url = https://emoncms.org
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
senddata = 1 # Enable sending data to Emoncms.org
sendnames = 1 # Send full input names (compression will be automatically enabled)
interval = 30 # Bulk send interval to Emoncms.org in seconds
[[DS18B20]]
Type = EmonHubDS18B20Interfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
read_interval = 10
nodename = sensors
# ids = 28-000008e2db06, 28-000009770529, 28-0000096a49b4
# names = ambient, cyl_bot, cyl_top
#######################################################################
####################### Nodes #######################
#######################################################################
## See config user guide: https://github.com/openenergymonitor/emonhub
## If autoconf is enabled above, node configuration will automatically
## populate based on templates listed in available.conf
[nodes]
here is mqtt running off pi4 with a web browser pointing at the web interface
How do i populate the feeds or input, as the docs state an auto automatically populate
and yes i’m at the point of binning this project and just use HomeAssistant.
it would be nice to get this working and my installer to show his customers.
My only problem is the frequency of entity updates which is not fast enough for my taste, it is not precise enough, even with desired entities set on r1 in the CSVs
Are you manually polling cia MQTT as well? That was the only way that worked for me, regularly posting to e.g. ebusd/hmu/FlowTemp/get to force an update. This way I get 10s update intervals and always fresh data (somewhere it was said that you would get stale data this way, but I’m getting definitely fresh data on each poll)
I’m doing nothing, I let the ebusd integration do his job
What I discover is that when I edit mqtt-hassio.cfg and set Filter-seen on 1, it works fine BUT entities desapears if I have to reboot HA
# include only messages having data sent at least once (only checked for passive or read messages, not for active write) # when set to 1. If set to >1, then all messages passing the other filter criteria (including active read messages) will # automatically be set to have a poll priority of at most this value, so these are automatically being polled. # HA integration: filtering only seen messages to avoid unnecessary “pollution” and auto-poll all matched messages filter-seen = 1
You could just use Node-RED to regularly poll for the required values. Or even in home assistant you could set up an automation to post the /get to the appropriate MQTT topics.
I know this is an old problem that other people have reported and come up with solution for, but I have struggled to understand from all the many posts what the definitive reason/solution is. I have the problem where the ebus adapter and some issue with maybe too much polling(?) is causing the heatpump and controller to get confused and start misbehaving.
In my case I think I can see the secondary reason for it in that the inside and outside temperature feeds get disrupted, so the heatpump responds (see gaps in feeds in plot below measure independently from the ebusd feed, using the myVaillant connect HA add-on). I am using Andre’s mqtt config and the latest Jones csv files. I also poll for about 8 values using mqtt via an automation. I had this set to poll once per minute, but tried every 10 seconds for a short time. Anecdotally, the increased polling period did seem to make it worse, but I am not certain that this is actually the cause and I have seen people posting that polling every 10 seconds is no problem and that there is maybe some other underlying cause of the problem.
I have unplugged the adapter at the moment and plan to strip back the CSVs and remove polling and re-introduce slowly. However, if anyone has a link to the definitive cause of the problem, that would be great
Which values are you manually polling for? I think the issue for these disruptions was polling of specific values in Home Assistant due to a faulty config, but this got fixed. The issue was potentially also within a config of the ebus install and not even in the csv. Can you do a clean-slate install of ebusd, removing the old configs beforehand (make a backup) and tehn reinstall ebusd, pull the latest jonesPD and start from there?
Thanks for the advice, I will try what you suggest. I am polling for the following:
topic: ebusd/hmu/WaterThroughput/get
topic: ebusd/hmu/ReturnTemp/get
topic: ebusd/hmu/FlowTemp/get
topic: ebusd/vwzio/ThreeWayValve/get
topic: ebusd/hmu/BuildingCircuitWaterPressure/get
topic: ebusd/basv/HwcStorageTemp/get
topic: ebusd/hmu/RunDataStatuscode/get
topic: ebusd/hmu/CompressorSpeed/get
it’s running on proxmox with the official HA install
ebud, and mqtt are working, Emoncms starts,
population of the feeds is my issue.
when i click 'open web ui ’ a link http://homeassistant.local:9541/feed/list