####################################################################### ####################### 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, [[SAMSUNG-ASHP-MIB19N]] Type = EmonHubMinimalModbusInterfacer [[[init_settings]]] device = /dev/ttyUSB0 baud = 9600 parity = even datatype = int [[[runtimesettings]]] pubchannels = ToEmonCMS, read_interval = 20 nodename = samsung-ashp # prefix = sdm_ [[[[meters]]]] [[[[[ashp]]]]] device_type = samsung address = 1 registers = 75,74,72,65,66,68,52,59,58,2,79,87,5,89,4,85,88 names = dhw_temp,dhw_target,dhw_status,return_temp,flow_temp,flow_target,heating_status,indoor_temp,indoor_target, defrost_status,away_status,flow_rate,outdoor_temp,3_way_valve, compressor_freq, dhw_boost_heater_status, compressor_freq_percentage scales = 0.1,0.1,1,0.1,0.1,0.1,1,0.1,0.1,1,1,0.1,0.1,1,1,1,1 precision = 2,2,1,2,2,2,1,2,2,1,1,2,2,1,1,1,1 [[SPI]] Type = EmonHubRFM69LPLInterfacer [[[init_settings]]] nodeid = 5 networkID = 210 resetPin = 24 selPin = 16 [[[runtimesettings]]] pubchannels = ToEmonCMS, [[MQTT]] Type = EmonHubMqttInterfacer [[[init_settings]]] mqtt_host = 127.0.0.1 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] [[23]] nodename = emonth2_23 [[[rx]]] names = temperature, external temperature, humidity, battery, pulsecount datacodes = h, h, h, h, L scales = 0.1, 0.1, 0.1, 0.1, 1.0 units = C, C, %, V, p