Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Stromzaehler YouLess LS110
- define Stromzaehler JSONMETER LS110 192.168.178.XXX 300
- attr Stromzaehler alias Stromsensor am Hauszähler
- attr Stromzaehler doStatistics 1
- attr Stromzaehler event-min-interval 60
- attr Stromzaehler group Stromzaehler
- attr Stromzaehler icon measure_power_meter
- attr Stromzaehler room 20_UG_Heizraum
- attr Stromzaehler stateFormat {sprintf("Zählerstand: %.2f kWh | Aktuell: %s Watt | heute: %s kWh | Kosten heute: %s € ", (0.001*ReadingsVal($name, "electricityConsumed",0)), ReadingsVal($name, "electricityPower",0), round((ReadingsVal($name, "statElectricityConsumedToday",0)/1000),2), round(((ReadingsVal($name, "statElectricityConsumedToday",0)/1000)*.19),2))}
- attr Stromzaehler timeOut 60
- attr Stromzaehler userReadings kwhToday {round((ReadingsVal($name, "statElectricityConsumedToday",0)/1000),2)}, euroToday {round(((ReadingsVal($name, "statElectricityConsumedToday",0)/1000)*.19),2)}
- # Stromzaehler YouLess Log
- define FileLog_Stromzaehler FileLog ./log/Stromzaehler-%Y-%m.log Stromzaehler:(electricityConsumed|electricityPower)\x3a.*
- attr FileLog_Stromzaehler group Stromzaehler
- attr FileLog_Stromzaehler room 20_UG_Heizraum,90_System_Logs
- # Stromzaehler | userReadings kurz vor Mitternacht ins LogFile schreiben
- define Stromzaehler_atlog at *23:50 setreading Stromzaehler_atlog kwhToday [Stromzaehler:kwhToday];;setreading Stromzaehler_atlog euroToday [Stromzaehler:euroToday]
- attr Stromzaehler_atlog group Stromzaehler
- attr Stromzaehler_atlog room 20_UG_Heizraum
- # Stromzaehler | LogFile fuer userReadings definieren
- define Filelog_Stromzaehler_atlog FileLog ./log/Stromzaehler-kWh-Kosten-%Y-%m.log Stromzaehler_atlog:(kwhToday|euroToday).*
- attr Filelog_Stromzaehler_atlog group Stromzaehler
- attr Filelog_Stromzaehler_atlog room 20_UG_Heizraum,90_System_Logs
- # Stromzaehler | LogFile | Plot
- define SVG_Filelog_Stromzaehler_atlog SVG Filelog_Stromzaehler_atlog:LS110_Kosten:CURRENT
- attr SVG_Filelog_Stromzaehler_atlog fixedrange month
- attr SVG_Filelog_Stromzaehler_atlog group Stromzaehler
- attr SVG_Filelog_Stromzaehler_atlog label "kWh und Kosten | aktueller Monat"
- attr SVG_Filelog_Stromzaehler_atlog room 20_UG_Heizraum,90_System_Plots
- # Stromzaehler YouLess LS110 PLot / Heute
- define SVG_FileLog_Stromzaehler_Heute SVG FileLog_Stromzaehler:LS110:CURRENT
- attr SVG_FileLog_Stromzaehler_Heute fixedrange day
- attr SVG_FileLog_Stromzaehler_Heute group Stromzaehler
- attr SVG_FileLog_Stromzaehler_Heute label "Stromverbrauch Heute"
- attr SVG_FileLog_Stromzaehler_Heute room 20_UG_Heizraum,90_System_Plots
- # Stromzaehler YouLess LS110 PLot / letzte 7 Tage
- define SVG_FileLog_Stromzaehler_letzte7Tage SVG FileLog_Stromzaehler:LS110:CURRENT
- attr SVG_FileLog_Stromzaehler_letzte7Tage fixedoffset -1
- attr SVG_FileLog_Stromzaehler_letzte7Tage fixedrange week
- attr SVG_FileLog_Stromzaehler_letzte7Tage group Stromzaehler
- attr SVG_FileLog_Stromzaehler_letzte7Tage label "Stromverbrauch letzte 7 Tage"
- attr SVG_FileLog_Stromzaehler_letzte7Tage room 20_UG_Heizraum,90_System_Plots
- # Stromzaehler YouLess LS110 PLot / aktueller Monat
- define SVG_FileLog_Stromzaehler_Monat SVG FileLog_Stromzaehler:LS110:CURRENT
- attr SVG_FileLog_Stromzaehler_Monat fixedrange month
- attr SVG_FileLog_Stromzaehler_Monat group Stromzaehler
- attr SVG_FileLog_Stromzaehler_Monat label "Stromverbrauch aktueller Monat"
- attr SVG_FileLog_Stromzaehler_Monat room 20_UG_Heizraum,90_System_Plots
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement