herikw / home-assistant-custom-components

Atag One Custom components for Home-Assistant
GNU General Public License v3.0
11 stars 5 forks source link

enable all sensors? #4

Closed jcoetsie closed 1 year ago

jcoetsie commented 5 years ago

Hi,

First of all thanks for your great work.

Would it be possible to expose all sensor data that is available through the api?

"deviceIP": "192.168.50.65",
"deviceId": "6808-1700-2002_18-15-002-390",
"latestReportTime": "2018-09-22 14:23:29",
"burningHours": 1.06,
"roomTemperature": 21.2,
"outsideTemperature": 12.0,
"dhwSetpoint": 60.0,
"dhwWaterTemperature": 54.0,
"chSetpoint": 0.0,
"chWaterTemperature": 21.2,
"chWaterPressure": 1.1,
"chReturnTemperature": 21.2,
"targetTemperature": 21.0,
"deviceStatus": 1,
"connectionStatus": 23,
"deviceErrors": "",
"boilerErrors": "",
"dbgOutsideTemp": 24.3,
"pcbTemp": 27.9,
"dhwWaterTemp": 54.0,
"dhwWaterPres": 0.0,
"boilerStatus": 512,
"boilerConfig": 258,
"chTimeToTemp": 0,
"powerCons": 0,
"rssi": 49,
"current": 12,
"voltage": 3774,
"resets": 1,
"memoryAllocation": 2800,
"chStatus": 33,
"chControl_mode": 0,
"chMode": 2,
"chModeDuration": 0,
"chModeTemp": 21.0,
"dhwStatus": 53,
"dhwMode": 1,
"weatherTemp": 11.9,
"weatherStatus": 2,
"vacationDuration": 0,
"extendDuration": 0,
"fireplaceDuration": 10800,
"flameStatus": "Off",
"atagOneVersion": "R56",
"macAddress": "78-4F-43-51-2E-E6"
herikw commented 5 years ago

I have added a couple of extra sensors. If looking at my own configuration these are the fields that seems to have some usable values. Please let me know when there is a need for some other report field(s)

jcoetsie commented 5 years ago

Hi,

tx. Can never have enough sensors :-)

I use this to understand "de stooklijn" of the Atag.

I can't seem to be able to activate the sensors though.

I copied "atagone.py" to the config/custom_components/sensor

I see no errors. Should this file be elsewhere?

jcoetsie commented 5 years ago

I use hass.io btw

RezzZ commented 5 years ago

same here but that running HA on rpi3B+ inside docker. I enabled the sensors but the don't show up..

jcoetsie commented 5 years ago

Rene,

The doc is nit clear on that but you need a separate entry for the sensors:

I have this:

Main configuration.yaml

sensor: !include sensors.yaml

In sensors.yml

On 29 Dec 2018, at 23:10, René Sluiter notifications@github.com wrote:

same here but that running HA on rpi3B+ inside docker. I enabled the sensors but the don't show up..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/herikw/home-assistant-custom-components/issues/4#issuecomment-450523747, or mute the thread https://github.com/notifications/unsubscribe-auth/AFrN8I6KrBUo3aGLCU7i7SW9_-Bq5LMQks5u9-hogaJpZM4W1ruR.

RezzZ commented 5 years ago

ahh I had that resources part in the climate setup. I removed it there, added a new atagone.yaml in my sensors folder. I now have all sensors present in HA. Thanks!

pipetboy commented 4 years ago

