NSPanel Lovelace UI - Show Fahrenheit Instead of Celsius

Hi all, I’m hoping to get some assistance getting my thermostat to show in Fahrenheit Instead of Celsius
image

Version - Home Assistant

  • 2022.12.6
  • Operating System: 9.4
  • Frontend: 20221213.0

After successfully following the NsPanel Lovelace UI Docs instructions, I created a Generic Thermostat and noticed the problem

What I’ve tried

homeassistant:
  unit_system: imperial
  temperature_unit: F

My configuration

climate in configuration.yaml

climate:
  - platform: generic_thermostat
    unique_id: livingroom_thermostat
    name: "Livingroom Thermostat"
    heater: switch.plug12
    target_sensor: sensor.nspanel_1_analog_temperature1
    min_temp: 50
    max_temp: 90
    ac_mode: false
    target_temp: 68
    cold_tolerance: 2
    hot_tolerance: 1
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 58
    precision: 1.0
    #unit_of_measurement: "F"
    #unit_of_measurement: "°F"
    #temperature: "°F"

apps.yaml

---
nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/nspanel-1/RESULT"
    panelSendTopic: "cmnd/nspanel-1/CustomSend"
    model: us-l
    sleepTimeout: 20
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 0
    locale: "en_US"
    screensaver:
      entity: weather.forecast_home
      weatherUnit: fahrenheit
    cards:
      - type: cardThermo
        title: Livingroom Thermostat
        entity: climate.livingroom_thermostat
        temperatureUnit: fahrenheit
      - type: cardEntities
        title: Entities Card Test
        entities:
          - entity: switch.garage_switch_left
          - entity: binary_sensor.garage_door_left
          - entity: switch.garage_switch_right
          - entity: binary_sensor.garage_door_right

Solved - I created a sensor template - essentially the climate refers to the sensor template where I specify the unit_of_measure to be °F and the state is calculated from the NSP Panel’s temperature sensor

It looks like this now :slight_smile:

image

1 Like

Hi there,
May I ask, how can you set up thermostat card like that? I can only set as “cardThermo” but I have to admit not as nice as yours

Hi,

I updated my configuration.yaml specifying generic_thermostat for my climate’s platform as follows"

climate:
  - platform: generic_thermostat
    unique_id: livingroom_thermostat
    name: "Livingroom Thermostat"
    heater: switch.plug12
    target_sensor: sensor.nspanel_temperature_sensor_1
    min_temp: 50
    max_temp: 90
    ac_mode: false
    target_temp: 68
    cold_tolerance: 2
    hot_tolerance: 1
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 58
    precision: 1.0