Skip to content

Commit

Permalink
add delay to hassd
Browse files Browse the repository at this point in the history
  • Loading branch information
jblance committed Jan 17, 2023
1 parent 761efce commit 41c14f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mppsolar/outputs/hassd_mqtt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json as js
import logging
import re
from time import sleep

from ..helpers import get_kwargs, key_wanted
from .mqtt import mqtt
Expand Down Expand Up @@ -172,4 +173,5 @@ def output(self, *args, **kwargs):

# publish
mqtt_broker.publishMultiple(config_msgs)
sleep(0.5)
mqtt_broker.publishMultiple(value_msgs)
2 changes: 1 addition & 1 deletion mppsolar/protocols/pi30max.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@
"type": "QUERY",
"response_type": "INDEXED",
"response": [
[1, "PV Generated Energy for Day", "int", "Wh", {"icon": "mdi:solar-power", "device-class": "power"}],
[1, "PV Generated Energy for Day", "int", "Wh", {"icon": "mdi:solar-power", "device-class": "energy"}],
[2, "Year", "info:cv[:4]", ""],
[3, "Month", "info:calendar.month_name[int(cv[4:6])]", ""],
[4, "Day", "info:cv[6:]", ""],
Expand Down
2 changes: 1 addition & 1 deletion mppsolar/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.15.11"
__version__ = "0.15.12"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mppsolar"
version = "0.15.11"
version = "0.15.12"
description = "Package to communicate with Solar inverters and BMSs"
authors = ["John Blance"]

Expand Down

0 comments on commit 41c14f9

Please sign in to comment.