Home Assistant : Q&A, Tips & Tricks, Your Configs

LocalTuya working fine for me. I think the issue is the Connex devices. I have one or two of them and can't get them to work locally, not sure why. Have over 20 Tuya devices and mostly they work locally, but not the Connex ones.
Bugger and i dont need the Connex for switching, just want PM, but I liked the small profile.
 
Updated my card for my Geyserwise, love having all this info easily glance-able.

1725528426345.png

This (my Geyserwise Tuya board) was the last thing I moved to Tuya Local as I was running a special custom integration before as I set it up when the water_heater entity type was still pretty undefined. Tuya Local sets it up out the box as a water_heater entity though so could get rid of my old custom integration.

I did have to set up a custom sensor for the target temperature as the device itself doesn't report a value for this, only the target for the 4 time blocks so it just returns the first block temperature all the time regardless what the value is. Then I use this to run an automation every 6 hours to set the correct value, this doesn't actually change the target temperature as that's determined by the Geyserwise itself, but just makes it show correctly in HA.
 
Updated my card for my Geyserwise, love having all this info easily glance-able.

View attachment 1755446

This (my Geyserwise Tuya board) was the last thing I moved to Tuya Local as I was running a special custom integration before as I set it up when the water_heater entity type was still pretty undefined. Tuya Local sets it up out the box as a water_heater entity though so could get rid of my old custom integration.

I did have to set up a custom sensor for the target temperature as the device itself doesn't report a value for this, only the target for the 4 time blocks so it just returns the first block temperature all the time regardless what the value is. Then I use this to run an automation every 6 hours to set the correct value, this doesn't actually change the target temperature as that's determined by the Geyserwise itself, but just makes it show correctly in HA.

Do you mind sharing the code for the card, that looks like something I would want to add to my dashboard.
 
Do you mind sharing the code for the card, that looks like something I would want to add to my dashboard.
Sure. I've just started redoing my dashboards and I've separated some things into one of the new "Sections" style dashboards to give me more flexibility.

This is my progress so far on the first one.

1725608191562.png

As you can see the Geyserwise card is wider than the original I posted which allows me to make the time span longer too.

YAML:
type: custom:apexcharts-card
experimental:
  disable_config_validation: true
graph_span: 12h
yaxis:
  - id: first
    decimals: 0
    min: 0
    max: 100
    apex_config:
      tickAmount: 6
  - id: second
    opposite: true
    show: false
    decimals: 1
    apex_config:
      tickAmount: 2
apex_config:
  chart:
    height: 350px
  grid:
    borderColor: '#3f3f3f'
header:
  show: true
  standard_format: true
  show_states: true
  colorize_states: false
series:
  - entity: water_heater.geyserwise_water_heater
    name: Current Temperature
    attribute: current_temperature
    yaxis_id: first
    stroke_width: 2
    unit: °C
  - entity: sensor.geyserwise_water_heater_collector_temperature
    name: Collector Temperature
    yaxis_id: first
    stroke_width: 2
  - entity: water_heater.geyserwise_water_heater
    name: Target Temperature
    attribute: temperature
    yaxis_id: first
    curve: stepline
    stroke_width: 3
    unit: °C
    stroke_dash: 3
    color: lightgrey
  - entity: water_heater.geyserwise_water_heater
    name: Element State
    yaxis_id: second
    transform: 'return x === ''electric'' ? 1 : 0;'
    type: area
    curve: stepline
    stroke_width: 0
    color: grey
    opacity: 0.2
  - entity: binary_sensor.geyserwise_water_heater_element
    name: Element Heating
    yaxis_id: second
    transform: 'return x === ''on'' ? 1 : 0;'
    extend_to: end
    type: area
    curve: stepline
    stroke_width: 0
    color: red
    opacity: 0.5
layout_options:
  grid_columns: full
 
Oh yes, and if you want to have the current "current temperature" value you'll need to create a custom sensor in your configuration yaml, like this:

YAML:
- sensor:
    - name: "geyserwise_water_heater_target_temperature"
      unique_id: 90af635e-718b-4523-a0ec-0d8b51756c81
      unit_of_measurement: "°C"
      device_class: temperature
      state: >
        {% set block_1 = today_at("00:00") %}
        {% set block_2 = today_at("06:00") %}
        {% set block_3 = today_at("12:00") %}
        {% set block_4 = today_at("18:00") %}
        {% if block_1 < now() <= block_2 %}
          {{ states("number.geyserwise_water_heater_overnight_temperature") | int }}
        {% elif block_2 < now() <= block_3 %}
          {{ states("number.geyserwise_water_heater_morning_temperature") | int }}
        {% elif block_3 < now() <= block_4 %}
          {{ states("number.geyserwise_water_heater_afternoon_temperature") | int }}
        {% else %}
          {{ states("number.geyserwise_water_heater_evening_temperature") | int }}
        {% endif %}

