Skip to content

Component error: modbus - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py) #112

@denzelm5

Description

@denzelm5

Good Day,

Home Assistant 2023.8.3
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230802.1 - latest

Victron Integration : latest

I got this issue this morning :

Updating state for sensor.victron_solarcharger_tracker_2_pv_power_1 (<class 'custom_components.victron.sensor.VictronSensor'>) took 0.726 seconds. Please report it to the custom integration author.
9:08:19 AM – (WARNING) helpers/entity.py
Error while setting up victron platform for number
9:04:52 AM – (ERROR) Number (custom integration)
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ states('sensor.victron_tank_remaining_21')|float() }}' but no default was specified') while processing template 'Template<template=({{ states('sensor.victron_tank_remaining_21')|float() }}) renders=5478>' for attribute '_attr_native_value' in entity 'sensor.jojo_1'
9:04:50 AM – (ERROR) helpers/template_entity.py - message first occurred at 9:04:50 AM and shows up 3 times

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions