jblance / powermon

refactor of mpp-solar and jkbms to allow more flexibility
MIT License
4 stars 1 forks source link

mqtt password shown in logs #11

Open jblance opened 20 hours ago

jblance commented 20 hours ago

logging that includes dthe config for the mqttbroker includes the password

2024-10-21 10:01:17,326:INFO:runner:main@147: config: {'device': {'name': 'Daly BMS', 'model': '250A16S48V', 'manufacturer': 'Daly', 'serial_number': 1, 'port': {'type': 'serial', 'path': '/dev/ttyUSB0', 'baud': 9600, 'protocol': 'DALY'}}, 'commands': [{'command': 'SOC', 'trigger': {'every': 10}, 'outputs': [{'type': 'mqtt', 'format': {'type': 'hass', 'extra_info': True, 'discovery_prefix': 'homeassistant'}}]}, {'command': 'status', 'trigger': {'every': 10}, 'outputs': [{'type': 'mqtt', 'format': {'type': 'hass', 'extra_info': True, 'discovery_prefix': 'homeassistant'}}]}, {'command': 'mosfet', 'trigger': {'every': 10}, 'outputs': [{'type': 'mqtt', 'format': {'type': 'hass', 'extra_info': True, 'discovery_prefix': 'homeassistant', 'excl_filter': 'bms_cycles'}}]}, {'command': 'cell_voltages', 'trigger': {'every': 10}, 'outputs': [{'type': 'mqtt', 'format': {'type': 'hass', 'extra_info': True, 'discovery_prefix': 'homeassistant', 'filter': '(0[1-9]|1[0-6])'}}]}, {'command': 'temperatures', 'trigger': {'every': 10}, 'outputs': [{'type': 'mqtt', 'format': {'type': 'hass', 'extra_info': True, 'discovery_prefix': 'homeassistant', 'filter': 'highest_temperature'}}]}], 'mqttbroker': {'name': '100.65.100.148', 'port': 1883, 'username': 'hass', 'password': '...'}, 'daemon': {'type': 'systemd', 'keepalive': 30}, 'loop': 10, 'debuglevel': 10} 2024-10-21 10:01:17,326:DEBUG:mqttbroker:from_config@22: mqttbroker config: {'name': '100.65.100.148', 'port': 1883, 'username': 'hass', 'password': '...'}