Taraman17 / hass-homee

a Home Assistant custom component to integrate the homee smart home platform
MIT License
15 stars 2 forks source link

Warema Weather Station Plus #32

Closed varyamereon closed 7 months ago

varyamereon commented 10 months ago

I'd like to add a feature request for the Warema Weather Station Plus. Basic support seems to be there, the device shows up in Home Assistant, however only the Illuminance entity is present, and the logs show a warning as the entity is reporting in 'klx' as opposed to 'lx' which is supported by HA. Here is the log information for the device:

2023-11-15 15:00:41.476 INFO (MainThread) [custom_components.homee] Found node Weather Station, with following Data: {'id': 10, 'name': 'Weather%20Station', 'profile': 3013, 'image': 'nodeicon_weatherstation', 'favorite': 0, 'order': 5, 'protocol': 23, 'routing': 0, 'state': 1, 'state_changed': 1698140003, 'added': 1697635553, 'history': 1, 'cube_type': 14, 'note': 'WAREMA%20Wetterstation%20Plus%20%281667338%29', 'services': 5, 'phonetic_name': '', 'owner': 2, 'security': 0, 'attributes': [{'id': 69, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 1, 'current_value': 1.0, 'target_value': 1.0, 'last_value': 0.0, 'unit': '', 'step_value': 1.0, 'editable': 1, 'type': 385, 'state': 1, 'last_changed': 1697635553, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': ''}, {'id': 70, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 25, 'current_value': 2.0, 'target_value': 2.0, 'last_value': 2.5, 'unit': 'm%2Fs', 'step_value': 1.0, 'editable': 0, 'type': 146, 'state': 1, 'last_changed': 1700056836, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': '', 'options': {'history': {'day': 1, 'week': 26, 'month': 6}}}, {'id': 71, 'node_id': 10, 'instance': 0, 'minimum': 1, 'maximum': 100, 'current_value': 7.0, 'target_value': 7.0, 'last_value': 8.0, 'unit': 'klx', 'step_value': 0.5, 'editable': 0, 'type': 11, 'state': 1, 'last_changed': 1700056686, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': '', 'options': {'history': {'day': 1, 'week': 26, 'month': 6}}}, {'id': 72, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 500, 'current_value': 500.0, 'target_value': 500.0, 'last_value': 500.0, 'unit': 'lx', 'step_value': 2.0, 'editable': 0, 'type': 301, 'state': 1, 'last_changed': 1700056347, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': '', 'options': {'history': {'day': 1, 'week': 26, 'month': 6}}}, {'id': 73, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 1, 'current_value': 0.0, 'target_value': 0.0, 'last_value': 0.0, 'unit': 'n%2Fa', 'step_value': 1.0, 'editable': 0, 'type': 101, 'state': 1, 'last_changed': 1700056646, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': '', 'options': {'history': {'day': 35, 'week': 5, 'month': 1, 'stepped': True}}}, {'id': 74, 'node_id': 10, 'instance': 0, 'minimum': -20, 'maximum': 60, 'current_value': 5.5, 'target_value': 5.5, 'last_value': 5.5, 'unit': '%C2%B0C', 'step_value': 0.5, 'editable': 0, 'type': 5, 'state': 1, 'last_changed': 1700056477, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': '', 'options': {'history': {'day': 1, 'week': 26, 'month': 6}}}, {'id': 75, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 0, 'current_value': 0.0, 'target_value': 0.0, 'last_value': 0.0, 'unit': 'text', 'step_value': 1.0, 'editable': 0, 'type': 45, 'state': 1, 'last_changed': 1697635553, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '3842110A', 'name': ''}, {'id': 76, 'node_id': 10, 'instance': 0, 'minimum': 0, 'maximum': 1, 'current_value': 0.0, 'target_value': 0.0, 'last_value': 0.0, 'unit': 'n%2Fa', 'step_value': 1.0, 'editable': 1, 'type': 170, 'state': 1, 'last_changed': 1697635553, 'changed_by': 1, 'changed_by_id': 0, 'based_on': 1, 'data': '', 'name': ''}]}

Many thanks!

Taraman17 commented 10 months ago

https://github.com/Taraman17/hass-homee/wiki/Warema-Weather-Station-Plus

varyamereon commented 10 months ago

Screenshot 2023-11-29 at 14 48 08

I am now getting temperature too but nothing else.

Taraman17 commented 10 months ago

Yes, thats correct. I fixed the Temperature sensor in the last release and the rest of the weather station will be in the next one.

varyamereon commented 10 months ago

Great, thank you so much!

Taraman17 commented 10 months ago

The Weather station has 2 attributes, that I can't imagine how they work:

  1. The Dawn sensor. It measures Lux from 0-500, but what does it show in Homee? What happens if Illuminance is over 500 lx?
  2. The Identification mode. What is ist, and how is it shown in Homee?
Taraman17 commented 9 months ago

I added initial support for the values to the new beta release.

sneakinhysteria commented 8 months ago
  1. The Dawn sensor. It measures Lux from 0-500, but what does it show in Homee? What happens if Illuminance is over 500 lx?

All Warema light sensors have a separate Lux and a KLux sensor. So the Lux sensor will stop at 500 and then the KLux sensor will start picking up from 1KLux. This is useful for dusk automation as 1KLux is still very bright. This also needs implementing for the standalone Warema photo sensors, they currently only show the KLux sensor.

Taraman17 commented 8 months ago

