Skip to content

Commit

Permalink
Refresh MQTT status on each new message
Browse files Browse the repository at this point in the history
  • Loading branch information
dprslt committed Jul 6, 2024
1 parent 7c1e564 commit 4382596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ports-adapters/domotic/HomeAssistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class HomeAssistant {
console.log('[HomeAssistant] - Not connected to the broker, skipping');
return;
}
await this.brokerPort.publish(`homeassistant/sensor/${this.sensorName}/status`, 'online');
await this.brokerPort.publish(
'homeassistant/sensor/envoy-90/state',
JSON.stringify({
Expand Down

0 comments on commit 4382596

Please sign in to comment.