nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️
MIT License
729 stars 109 forks source link

-/+ toggle in card not responding, does when settings are pulled up #168

Closed fireheadman closed 2 years ago

fireheadman commented 3 years ago

This will not change the setting... instead I get a WARNING message: 2020-10-29 15:29:53 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities water_heater.hydra

image

But if I go into the card settings by clicking on the name/title, this will change the temperature image

fireheadman commented 3 years ago

odd part is... the entity is valid, just something with trying to adjust the temp is not working as expected.

image

image

nervetattoo commented 3 years ago

I guess water_heater is a different domain so requires different service call. Happy to review a PR that adds support for water heaters

fireheadman commented 3 years ago

I"m not a person that would know how to do a PR. I'm just an end user that is asking for the functionality. sorry about that.

definitely very willing to help in testing new code in anyway possible.

On Wed, Nov 4, 2020 at 2:05 PM Raymond Julin notifications@github.com wrote:

I guess water_heater is a different domain so requires different service call. Happy to review a PR that adds support for water heaters

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nervetattoo/simple-thermostat/issues/168#issuecomment-721974432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXNQG6DCRJFNYNVGHEYCY3SOG6X5ANCNFSM4TEIS7FA .

fireheadman commented 3 years ago

how is a PR created?

nervetattoo commented 3 years ago

https://guides.github.com/activities/hello-world/

fireheadman commented 3 years ago

hmmm... seems a bit over my head, so hopefully someone that understands your code can chip in to make your integration work with water heaters as you mentioned.

On Fri, Nov 13, 2020 at 5:08 AM Raymond Julin notifications@github.com wrote:

https://guides.github.com/activities/hello-world/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nervetattoo/simple-thermostat/issues/168#issuecomment-726729615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXNQG7G3IS4T7RECJRCL3TSPUOURANCNFSM4TEIS7FA .

ntalekt commented 2 years ago

Same result in HA 2022.5.4 with the v2.4.3 card. The water_heater entities are my pool and spa from the Pentair Intellicenter custom integration.

I'm seeing the following services:

robpneu commented 2 years ago

Try adding the following to the configuration:

service:
  domain: water_heater
  service: set_temperature

so my whole configuration is:

type: custom:simple-thermostat
entity: water_heater.sctl183252p_oven
header: false
layout:
  step: row
  mode:
    names: false
    icons: true
    headings: true
step_size: 25
fallback: 'Off'
service:
  domain: water_heater
  service: set_temperature
fireheadman commented 2 years ago

@robpneu Your awesome!!!!... thanks a million for those 2 lines of code. works beautifully now!

For those curious, this is my card info: I also use the scheduler to step up the water heater on the weekends for a couple/few hrs so we can all have hot water..... image

Card:

type: custom:vertical-stack-in-card
cards:
  - type: custom:simple-thermostat
    entity: water_heater.hydra
    step_size: 1
    header: false
    //header: null
    //  name: ''
    //  icon: mdi:thermometer
    decimals: 0
    service:
      domain: water_heater
      service: set_temperature
    hide:
      temperature: true
    sensors:
      - entity: water_heater.hydra
        name: Current Mode
        attribute: operation_mode
      - entity: water_heater.hydra
        name: Water Temp Setpoint
        attribute: temperature
      - entity: sensor.hydra_power_usage_today
        name: Energy Used (kWh)
        //attribute: power_usage_today
      - entity: sensor.hydra_tank_health
        name: Tank Health (%)
        //attribute: tank_health
      - entity: sensor.hydra_compressor_health
        name: Compressor Health (%)
        //attribute: hot_water_availability
  - type: divider
  - type: horizontal-stack
    cards:
      - type: button
        icon: mdi:leaf
        icon_height: 20px
        name: Eco
        tap_action:
          action: call-service
          service: water_heater.set_operation_mode
          service_data:
            entity_id: water_heater.hydra
            operation_mode: eco
      - type: button
        icon: mdi:radiator
        icon_height: 20px
        name: Heat Pump
        tap_action:
          action: call-service
          service: water_heater.set_operation_mode
          service_data:
            entity_id: water_heater.hydra
            operation_mode: heat_pump
      - type: button
        icon: mdi:thermometer-lines
        icon_height: 20px
        name: High Demand
        tap_action:
          action: call-service
          service: water_heater.set_operation_mode
          service_data:
            entity_id: water_heater.hydra
            operation_mode: high_demand
      - type: button
        icon: mdi:flash-outline
        icon_height: 20px
        name: Electric
        tap_action:
          action: call-service
          service: water_heater.set_operation_mode
          service_data:
            entity_id: water_heater.hydra
            operation_mode: electric
      - type: button