solarmqtt
所属分类:通讯编程
开发工具:Visual Basic 6.0
文件大小:0KB
下载次数:2
上传日期:2023-10-03 16:21:55
上 传 者:
sh-1993
说明: 显示器für Solar Balkonkraftwerk mit Pico und MQTT,
(Display für Solar-Balkonkraftwerk mit Pico und MQTT,)
文件列表:
LICENSE (1069, 2023-10-22)
code/ (0, 2023-10-22)
code/HA_script_v14.txt (1046, 2023-10-22)
code/SETTINGS.txt (268, 2023-10-22)
code/SolarMQTT_v14.bas (25127, 2023-10-22)
code/older_versions/ (0, 2023-10-22)
code/older_versions/HA_script_v13.txt (1058, 2023-10-22)
code/older_versions/SolarMQTT_v10.bas (22002, 2023-10-22)
code/older_versions/SolarMQTT_v11.bas (22986, 2023-10-22)
code/older_versions/SolarMQTT_v12.bas (23168, 2023-10-22)
code/older_versions/SolarMQTT_v13.bas (23248, 2023-10-22)
code/older_versions/SolarMQTT_v6.bas (20443, 2023-10-22)
code/older_versions/SolarMQTT_v9.bas (21339, 2023-10-22)
code/weekFile.bas (1024, 2023-10-22)
example_logs/ (0, 2023-10-22)
example_logs/solarday.dat (5700, 2023-10-22)
example_logs/solarweek.dat (199, 2023-10-22)
pics/ (0, 2023-10-22)
pics/0809.gif (2234344, 2023-10-22)
pics/0811.gif (2289434, 2023-10-22)
pics/scr01.png (5603, 2023-10-22)
pics/scr02.png (5618, 2023-10-22)
# solarmqtt
[
](https://github.com/teuler/solarmqtt/blob/main/pics/scr02.png)
Display für Solar-Balkonkraftwerk mit Pico und MQTT. Luft auf einem [Raspberry Pi Pico W](https://www.raspberrypi.com/products/raspberry-pi-pico/) unter [MMBasic](https://mmbasic.com/) in der [Webmite](https://geoffg.net/webmite.html)-Version. Interpretiert MQTT-Nachrichten über die erzeugte Solarenergie, hier vom in [Home Assistant](https://www.home-assistant.io/) eingebauten MQTT-Broker.
## Material
- 1x [Raspberry Pi Pico W](https://www.raspberrypi.com/products/raspberry-pi-pico/), z.B. von [Reichelt](https://www.reichelt.de/de/de/raspberry-pi-pico-w-rp2040-cortex-m0-wlan-microusb-rasp-pi-pico-w-p329646.html?PROVID=2788&gclid=EAIaIQobChMIuuXRwPKs_wIVTxUGAB0hJw2sEAQYASABEgL6TPD_BwE&&r=1)
- 1x [WaveShare 2.8" 320x240 Touch Display Module für Raspberry Pi Pico](https://www.waveshare.com/wiki/Pico-ResTouch-LCD-2.8) (262K Farben, SPI), z.B. von [Eckstein](https://eckstein-shop.de/WaveShare28inchTouchDisplayModuleforRaspberryPiPico2C262KColors2C320C3972402CSPI)
- Optional 1x Micro-SD-Karte (bis 32 GB, mit FAT16 oder FAT32 formatiert), falls Screenshots gespeichert werden sollen
## House assistant
**Auslser - Time trigger pattern**
```yaml
platform: time_pattern
seconds: /10
enabled: true
```
**Aktion(en) - MQTT Publish**
```yaml
service: mqtt.publish
data:
qos: 0
retain: false
topic: solar/panels
payload: >-
name:
[o,u];
pw:
[{{states.sensor.shellyplug2_solar_1_power.state | round(1)}},
{{states.sensor.shellyplug2_solar_2_power.state | round(1)}}];
pw-u:
[{{states.sensor.shellyplug2_solar_1_power.attributes.unit_of_measurement}}];
en:
[{{states.sensor.shellyplug2_solar_1_energy.state | round(1)}},
{{states.sensor.shellyplug2_solar_2_energy.state | round(1)}}];
en-u:
[{{states.sensor.shellyplug2_solar_1_energy.attributes.unit_of_measurement}}];
opw:
[{{ int(is_state("binary_sensor.shellyplug2_solar_1_overpowering", "on")) }},
{{ int(is_state("binary_sensor.shellyplug2_solar_2_overpowering","on")) }}];
oht:
[{{ int(is_state("binary_sensor.shellyplug2_solar_1_overheating", "on")) }},
{{ int(is_state("binary_sensor.shellyplug2_solar_2_overheating", "on")) }}];
th:
[{{states.sensor.indoor_outdoor_meter_0580_temperatur.state}},
{{states.sensor.indoor_outdoor_meter_0580_luftfeuchtigkeit.state}}];
```
## Hinweise
- Die Lnge einer MQTT-Nachricht ist bei MMBasic begrenzt, daher werden kurze, weniger aussagekrftige Feldnamen in der MQTT-Nachricht verwendet
近期下载者:
相关文件:
收藏者: