ottopaulsen / MMM-MQTT

MQTT Client module for MagicMirror2
MIT License
57 stars 29 forks source link

MMM-MQTT no longer connects to broker #75

Closed HA-TB303 closed 3 months ago

HA-TB303 commented 3 months ago

Hi,

Might not really be a bug, I'm not sure, but since probably the last MM update I no longer see MMM-MQTT connecting to my broker.

PORT STATE SERVICE 1883/tcp open mqtt


- I checked with netstat for any connection, and there is none. 
- The configuration is unchanged.

{ module: 'MMM-MQTT', position: 'right', header: 'Energie', config: { mqttServers: [ { address: '192.168.207.101', // Server address or IP address port: '1883', // Port number if other than default user: 'magicmirror', password: 'xxxxxxxxxxxx', subscriptions: [ { topic: 'zonnepanelen/productie', // Topic to look for label: 'Zonnepanelen nu', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'W' }, { topic: 'zonnepanelen/consumptie', // Topic to look for label: 'Consumptie nu', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'W' }, { topic: 'zonnepanelen/nettoverbruik', // Topic to look for label: 'Netto verbruik nu', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'kW' }, { topic: 'energie/electriciteitsverbruik/dagelijks', // Topic to look for label: 'Electriciteit vandaag', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'kWh' }, { topic: 'energie/zonnepanelen/dagelijks', // Topic to look for label: 'Zonnepanelen vandaag', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'kWh' }, { topic: 'energie/waterverbruik/dagelijks', // Topic to look for label: 'Water vandaag', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'm3' }, { topic: 'energie/gasverbruik/dagelijks', // Topic to look for label: 'Gas vandaag', // Displayed in front of value maxAgeSeconds: 30, // Reduce intensity if value is older suffix: 'm3' }, ] } ], } },


Anyone else know what might be going on, or what I could do to debug?

MM version: 2.28.0 
MMM-MQTT: 2024-06-15
HA-TB303 commented 3 months ago
mosquitto_sub -h 192.168.207.101 -u magicmirror -P xxxxxxxxxx -t '#'

From the MM system to the broker also works fine.

HA-TB303 commented 3 months ago

This works again. Turns out the new MM version does not support position: "left: of position: "right" anymore, without this being mentioned in breaking changes.

HA-TB303 commented 3 months ago

Closed