Thx. So does the low level sensor show 500lx all the time when it is over? And to drive dawn, you would check if the sensor is between 1 and 499 LX? Can you post a log of the standalone sensor?

sneakinhysteria commented 8 months ago

Hi Markus,

Yes the ‘dawn’ sensor stays at 500 Lux.

I would determine a custom threshold within the dawn range of 0-500 to trigger a dawn automation. 500Lux mint still be too bright, 0 is pitch black darkness. I use 120lx atm. So this needs to be a second standard sensor entity the same way the KLux sensor works.

Here is a screenshot of how the sensor works in Homee:

https://capture.dropbox.com/l3eczEW6BmlUBoot Click to view capture.dropbox.com

I will post logs tonight, I also need to do this for my 15 Warema raffstores as only their sensors work right now, not the actual control entities (they show as unavailable in HA).

Thanks for your work, I am hoping this can eventually free me from the poorly supported black hole Homee has become and just use it as a WMS gateway.

On 11 Jan 2024, at 12:53, Markus Adrario @.***> wrote:

Thx. So does the low level sensor show 500lx all the time when it is over? And to drive dawn, you would check if the sensor is between 1 and 499 LX? Can you post a log of the standalone sensor?

— Reply to this email directly, view it on GitHub https://github.com/Taraman17/hass-homee/issues/32#issuecomment-1886992420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3AFDGU5M2GFPQNDJJSL4LYN7HFHAVCNFSM6AAAAAA7MRT54SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWHE4TENBSGA. You are receiving this because you commented.

sneakinhysteria commented 8 months ago

Here is the standalone photosensor log. It looks like we actually need two lx sensors, a dawn sensor that is capped at 500lx and the standard sensor that starts at 1000lx.

Logger: homeassistant.components.sensor Source: components/sensor/init.py:714 Integration: Sensor (documentation, issues) First occurred: 10:07:49 (1 occurrences) Last logged: 10:07:49

Entity sensor.e_photosensor_1490047_illuminance (<class 'custom_components.homee.sensor.HomeeSensor'>) is using native unit of measurement 'klx' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Taraman17/hass-homee/issues

On 11 Jan 2024, at 13:03, Holger Schueler @.***> wrote:

Hi Markus,

Yes the ‘dawn’ sensor stays at 500 Lux.

I would determine a custom threshold within the dawn range of 0-500 to trigger a dawn automation. 500Lux mint still be too bright, 0 is pitch black darkness. I use 120lx atm. So this needs to be a second standard sensor entity the same way the KLux sensor works.

Here is a screenshot of how the sensor works in Homee:

https://capture.dropbox.com/l3eczEW6BmlUBoot

I will post logs tonight, I also need to do this for my 15 Warema raffstores as only their sensors work right now, not the actual control entities (they show as unavailable in HA).

Thanks for your work, I am hoping this can eventually free me from the poorly supported black hole Homee has become and just use it as a WMS gateway.

On 11 Jan 2024, at 12:53, Markus Adrario @.***> wrote:

Thx. So does the low level sensor show 500lx all the time when it is over? And to drive dawn, you would check if the sensor is between 1 and 499 LX? Can you post a log of the standalone sensor?

— Reply to this email directly, view it on GitHub https://github.com/Taraman17/hass-homee/issues/32#issuecomment-1886992420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3AFDGU5M2GFPQNDJJSL4LYN7HFHAVCNFSM6AAAAAA7MRT54SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWHE4TENBSGA. You are receiving this because you commented.

Taraman17 commented 8 months ago

Hi, Sorry I meant the log as described here: https://github.com/Taraman17/hass-homee/blob/master/README.md#homee-device-not-working-correctly

sneakinhysteria commented 8 months ago

Yes, I tried this, but there is nothing else to see then the error I provided:

On 12 Jan 2024, at 13:15, Markus Adrario @.***> wrote:

Hi, Sorry I meant the log as described here: https://github.com/Taraman17/hass-homee/blob/master/README.md#homee-device-not-working-correctly

— Reply to this email directly, view it on GitHub https://github.com/Taraman17/hass-homee/issues/32#issuecomment-1889025869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3AFDEFJQTCE7GO7G4ZXETYOESOTAVCNFSM6AAAAAA7MRT54SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGAZDKOBWHE. You are receiving this because you commented.

sneakinhysteria commented 8 months ago

image

sneakinhysteria commented 8 months ago

Or is it everything in 'full logs' once I filtered?

home-assistant_2024-01-12T13-06-31.179Z.log

Taraman17 commented 8 months ago

I check next days when I'm home...

juergjue commented 8 months ago

Thank you very much for your effort for adding the weather-station plus functionality! Great to have it within this integration.

But there is one catch... after the update my homee lights (dimmable) are unavailable.

grafik

Taraman17 commented 8 months ago

Thank you very much for your effort for adding the weather-station plus functionality! Great to have it within this integration.

But there is one catch... after the update my homee lights (dimmable) are unavailable.

Can you open a seperate issue for that and provide me with any log-entries from homee or pymee?

Taraman17 commented 8 months ago

Or is it everything in 'full logs' once I filtered?

home-assistant_2024-01-12T13-06-31.179Z.log

It is in the full log - It'll take a few days until I#ll be able to look into it however.

Taraman17 commented 7 months ago

With the latest release, the Weather station should be fully supported. Please let me know if something is still missing or not working.

juergjue commented 7 months ago

Thank you very much.