Hallo Community,
ich habe die in espHome eine Gasflschenwaage die soweit auch gut funktioniert.
Leider zeigt sie natürlich das Gewicht incl. der Flasche an. Deshalb würde ich gerne das Taragewicht abziehen. Ich hoffe ihr könnt helfen. Gruß
esphome:
name: gasflaschenwaage
friendly_name: gasflaschenwaage
esp8266:
board: d1_mini
\# Enable logging logger: \# Enable Home Assistant API api:
encryption:
key: "Q5Vm3W+10yaCanOkq5UY0Ntjrq4YtHHxA6l6vHuqd04="
ota:
- platform: esphome
password: "59ce7b2c38258191e6af1f091ce51734"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
\# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Gasflaschenwaage"
password: "33dqHvXxkGDGvH"
captive_portal:
font:
- file: "gfonts://Roboto"
id: roboto
size: 16
sensor:
- platform: hx711
name: "gasflaschenwaage"
id: gasflaschenwaage
dout_pin: D7
clk_pin: D8
gain: 128
update_interval: 6s
filters:
- calibrate_linear:
- -520000 -> 0
- -438200 -> 3.15
unit_of_measurement: kg
accuracy_decimals: 2
- platform: homeassistant
name: gasflasche
id: gasgewicht
entity_id: sensor.gasflaschenwaage_gasflaschenwaage
i2c:
sda: D1
scl: D2
scan: True
id: bus_a
frequency: 400kHz
display:
- platform: ssd1306_i2c
model: "SSD1306 128x32"
update_interval: 6s
lambda: |-
it.printf(10, 10, id(roboto), "Gas: %.2f Kg", id(gasgewicht).state);
by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)