Hi! Great work! This is adding a lot of intelligence into my ATAG One setup! (I now have geofencing!!! ) The only sensor I am still missing, however, is the target temperature. (I'd like to graph that)

Thank you so much!! Theo

RezzZ commented 4 years ago

target temperature is already part of the climate.atagone_thermostat right? If you record it in influxdb I believe target temp should already be a part of it for you to graph?

Otherwise you can always create a template sensor based on the attribute "temperature" of the thermostat.

pipetboy commented 4 years ago

Sure you can add it with a template sensor, but it is kinda strange to have all these sensors (like room temp, water temp, outside temp, water pressure, etc) already included and then miss the target temp....

RezzZ commented 4 years ago

That’s true but target temp is not an actual sensor. It’s the temp you set in the thermostat component so, to me, it seems a bit redundant to add another sensor with the same value. besides, the climate component already graphs target and current temp so where are you exactly missing the option to graph the target temp? Do you want to do that in HA? Or are you using an external database like influx and grafana for displaying and dashboarding?

sildehoop commented 4 years ago

I would also like to have the target temp to use with the custom mini graph card

pipetboy commented 4 years ago

Slidehoop,

You will have to create the sensor yourself...

- platform: template sensors: target_temp: friendly_name: "Temperatuur instelling" entity_id: climate.atag_one_thermostat value_template: "{{ state_attr('climate.atag_one_thermostat', 'temperature') }}" unit_of_measurement: '°C' icon_template: mdi:thermostat-box

Hope this helps...

mmlaarhoven commented 4 years ago

I also would like it very much to store the target temp in the influx db in a very easy way...

RezzZ commented 4 years ago

target temp is already part of the state attribute of your climate.atagone component. Just push that to influx and you can easily view your current and target temp in grafana.

a query in grafana could look something like this:

SELECT mean("temperature") AS "target temp", mean("current_temperature") AS "current temp" FROM "state" WHERE ("entity_id" = 'atagone_thermostat') AND $timeFilter GROUP BY time($__interval) fill(linear)

it would something like like this: image

Bergerie commented 4 years ago

I'm currently using the API to interface with Home assistant. In order to allow a 1 to 1 transfer to the custom component, I'm short of the following sensor data: ['retrieve_reply']['control']['ch_mode_temp'] ['retrieve_reply']['control']['ch_control_mode'] ['retrieve_reply']['control']['ch_mode'] ['retrieve_reply']['configuration']['ch_heating_type'] ['retrieve_reply']['wifi_scan']['ssid_list'][0]['SSID'] ['retrieve_reply']['wifi_scan']['ssid_list'][0]['RSSI'] Would it be possible to include these. Screenshot_2020-07-12 Overview - Home Assistant

Bergerie commented 4 years ago

Any thoughts about my request of 12th Juliy for incremental sensors? Would highly appreciate feedback whether possible.

pmeij270769 commented 3 years ago

Hi there. I am fairly new to Home assistant and trying to find my way through various setups.

Am trying to get the ATAG one working. I did the setup and entities now shows the Atag One as climate.atag_one. Copying sensor section into configuration.yaml and restarting however does not add sensor entities. Am I missing a step.

Bergerie commented 3 years ago

Doubt whether you will get a response. Sent me a PM and I will guide you through a different and more user friendly setup.

RezzZ commented 3 years ago

Hi there. I am fairly new to Home assistant and trying to find my way through various setups.

Am trying to get the ATAG one working. I did the setup and entities now shows the Atag One as climate.atag_one. Copying sensor section into configuration.yaml and restarting however does not add sensor entities. Am I missing a step.

Not to talk this integration down but there is now a supported atag component in ha which does all this integration does. Easy setup via integrations menu

pmeij270769 commented 3 years ago

Die had ik nog niet gezien.... zal dr eens naar kijken thanx!

M.vr.gr.

Patrick Meijer Verstuurd vanaf mijn iPhone

Op 15 mei 2021 om 17:21 heeft René Sluiter @.***> het volgende geschreven:

 Hi there. I am fairly new to Home assistant and trying to find my way through various setups.

Am trying to get the ATAG one working. I did the setup and entities now shows the Atag One as climate.atag_one. Copying sensor section into configuration.yaml and restarting however does not add sensor entities. Am I missing a step.

Not to talk this integration down but there is now a supported atag component in ha which does all this integration does. Easy setup via integrations menu

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.