joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
870 stars 189 forks source link

Climate Card Formatting issues #271

Closed arunsudhakar closed 2 years ago

arunsudhakar commented 2 years ago

Describe the bug I'm getting some random numeric values in the climate card . It looks like the formatting info from the MQTT message is not being handled correctly

To Reproduce Set up a climate card using the cardThermo type

hello_world:
  module: hello
  class: HelloWorld

nspanel-1:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/nspanel/RESULT"
    panelSendTopic: "cmnd/nspanel/CustomSend"
    updateMode: "auto-notify"
    sleepTimeout: 20
    #sleepBrightness: 10
    sleepBrightness:
      - time: "7:00:00"
        value: 10
      - time: "23:00:00"
        value: 0
    locale: "en_US" # used for translations in translations.py and for localized date if babel python package is installed
    screensaver:
      entity: weather.openweathermap
    cards:
      - type: cardThermo
        entity: climate.livingroomac
      - type: cardThermo
        entity: climate.diningroomac
      - type: cardMedia
        entity: media_player.playstation_4

Screenshots Screenshot_2022-06-10 00 28 40_yrB2gA

AppDaemon Logs

2022-06-10 00:14:33.193581 INFO nspanel-1: Sending MQTT Message: pageType~cardThermo
2022-06-10 00:14:33.222710 INFO nspanel-1: Sending MQTT Message: entityUpd~Aircon 1~1|1~climate.livingroomac~250~230~Cooling~160~310~10~~~~~~~~~~~~~~~~~~~~~���~64512~0~heat_cool~���~11487~1~cool~���~60897~0~dry~���~64512~0~heat~���~35921~0~fan_only~���~35921~0~off
2022-06-10 00:14:53.265052 INFO nspanel-1: MQTT callback for: {'topic': 'tele/nspanel/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,sleepReached,cardThermo"}'}

Additional context I updated the NSPanel firmware and autoexec.be to the latest version by running these commands today

FlashNextion http://nspanel.pky.eu/lui-release.tft
UpdateDriverVersion https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be
joBr99 commented 2 years ago

this looks like a missmatch between the appdaemon app installed and the firmware, update the app in hacs to 2.9.3 and restart appdaemon afterwards

arunsudhakar commented 2 years ago

Thank you. It's working now. I'd updated the app in HACS, but since im using dockerised versions of appdaemon and HA, i needed to manually copy the folder to the appdaemon volume from HA.

Btw, my time zone on the panel is wrong, in appdaemon.yaml, the value of appdaemon.time_zone is Asia/SIngapore, but it still shows me GMT time. How can I fix it?

joBr99 commented 2 years ago

It's the Timezone of the docker container that need to be correct, so I guess adding a volume mount for /etc/localtime or something like this should fix it.

joBr99 commented 2 years ago

Never used this version of HA, but it should be possible to set the volume mount of appdaemon to the location where HACS downloads the files.