0.1.114c
This commit is contained in:
parent
f303708992
commit
c386f97371
|
@ -3,7 +3,7 @@ FROM python:3.8-slim
|
|||
WORKDIR /opt/miscale
|
||||
COPY src /opt/miscale
|
||||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
bluez \
|
||||
python-pip \
|
||||
libglib2.0-dev && \
|
||||
|
|
|
@ -193,7 +193,7 @@ OLD_MEASURE = ''
|
|||
def discovery():
|
||||
for MQTTUser in (USER1_NAME,USER2_NAME,USER3_NAME):
|
||||
message = '{"name": "' + MQTTUser + ' Weight",'
|
||||
message+= '"state_topic": "' + MQTT_PREFIX + '/' + MQTTUser + '/weight","value_template": "{{ value_json['weight'] }}",'
|
||||
message+= '"state_topic": "' + MQTT_PREFIX + '/' + MQTTUser + '/weight","value_template": "{{ value_json.weight }}",'
|
||||
message+= '"json_attributes_topic": "' + MQTT_PREFIX + '/' + MQTTUser + '/weight","icon": "mdi:scale-bathroom"}'
|
||||
publish.single(
|
||||
MQTT_DISCOVERY_PREFIX + '/sensor/' + MQTT_PREFIX + '/' + MQTTUser + '/config',
|
||||
|
|
Loading…
Reference in a new issue