Code Monkey home page Code Monkey logo

ha-netro-watering's People

Contributors

georgebark avatar jeslopalo avatar kcofoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ha-netro-watering's Issues

[Question] - How to push the next schedule irrigation

Hello,

Is not a issue at all, just a question.

I've the latest version of the integration and it's working perfect.
I want to know if is possible to push the next schedule of my HomeAssistant automatiation in order to establish at what time is going to be the next irrigation at the dashboard that I've.

If so, how can I do it? Thanks in advance.

Kind Regards

slowdown factor parameter (sdf)

I'm having problems adding the slowdown factor parameter (sdf) config to the configuration file, when I add (copy and paste) the integration comes back as "Not Loaded". PS Love the time and effort to create this integration !

Lovelace cards yaml examples

This is not an issue but a request to make the integration easier to use. Would it be possible to have the YAML configuration of the lovecards that you present as examples?

Thank you very much for the work to make this useful integration.

coming schedules are not always in the future ๐Ÿ‘Ž

When selecting VALID schedules to get the next to come, one may get a schedule in the past, even though it is not stated in the Netro API documentation. To protect against this, simply add to the selection criteria a watering start date greater than the current date.

Service call to netro watering service returns control before watering completes.

I'm not sure if this is an issue or the way it's supposed to work by design. I have an automation where I water one zone for 1 minute then water a different zone for 1 minute. In the trace, the automation turns on the first zone and then 6 seconds later moves to the second zone (thus shutting down the first zone almost as quickly as it started.) it then runs the 2nd zone and moves on a few seconds later to the next step in the automation. As that last step isn't a netro call - the second watering is allowed to continue.

I can get around this by setting the duration of the zone watering to 1 minute, then pausing the automation for 1 minute, and then watering the second zone. The work-around is simple - I'm just not sure if the service is supposed to work this way?

In case you are wondering why I would ever do this - I have 2 zones where the ground is slow to absorb water and most water runs off. I want to water it for 1 minute, let is soak in for a minute and then water it again for a minute. I'll put this in a loop to repeat about 15 times. During the minute that I'm letting the water soak in, I'm watering the other zone for 1 minute (on and off).

Below is my test script - and attached is a screen shot of the trace.

alias: Netro - watering test
description: Test netro watering services
trigger: []
condition: []
action:

  • service: netro_watering.start_watering
    data:
    duration: 1
    target:
    entity_id: switch.netro_1_front_right_spruce_start_stop_watering
  • service: netro_watering.start_watering
    data:
    duration: 1
    target:
    entity_id: switch.netro_4_front_left_birch_start_stop_watering
  • service: light.toggle
    data: {}
    target:
    entity_id: light.master_bedroom_wall_switch_plug
    mode: single

trace

Report Weather service defect

The Weather Report service should not mandate that humidity be provided. Only the date of the forecast must be indicated.
The absence of humidity however causes an exception when invoking the service.

Unable to adjust rainfall amount alone

Hi. Great work.

I would like to use the Report Weather service to JUST report yesterday's rainfall. (Because Netro will not use the actual rain data provided by Weatherflow).

The Script has the following error. It is requiring the Condition field to be input, when that field is set as optional.

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/netro_watering/__init__.py:393
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:40:29 PM (1 occurrences)
Last logged: 12:40:29 PM

[1390753704] Error handling message: Unknown error (unknown_error) Richard from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 731, in handle_execute_script
    script_result = await script_obj.async_run(msg.get("variables"), context=context)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1578, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/netro_watering/__init__.py", line 393, in report_weather
    "condition": weather_condition.value,
                 ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'value'

500 Internal Server Error attempting to add Netro Integration

After adding netro custom component via HACS and rebooting HA, I attempt to add the integration. I get an error "Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble."

Running HA 2023.5.4 on RPi

I see nothing in the log files related to this.

image

Ability to set run time per station

Hi,

First of all, thank you for implementing this integration!

I wonder if it's possible to implement duration of manual run as an input_number for each station. So I can set them individually instead of global setting for all stations. That way I can do a card like this:
vivaldi_88GErFrRyt

Otherwise please provide a service to call with zone number and duration.

Thanks a lot.

Integration Installation Failed in HA 2024.6.1

Integration failed to install in HA 2024.6.1.

Error log detail:
Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 4:43:22 PM (3 occurrences)
Last logged: 4:43:56 PM

Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

issue " Netro (NPA) error occurred for this serial number"

I would like to start by saying that until this morning the integration worked perfectly. today in the afternoon it gave me an error on the serial number of my device and I decided to remove and install everything from scratch. it gives me this message when I try to enter the serial number of the control unit. How can I solve it?
Netro watering version 1.2.1, h.a. version 2024.7.3

errore netro

Errore in device definition with 2023.8.0

Belo the log after updating to 2023.8.0:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:624
Integration: Sensor (documentation, issues)
First occurred: 10:00:14 (24 occurrences)
Last logged: 10:06:10

Ignoring invalid device info: Invalid device info {'default_model': 'Pixie', 'default_name': 'Giardino', 'hw_version': '1.3', 'identifiers': {('netro_watering', '10521ce699a9')}, 'manufacturer': 'Netro', 'sw_version': '1.3.2'} for 'netro_watering' config entry: device info needs to either describe a device, link to existing device or provide extra information.
Ignoring invalid device info: Invalid device info {'default_model': 'Virtual zone', 'default_name': 'Giardino 1', 'identifiers': {('netro_watering', 'XXX')}, 'manufacturer': 'Netro', 'via_device': ('netro_watering', 'XXX')} for 'XXX' config entry: device info needs to either describe a device, link to existing device or provide extra information.

The device is no more in the dashboard but only the sensors.

Template variable error: 'None' has no attribute 'attributes'

I'm not sure if this is an integration issue or not. I get this is my log file. Is this due to something I'm doing?

Logger: homeassistant.helpers.template
Source: helpers/template.py:2629
First occurred: 11:14:05 AM (110 occurrences)
Last logged: 11:14:08 AM

Template variable error: 'None' has no attribute 'attributes' when rendering '{{ trigger.event.data.new_state.attributes.device_class == "moisture" }}'

Thanks,
Ken

some bugs with Pixie

battery information should be multiplied by one hundred to be properly displayed
the unique zone has no name

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.