Giter Site home page Giter Site logo

gadget-man / iparcelboxha Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 27 KB

This Home Assistant custom_integration allows you to monitor and control your iParcelBox smart parcel delivery box directly within Home Assistant.

License: MIT License

Python 100.00%
hacs home-assistant home-assistant-integration homeassistant iparcelbox

iparcelboxha's People

Contributors

gadget-man avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

iparcelboxha's Issues

Discovery not completed

In the logs, i find that my iparcelbox is discoverd but it results in the error underneath.
In the debug log form zerconf, i see incoming messages from the iparcelbox IP (on wich i can succesfully log in to the rpc status page)

2022-08-01 10:11:57 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 199, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 197, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 222, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 249, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/iparcelbox/config_flow.py", line 175, in async_step_zeroconf
    _LOGGER.debug("iParcelBox device found via ZeroConf: %s", info["name"])
TypeError: 'ZeroconfServiceInfo' object is not subscriptable

I'm running:
Home Assistant 2022.7.7
Supervisor 2022.07.0
Operating System 8.4
iParcelBox v0.0.9

Depreciated constants - form HA Core 2025.1

Looks like these will change in HA Core 2025.1

Logger: homeassistant.components.lock
Source: helpers/deprecation.py:205
integration: Lock (documentation, issues)
First occurred: 08:13:14 (2 occurrences)
Last logged: 08:13:14

SUPPORT_OPEN was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use LockEntityFeature.OPEN instead, please report it to the author of the 'iparcelbox' custom integration


Logger: homeassistant.components.binary_sensor
Source: helpers/deprecation.py:205
integration: Binary Sensor (documentation, issues)
First occurred: 08:13:14 (8 occurrences)
Last logged: 08:13:14

DEVICE_CLASS_OPENING was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.OPENING instead, please report it to the author of the 'iparcelbox' custom integration
DEVICE_CLASS_DOOR was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.DOOR instead, please report it to the author of the 'iparcelbox' custom integration
DEVICE_CLASS_LOCK was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.LOCK instead, please report it to the author of the 'iparcelbox' custom integration
DEVICE_CLASS_BATTERY_CHARGING was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.BATTERY_CHARGING instead, please report it to the author of the 'iparcelbox' custom integration


Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 08:13:04 (4 occurrences)
Last logged: 08:13:14

DEVICE_CLASS_BATTERY was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.BATTERY instead, please report it to the author of the 'iparcelbox' custom integration
DEVICE_CLASS_TIMESTAMP was used from iparcelbox, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TIMESTAMP instead, please report it to the author of the 'iparcelbox' custom integration

Since upgrade to latest HA, I have had issues with iParcelbox, showing as connected, but all "unknown" status

First I want to say thank you very much for creating this addon.
I have been using this with my HA setup and great to have my Alexas announce when a delivery is made!

Now I am having issues since the latest update of HA and am hoping that you can help me with this.

I ran the debug logging and found this section.

2023-04-28 11:59:55.512 ERROR (MainThread) [custom_components.iparcelbox.config_flow] TimeoutError connecting to iParcelBox at 192.168.5.19 ()

2023-04-28 12:05:58.513 INFO (MainThread) [homeassistant.setup] Setting up iparcelbox
2023-04-28 12:05:58.514 INFO (MainThread) [homeassistant.setup] Setup of domain iparcelbox took 0.0 seconds
2023-04-28 12:06:03.554 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for iparcelbox using this method at custom_components/iparcelbox/init.py, line 114: hass.config_entries.async_setup_platforms(entry, PLATFORMS)
2023-04-28 12:06:03.561 INFO (MainThread) [homeassistant.components.lock] Setting up lock.iparcelbox
2023-04-28 12:06:03.562 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.iparcelbox
2023-04-28 12:06:03.571 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.iparcelbox
2023-04-28 12:06:03.581 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new lock.iparcelbox entity: lock.iparcelbox

It continues to find sensors and binary_sensors for the rest of the entities.

Hope this information is sufficient. I am using the latest version 0.0.13

Thank you

ValueError: could not convert string to float: 'unknown'

Got this on an HA restart after installing the integration yesterday.

Logger: homeassistant.helpers.event
Source: helpers/template.py:575
First occurred: 08:13:09 (6 occurrences)
Last logged: 08:13:13

Error while processing template: Template<template=({% set state=states('sensor.iparcelbox_parcelcount')|float %} {% if state == 0 %} none {% else %} red {% endif %}) renders=2>
Error while processing template: Template<template=({% set state=states('sensor.iparcelbox_parcelcount')|float %} {% if state == 0 %} none {% else %} mdi:exclamation {% endif %}) renders=2>
Error while processing template: Template<template=({% set state=states('sensor.iparcelbox_parcelcount')|float %} {% if state == 0 %} light-grey {% else %} light-green {% endif %}) renders=6>
Error while processing template: Template<template=({% set state=states('sensor.iparcelbox_parcelcount')|float %} {% if state == 0 %} none {% else %} red {% endif %}) renders=6>
Error while processing template: Template<template=({% set state=states('sensor.iparcelbox_parcelcount')|float %} {% if state == 0 %} none {% else %} mdi:exclamation {% endif %}) renders=6>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set state=states('sensor.iparcelbox_parcelcount')|float %}
{% if state == 0 %} light-grey
{% else %} light-green
{% endif %}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set state=states('sensor.iparcelbox_parcelcount')|float %}
{% if state == 0 %} light-grey
{% else %} light-green
{% endif %}' but no default was specified

issue with the iparcelbox

In all my integration items i see the message Translation Error: The intl string context ....

can someone help me with this

Cannot add iparcelbox

when adding manualy the iparcelbox, it reports that the password is incorrect or that the device is not online.
As i connected to the RPC status page moments before, i'm certain that the device is online and the password is correct.

I cant find any error in the logs.
I'm running:
Home Assistant 2022.7.7
Supervisor 2022.07.0
Operating System 8.4
iParcelBox v0.0.9

Maybe related to the non-discovery of the same device in the same setup as reported #3

Everythign "unknown"

Everything in "unknown" suck as parcel count, last opened etc.

but i can still click the buttons like "allow delivery" and they work.

Any ideas please? restarted the iparcelbox and restarted home assistant.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.