Create dummy hardware and device
Setup MQTT
Option 1 - preffered
In your meter configuration located in /etc/wmbusmeters.d/ add MQTT configuration, where XYZ is Idx of your virtual sensor
shell=/usr/bin/mosquitto_pub -h localhost -t domoticz/in -m "{\"idx\":XYZ,\"svalue\":\"$METER_TOTAL_M3\"}"
When data is sent by wmbusmeters check in domoticz WUI under Utility tab if created sensor is updated with new value
Option 2 - more hackinsh
- Steps below involves modification of sqlite DB - remeber to make backups before modifications!
Change sensor ID in domoticz
sqlite3 domoticz.db
SELECT * FROM DeviceStatus WHERE ID = 2;
and check also sensor ID from wmbusmeters config to verify that ID is not taken (should not return anything) -
SELECT * FROM DeviceStatus WHERE ID = 01234567;
UPDATE DeviceStatus SET ID = 01234567 WHERE ID = 2;
SELECT * FROM DeviceStatus WHERE ID = 01234567;
.exit
Repeate steps above for each sensor
In /etc/wmbusmeters.conf add MQTT configuration
shell=/usr/bin/mosquitto_pub -h localhost -t domoticz/in -m "{\"idx\":$METER_ID,\"svalue\":\"$METER_TOTAL_M3\"}"
When data is sent by wmbusmeters check in domoticz WUI under Utility tab if created sensor is updated with new value