Discovery problems
This commit is contained in:
@@ -796,6 +796,7 @@ def publish_state(client):
|
||||
val = g.get()
|
||||
val_rounded = int(val * 10) / 10
|
||||
states[str(i)] = val_rounded
|
||||
info(f"pub G{i} state={val_rounded:.1f} step={g._current_step}")
|
||||
client.publish(gt["state"], f"{val_rounded:.1f}", retain=True)
|
||||
client.publish(gt["status"], "online", retain=True)
|
||||
client.publish(T_STATE, ujson.dumps(states), retain=True)
|
||||
|
||||
Reference in New Issue
Block a user