#Baron Scott No Agenda Producer I

1 messages · Page 1 of 1 (latest)

wide peak
#

Here is my thermostat state options:
climate.home
Thermostat

hvac_modes: auto, cool, heat, off
min_temp: 44.5
max_temp: 95
fan_modes: on, auto
current_temperature: 72
temperature: 72
fan_mode: auto
hvac_action: idle
fan_action: off
friendly_name: Thermostat
supported_features: 9

#

I cant determine if this sensor is actually working

#

I cannot find any new hvac_status entities anywhere in HA

thorn flame
#

what did you do beyond putting that in configuration.yaml?

wide peak
#

i been trying different code samples based on examples I found on the forums... Currently this is all I have. I then reloaded all the yaml via Dev Tools

summer baneBOT
thorn flame
#

do that

wide peak
#

Is this available via the UI or do I need to do this from a bash shell?

thorn flame
#

shell

thorn flame
#

My guess is that you have two sensor: tags and that your config check will fail

wide peak
#

ha core check reported no errors

#

Where should the hvac_status sensor be found in the HA portal?
Devices? Entities?

#

or will these be new entities tied to the climate.home entity?

#

BTW, how do I post screen shots in discord?

thorn flame
#

It's a sensor. You should find it devtools -> States

summer baneBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

thorn flame
#

Please, no images of text

wide peak
#

The only entity I see is the parent item in DevTool>state
climate.home
Thermostat

cool

hvac_modes: auto, cool, heat, off
min_temp: 44.5
max_temp: 95
fan_modes: on, auto
current_temperature: 72.5
temperature: 72
fan_mode: auto
hvac_action: cooling
fan_action: on
friendly_name: Thermostat
supported_features: 9

thorn flame
#

Find your sensor

#

Review your logs

#

There's nothing more I can do

#

Restart HA

#

if you didn't have sensor: there before

wide peak
#

I cannot find the sensor in any of the items listed in the states page
What log will show whether the sensor is getting created?

#

Does my create sensor code looks correct?

#

OK.... I rebooted my Pi and niw I see the sensor.hvac_status!

thorn flame
#

if you didn't have sensor: there before

wide peak
#

now I need to add the measurement history stats items

#

This is what I plan add:

- platform: history_stats
    name: Hourly Cooling ON Time
    entity_id: hvac_status.cool
    state: 'on'
    type: time
    start: '{{ now().replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
- platform: history_stats
    name: Hourly Heating ON Time
    entity_id: hvac_status.heat
    state: 'on'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
#

If these work correctly, where can I view them to confirm?

thorn flame
#

Hard to say without formatting

wide peak
#

I just added and corrected formatting...
I am asking more about the intent (ability to track hourl yhvac runtime

thorn flame
#

There's still no formatting

summer baneBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

thorn flame
#

Neither has a proper entity_id

#

You said that you found the sensor, but didn't use it

#

If you use the actual entity_id, they look fine

#

Actually, your template never outputs 'on'

wide peak
#

There is a bug that will not allow me to copy the text in file editor

#

When I select the text, the page freezes

#

I saw above... I am tryting to get the yaml to share

thorn flame
#

I'm saying that you're looking for 'on', but your sensor will never have that value

wide peak
#

ahh..
So I should replace with cooling and heating

thorn flame
#

The strings you are returning, yes

wide peak
#

corrected:

  • platform: history_stats
    name: Hourly Cooling ON Time
    entity_id: hvac_status.cool
    state: 'cooling'
    type: time
    start: '{{ now().replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
  • platform: history_stats
    name: Hourly Heating ON Time
    entity_id: hvac_status.heat
    state: 'heating'
    type: time
    start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
    end: '{{ now() }}'
#

If these are now correctly setup, will this store the data indefinitely? I would like to start off with 180 days for the sensor data to be stored.

#

Nevermind... I will rtfm for that.
One final question before I thank you very much for helping me get my first custom HA item created

Should I start with Grafana to build my visual runtime map or is there a simpler lighter weight HA graphing/report option?

thorn flame
#

You're still not using the right entity_ids

#

hvac_status.heat is not a thing

wide peak
#

So would the sensor id's be:
sensor.hvac_status.cool and sensor.hvac_status.heat?

#

I am having a problem understanding the relationship between the parent and the downstream items

#

If the entity in the counter is supposed to just be hvac_status then do I still create separate counters for heat and cool?

thorn flame
#

You only created one sensor - the one you identified earlier

thorn flame
#

Kinda wondering if this is from ChatGPT

wide peak
#

If what is from chat GPT?