Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #WeMos per MQTT_DEVICE in FHEM eingebunden
- defmod UV_WeMos_Stromzaehler MQTT_DEVICE
- attr UV_WeMos_Stromzaehler IODev Mosquitto
- attr UV_WeMos_Stromzaehler alias WeMos Sicherungskasten / Stromzähler
- attr UV_WeMos_Stromzaehler event-on-change-reading .*
- attr UV_WeMos_Stromzaehler event-on-update-reading .*
- attr UV_WeMos_Stromzaehler group Tasmota
- attr UV_WeMos_Stromzaehler room 98_Geräte
- attr UV_WeMos_Stromzaehler subscribeReading_state /SmartHome/EG/Sicherungskasten/stat/Sicherungskasten-WeMos-Stromzaeh/POWER
- #DOIF welches die ON Befehle vom WeMos zählt
- defmod di_Stromzahler DOIF ([UV_WeMos_Stromzaehler] eq "ON")\
- (set $SELF TotalCount {(ReadingsVal("$SELF","TotalCount",0) + 1)})
- attr di_Stromzahler icon helper_doif
- attr di_Stromzahler readingList TotalCount
- attr di_Stromzahler wait 0:3
- #FHEM Modul "ElectricityCalculator" welches sich um die Auswertung der gezählten Impulse kümmert:
- defmod Stromzaehler ElectricityCalculator di_Stromzahler:TotalCount.*
- attr Stromzaehler BasicPricePerAnnum 71.40
- attr Stromzaehler Currency €;
- attr Stromzaehler ElectricityCounterOffset 55422
- attr Stromzaehler ElectricityKwhPerCounts 0.0133333333333333
- attr Stromzaehler ElectricityPricePerKWh 0.2825
- attr Stromzaehler MonthOfAnnualReading 0
- attr Stromzaehler MonthlyPayment 108
- attr Stromzaehler ReadingDestination CalculatorDevice
- attr Stromzaehler SiPrefixPower kW
- attr Stromzaehler room 99_System
- attr Stromzaehler stateFormat Aktueller Stand: [$name:di_Stromzahler_TotalCount_CounterCurrent:r0] kW/h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement