awesome stuff Jim!
how are you determining asleep/awake? what hardware are you using?
Any way to see some of your node red automations?
awesome stuff Jim!
how are you determining asleep/awake? what hardware are you using?
Any way to see some of your node red automations?
I have alot of my Node-Red automations in my Github already if you look in the package there will be a Node-Red Folder
Update 15/5/19
Added a Power Consumption Lovelace Tab there are multiple methods as to how I got consumption into this so feel free to ask and I can explain. Will update repo just now with config used.
Lol appropriate with poles open tomorrow
Please do explain though, super interested in what youāre using for power consumption hardware, etcā¦
Can you post what you did to fix the issue?
I am writing a blog post about it for you will update you shortly of link.
Hi, Iāve seen youāve got the sensor count using sensor.automation_count for example
But where in your GIT is the code to say how sensor.automation_count gets its value ?
Iām currently using
#----- Count Automations
count_automations:
entity_id: sensor.date
value_template: "{{ states.automation | list | length }}"
Which works, but only updates once HA is restarted
Did you come across this problem?
@SJHarrison1992 I use this you can find them all in the package called things_status
sensor:
- platform: template
sensors:
automation_count:
friendly_name: 'Number of Automations'
value_template: >
{%- set domains = ['automation'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
Thank you for the reply!
Iāve added your code in, and can now see in my logs the following warning
Template sensor automation_count has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.
Itās showing the correct amount of automations as it was before, but again, only when I restart HA does it update the number
Fair enough for me I reboot my HA atleast 3 times a day lol canāt stop tinkering. You just need to add an entity_id for the template sensor to trigger off. If you have the time_date sensor you could use the sensor.time as your trigger.
sensor:
- platform: template
sensors:
automation_count:
friendly_name: 'Number of Automations'
entity_id: sensor.time
value_template: >
{%- set domains = ['automation'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] -%}
{% if loop.first %}
{{loop.length}}
{% endif %}
{%- endfor -%}
{%- endfor -%}
Absolutely love itā¦ also shamelessly stealing all of it (the parts I understand)
Absolutely love your UI and itās given so much help with looking at your codeā¦ I also donāt want to be that guy, but kw/h under āpowerā has no meaning. Itās either kW, which is kJ/s. So how much power you use. kWh is kW over an hour, so using 1 kJ/s (kW) means you will have used 1 kWh. kW/hour is effectively the rate of change in power usageā¦ So kJ per second per second, like acceleration is m/s2 hope that makes sense
I have already realised the error of my ways the funny thing is the basis of my degree is electrical engineering lol
I should add the new screenshot
Had a look in your repo, but canāt find out how you managed to get the āgridā look (similar vertical size of all cards) in your Patio. Could you provide me with some hints on how to achieve that?
Hi Frank,
For the mini graph cards I use the card settings to control the height of each card, the only other thing I use is some custom gap cards to create the blank space around my media card so the others cards align.
#################################################################
# #
# Patio - Media Player Card #
# #
#################################################################
- type: custom:gap-card
height: 66
size:
- type: custom:card-modder
card:
type: custom:mini-media-player
entity: media_player.patio_kodi
artwork: cover
power_color: true
show_source: true
show_progress: true
group: true
#background: /local/lovelace/downstairs/evening-tv_3.jpg
style:
background-image: url("/local/lovelace/cardbackK.png")
background-repeat: no-repeat
background-color: rgba(50,50,50,0.3)
background-size: 100%
- type: custom:gap-card
height: 66
size:
I really like this this card format. I tried to replicate one part of it but for the life of me cant figure out how you got nuc server to shrink down, can you share how you did that?
Can you screenshot which card you are talking about please.