Just of the top of my head I donβt think the rules are in the correct format for v3
V3 needs the square brackets
CUSTOM_RULES = {
# "v1": ["v2 / 12"], # Converts a live value ie. Watts to an energy value ie Wh...... but this is not needed as pvoutput already does this.
# "v3": ["v4 / 12"], # See above rule
# "v2": ["v2 * 0.75"], # adjust the sensor readings by a multiplication of xxx to get teh correct reading.
# "v4": ["v4 * 0.75", "0 if v4 < 300 else v4"], # Applying 2 rules sequentially the first rule is done first then seperated by a comma, the second rule is applied.
# "v8": ["v7 + 100"], # Assuming v7 = 0 then v8 = 100
# "v9": ["v8 + 100"], # v8 = 100 from above rule so v9 = 200
# "v10": ["v9 + 100"],
# "v11": ["v10 + 100"],
# "v12": ["v11 + 100"],
# Add more rules as needed, (values update after each rule so you can use an updated value from one rule for the next rule) (the rules run from top to bottom).