Then add an automation to update the value every 6 hours:

1725608669533.png
 
Sure. I've just started redoing my dashboards and I've separated some things into one of the new "Sections" style dashboards to give me more flexibility.

This is my progress so far on the first one.

View attachment 1755683

As you can see the Geyserwise card is wider than the original I posted which allows me to make the time span longer too.

YAML:
type: custom:apexcharts-card
experimental:
  disable_config_validation: true
graph_span: 12h
yaxis:
  - id: first
    decimals: 0
    min: 0
    max: 100
    apex_config:
      tickAmount: 6
  - id: second
    opposite: true
    show: false
    decimals: 1
    apex_config:
      tickAmount: 2
apex_config:
  chart:
    height: 350px
  grid:
    borderColor: '#3f3f3f'
header:
  show: true
  standard_format: true
  show_states: true
  colorize_states: false
series:
  - entity: water_heater.geyserwise_water_heater
    name: Current Temperature
    attribute: current_temperature
    yaxis_id: first
    stroke_width: 2
    unit: °C
  - entity: sensor.geyserwise_water_heater_collector_temperature
    name: Collector Temperature
    yaxis_id: first
    stroke_width: 2
  - entity: water_heater.geyserwise_water_heater
    name: Target Temperature
    attribute: temperature
    yaxis_id: first
    curve: stepline
    stroke_width: 3
    unit: °C
    stroke_dash: 3
    color: lightgrey
  - entity: water_heater.geyserwise_water_heater
    name: Element State
    yaxis_id: second
    transform: 'return x === ''electric'' ? 1 : 0;'
    type: area
    curve: stepline
    stroke_width: 0
    color: grey
    opacity: 0.2
  - entity: binary_sensor.geyserwise_water_heater_element
    name: Element Heating
    yaxis_id: second
    transform: 'return x === ''on'' ? 1 : 0;'
    extend_to: end
    type: area
    curve: stepline
    stroke_width: 0
    color: red
    opacity: 0.5
layout_options:
  grid_columns: full
The energy distribution looks really great!
 
The energy distribution looks really great!
Yep, I found that card on HACS by chance looking for energy cards, works really nicely with the updated dashboards.

Only problem is now I have to buy a bunch of power measurement devices because I can't stand having so much of the consumption under "Other" :laugh:
 
Yoh! That price
I didn't think the price was too bad.

R3890 for the base unit + 8 x 50A clamps.

Considering there don't seem to be many other options available. Shelly has some power measurement devices, but their EM is only 2 channel and is like R1600 for just two channels. Plus it doesn't also monitor the main in feed like the Emporia.
 
I didn't think the price was too bad.

R3890 for the base unit + 8 x 50A clamps.

Considering there don't seem to be many other options available. Shelly has some power measurement devices, but their EM is only 2 channel and is like R1600 for just two channels. Plus it doesn't also monitor the main in feed like the Emporia.
I agree that the price is not unreasonable, considering it can scale to measuring 16 circuits.

Do you know what protocol is used to communicate, and can it be added to HA?
 
It's only a constant 350-370W draw So around 7kWh per day, solar covers it!

What kit do you have there?

Mine uses a constant 150-220w but I have an old ass HP DL380 G7 and another i3 6100 then the networking kit

Looking to replace / decommission the HP with some mini PCs before the end of the year
 
What kit do you have there?

Mine uses a constant 150-220w but I have an old ass HP DL380 G7 and another i3 6100 then the networking kit

Looking to replace / decommission the HP with some mini PCs before the end of the year
A bunch of stuff.

UDM Pro + fibre ONT
5 Port POE switch + 2 POE cameras
8 Port POE switch
HP Microserver + 4 disks
12 Bay DAS fully loaded
2 x Mini-ITX Intel PCs
Paradox Alarm system
2 x rack fans (they run directly off AC power and consume like 15W each)
 
A bunch of stuff.

UDM Pro + fibre ONT
5 Port POE switch + 2 POE cameras
8 Port POE switch
HP Microserver + 4 disks
12 Bay DAS fully loaded
2 x Mini-ITX Intel PCs
Paradox Alarm system
2 x rack fans (they run directly off AC power and consume like 15W each)
Yeah that makes sense then - hopefully i can get my power usage down in time

Do you have a separate UPS just for the network rack?
 
Top
Sign up to the MyBroadband newsletter