LoadPlugin modbus LoadPlugin match_regex # Load required targets: #LoadPlugin target_notification #LoadPlugin target_replace LoadPlugin target_scale RegisterBase 768 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "supply" RegisterBase 769 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "return" RegisterBase 770 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "dhw" RegisterBase 771 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "flue" RegisterBase 772 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "outdoor" RegisterBase 775 RegisterCmd ReadInput RegisterType Int16 Type percent Instance "firing-rate" # Note - setpoint is "32768" (invalid) if boiler is idle. # I can't figure out how to make this match in chains/rules # below, so I simply changed the temperature type to only # be valid from -100 to +200 and this value gets ignored. # Bleah. RegisterBase 776 RegisterCmd ReadInput RegisterType Int16 Type temperature Instance "setpoint" Address 127.0.0.1 Port "502" #Device "/dev/ttyUSB0" #Baudrate 38400 Interval 20 Instance "Boiler" Collect "supply-temp" Collect "return-temp" Collect "dhw-temp" Collect "flue-temp" Collect "outdoor-temp" Collect "firing-rate" Collect "boiler-setpoint" PreCacheChain "PreCache" # Boiler supply is in 0.1 degrees C; convert to C Plugin "^modbus$" Type "^temperature$" TypeInstance "^supply$" Factor 0.1 # Boiler temps are in degrees C Plugin "^modbus$" Type "^temperature$" # F = (C * 9) / 5 + 32 Factor 9 Factor 0.2 Offset 32