Giter Site home page Giter Site logo

0.31.x: Missing entities about ramses_cc HOT 19 CLOSED

zxdavb avatar zxdavb commented on July 4, 2024
0.31.x: Missing entities

from ramses_cc.

Comments (19)

zxdavb avatar zxdavb commented on July 4, 2024 1

@trvrnrth
Would be good if you could remember to:

  • pre-commit run --all
  • mypy

before you commit (I am not sure if the workflow forces you do do this).

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

I am not sure if this is related to #118?

IIRC, v0.31.1 is the first public release that includes this commit.

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

@trvrnrth See above - do you have any thoughts - I've had a quick look, but cannot see what's the issue - I am using the latest dev branch of HA.

I think these are a separate issue:

binary_sensor.13_237335_active
water_heater.stored_hw
binary_sensor.01_145038_schema
sensor.01_145038_hw_heat_demand

... and I will chase them down tomorrow-ish.

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

These coudl be in either group - dunno:

sensor.10_064873_boiler_output_temp
sensor.10_064873_ch_max_setpoint
sensor.10_064873_ch_water_pressure
binary_sensor.10_064873_dhw_enabled
binary_sensor.10_064873_fault_present

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

See:

  • commit bba4b06 restore missing binary_sensor: CTL.active_fault
  • commit 09ef8dd restore missing binary_sensor: BDR.active

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

Diagnostic sensors (ie. entities with an category of EntityCategory.DIAGNOSTIC) are not included in the default dashboard.

I'll take a look at the other reported issues and see if I can spot anything.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

For binary_sensor.13_237335_active your fix looks correct. I had misread the intention of the old RamsesActuator entity class and must have forgotten to bring it up during review.

The change made in bba4b06 could probably be moved to the base RamsesBinarySensor as there's no harm doing the cast for all entities but otherwise seems correct.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

binary_sensor.01_145038_schema is renamed binary_sensor.01_145038_status. I thought we'd had a conversation about that on a previous PR but I can't find it at the moment.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024
sensor.10_064873_boiler_output_temp
sensor.10_064873_ch_max_setpoint
sensor.10_064873_ch_water_pressure
binary_sensor.10_064873_dhw_enabled
binary_sensor.10_064873_fault_present

I can't see anything on the ramses_cc side that would make these unavailable but I do notice that they are also no longer available in my "production" setup so I would suspect a recent ramses_rf change?

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024
water_heater.stored_hw
sensor.01_145038_hw_heat_demand

I suspect that this will be because the DhwZone is not getting picked up from a system at

new_zones = new_entities(

I can PR something that should resolve these but unfortunately don't have a DHW system to test against.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

I believe #131 should resolve discovery of the DhwZones.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024
sensor.10_064873_boiler_output_temp
sensor.10_064873_ch_max_setpoint
sensor.10_064873_ch_water_pressure
binary_sensor.10_064873_dhw_enabled
binary_sensor.10_064873_fault_present

I can't see anything on the ramses_cc side that would make these unavailable but I do notice that they are also no longer available in my "production" setup so I would suspect a recent ramses_rf change?

I believe the problem lies here: zxdavb/ramses_rf#99

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

Diagnostic sensors (ie. entities with an category of EntityCategory.DIAGNOSTIC) are not included in the default dashboard.

That I did not know!

The change made in bba4b06 could probably be moved to the base RamsesBinarySensor as there's no harm doing the cast for all entities but otherwise seems correct.

I agree completely - I pulled it out partly because I am becoming a big fan of strict typing.

Certainly, the issue with 09ef8dd would have been picked up via mypy.

binary_sensor.01_145038_schema is renamed binary_sensor.01_145038_status. I thought we'd had a conversation about that on a previous PR but I can't find it at the moment.

I think you're right - I had that in the back of my head - was going to look at it next.

I can't see anything on the ramses_cc side that would make these unavailable but I do notice that they are also no longer available in my "production" setup so I would suspect a recent ramses_rf change?

You're right again - I alluded to this in the HA forum (do you keep an eye on that?) - I suspect it has something to do with changes to use_native_ot:

ramses_cc:
  ramses_rf:
    use_native_ot: always  # always, prefer (default), avoid, never

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

I can PR something that should resolve these but unfortunately don't have a DHW system to test against.

There are a couple of ways around this.

  • fake a DHW sensor (turn of HW priority, have it set to permanently off)
  • load a contrived cache into HA (via .storage/ramses_cc)
  • 'feed' a stream of packets (an old log) into HA via ser2net

But what I really need to do is setup some tests.

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

Diagnostic sensors (i.e. entities with an category of EntityCategory.DIAGNOSTIC) are not included in the default dashboard.

I think every device should have one - and only one - non-DIAGNOSTIC attr.

  • TRVs: heat_demand (%) - a change from temp
  • BDR: active (bool)
  • DHW (sensor): temperature
  • THM: (indoor) temperature
  • CTL: heat_demand (call for heat) of FC, with ext_state_attr of FA, etc.
  • UFC: (probably) heat_demand
  • OTB: modulation_level (%)

This will complicate the table - main attr is temperature for THM, but heat_demand for TRV.

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

You're right again - I alluded to this in the HA forum (do you keep an eye on that?) - I suspect it has something to do with changes to use_native_ot:

I went looking: zxdavb/ramses_rf#99

from ramses_cc.

trvrnrth avatar trvrnrth commented on July 4, 2024

I think every device should have one - and only one - non-DIAGNOSTIC attr.

That seems reasonable.

This will complicate the table - main attr is temperature for THM, but heat_demand for TRV.

That shouldn't be too terrible; there will be a small amount of duplication but probably nothing horrific. If necessary the rf_class on the description can also accept a union (ie. rf_class=DeviceClassA | DeviceClassB)

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

I went looking: zxdavb/ramses_rf#99

Wow! Too quick! Thanks.

Now: how did that get past mypy?

from ramses_cc.

zxdavb avatar zxdavb commented on July 4, 2024

I have added some typing to ramses_cc, so that is passes a basic mypy check.

Sadly, you'll need to merge it into your work - sorry for making work, but I have learned that strict typing is the way forward - it simply prevents bugs.

from ramses_cc.

Related Issues (20)

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.