Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Climate entity unavailable #68

Closed
NdK73 opened this issue Mar 16, 2022 · 21 comments
Closed

Climate entity unavailable #68

NdK73 opened this issue Mar 16, 2022 · 21 comments

Comments

@NdK73
Copy link

NdK73 commented Mar 16, 2022

Hello.

I used succesfully this integration in the past (last summer), but lately it stopped working.
I'm currently using Home Assistant 2022.3.5 and latest git version of tasmota_irhvac.

My config file contains:

climate:
  - platform: tasmota_irhvac
    name: "viessman_p2"
    command_topic: "ir-1/cmnd/IRhvac"
    state_topic: "ir-1/tele/RESULT"
    temperature_sensor: sensor.th05_temperature
    protocol: "GREE"
    min_temp: 16 #optional - default 16 int value
    max_temp: 32 #optional - default 32 int value
    target_temp: 24 #optional - default 26 int value
    initial_operation_mode: "off" # optional - default "off" string value (one of the "supported_modes")
    away_temp: 28 #optional - default 24 int value
    precision: 1 #optional - default 1 int or float value. Can be set to 1, 0.5 or 0.1
    supported_modes:
      - "heat"
      - "cool"
      - "dry"
      - "fan_only"
      - "auto"
      - "off" #Turns the AC off - Should be quoted
      # Some devices have "auto" and "fan_only" chaned
      # If following two lines are uncommented, "auto" and "fan" shoud be commented
      #- auto_fan_only #if remote shows fan but tasmota says auto
      #- fan_only_auto #if remote shows auto but tasmota says fan
    supported_fan_speeds:
      # Some devices say max,but it is high, and auto which is max
      # If you uncomment the following two, you have to comment high and max
      # - auto_max #woud become max
      # - max_high #would become high
      #- on
      #- off
      #- low
      - "medium"
      #- "high"
      #- middle
      #- focus
      #- diffuse
      - "min"
      - "max"
      - "auto"
    supported_swing_list:
      - "off"
      - "vertical" #up to down
      - "horizontal" # Left to right
      - "both"
    default_quiet_mode: "On" #optional - default "Off" string value
    default_turbo_mode: "Off" #optional - default "Off" string value
    default_econo_mode: "On" #optional - default "Off" string value
    #hvac_model: "-1" #optional - default "1" string value
    celsius_mode: "On" #optional - default "On" string value
    default_light_mode: "On" #optional - default "Off" string value
    default_filter_mode: "Off" #optional - default "Off" string value
    default_clean_mode: "Off" #optional - default "Off" string value
    default_beep_mode: "Off" #optional - default "Off" string value
    default_sleep_mode: "-1" #optional - default "-1" string value

I restarted HA multiple times, but the card, defined as:

type: thermostat
entity: climate.viessman_p2
name: Clima P2

still reports "unavailable".

Did tasmota_irhvac become incompatible with latest HA releases? It seems used, so probably I'm missing something...
I can't see anything useful in the log from config -> settings -> logs (tasmota_irhvac gets mentioned exactly once, warning that it's not tested, just like other integrations I'm using).

Any idea?

Tks.

@hristo-atanasov
Copy link
Owner

Can you provide some more information about the issue you have. "But lately it stopped working" isn't helpful enough. Give us details of versions and errors ect.. :)

@NdK73
Copy link
Author

NdK73 commented Mar 17, 2022 via email

@kaciker
Copy link

kaciker commented Mar 21, 2022

I haven't kept track of HA versions. I last used the component in Sept/Oct and it worked. A couple of weeks ago I noticed it was unavailable, then I tried upgrading it from git but it never came back. Can't find any errors in the logs (from the GUI) , just the warning about it being untested. Il gio 17 mar 2022, 01:23 Hristo Atanasov @.> ha scritto:

Can you provide some more information about the issue you have. "But lately it stopped working" isn't helpful enough. Give us details of versions and errors ect.. :) — Reply to this email directly, view it on GitHub <#68 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAODXYI5NYXRPUMQYDWFTGTVAJ3RTANCNFSM5Q4UP3OQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.
>

Same problem with all my Tasmota IR, it was working from months, this Freen, and anotther MITSUBISHI_HEAVY_88
Now both are unavailable
HA: 2022.3.5
Tasmota 10, upgraded to 11 no changes
Wemos D1 Mini

-This in my conf from the begining for Gree

  • platform: tasmota_irhvac
    name: "Room papis Gree"
    command_topic: "cmnd/tasmota/wemos/ir/papis/IRHVAC"
    state_topic: "tele/tasmota/wemos/ir/papis/RESULT"
    temperature_sensor: sensor.lumi_lumi_weather_temperature_papis
    vendor: "GREE"
    min_temp: 16 #optional - default 16 int value
    max_temp: 32 #optional - default 32 int value
    target_temp: 21 #optional - default 26 int value
    initial_operation_mode: "off" # optional - default "off" string value (one of the "supported_modes")
    away_temp: 24 #optional - default 24 int value
    precision: 1 #optional - default 1 int or float value. Can be set to 1, 0.5 or 0.1
    supported_modes:
    • "heat"
    • "cool"
    • "dry"
    • "fan_only"
    • "auto"
    • "off"
      supported_fan_speeds:
    • "medium"
    • "high"
    • "min"
    • "max"
      supported_swing_list:
    • "off"
    • "vertical" #up to down
      default_quiet_mode: "Off" #optional - default "Off" string value
      default_turbo_mode: "Off" #optional - default "Off" string value
      default_econo_mode: "Off" #optional - default "Off" string value
      hvac_model: 1 #optional - default "1" string value
      celsius_mode: "On" #optional - default "On" string value
      default_light_mode: "Off" #optional - default "Off" string value
      default_filter_mode: "Off" #optional - default "Off" string value
      default_clean_mode: "Off" #optional - default "Off" string value
      default_beep_mode: "Off" #optional - default "Off" string value
      default_sleep_mode: -1 #optional - default "-1" string value

@kaciker
Copy link

kaciker commented Mar 27, 2022

Help us ¡¡

@hristo-atanasov
Copy link
Owner

hristo-atanasov commented Apr 2, 2022

I woud suggest trying with older or different Tasmota build in order to see if the problem is from Home Assistant or from Tasmota. I'm actually running everything without any problems with the latest HA and Tasmota 8.1.0 ircustom https://github.com/arendst/Tasmota/releases/download/v8.1.0/tasmota-ircustom.bin

@kaciker
Copy link

kaciker commented Apr 3, 2022

I woud suggest trying with older or different Tasmota build in order to see if the problem is from Home Assistant or from Tasmota. I'm actually running everything without any problems with the latest HA and Tasmota 8.1.0 ircustom https://github.com/arendst/Tasmota/releases/download/v8.1.0/tasmota-ircustom.bin

Hello
I downgraded to tasmota 8.1 and still not working

Sensor works sending by nodered topic by mqtt, ({"Vendor":"GREE","Model":1,"Mode":"Heat","Power":"On","Celsius":"On","Temp":26,
"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}"

And heater works
image

@hristo-atanasov
Copy link
Owner

I'm not sure what is the problem in your case. It might be MQTT issue between your HA and your Tasmota device .. I did even clean install of HA and added everything from scratch and it works. Can you try to shrink the topic? I'm not sure if this might be some kind of issue. Also you can try with state_topic set to stat/tasmota/.. instead of tele/tasmota/.. in case for some reason your Tasmota device does not send tele messages.

Lovelace:

image

Supervisor:

image

Tasmota:

image

@hristo-atanasov
Copy link
Owner

If you are receiving {"Command": "Unknown"} this is indication, that you are not using Tasmota build, that have been built for IR devices. Like: "tasmota-ircustom.bin" (8.1.0 for ESP8266), "tasmota32-ir.bin" (for ESP32) or "tasmota-ir.bin" (for ESP8266).

@kaciker
Copy link

kaciker commented Apr 5, 2022

If you are receiving {"Command": "Unknown"} this is indication, that you are not using Tasmota build, that have been built for IR devices. Like: "tasmota-ircustom.bin" (8.1.0 for ESP8266), "tasmota32-ir.bin" (for ESP32) or "tasmota-ir.bin" (for ESP8266).

Hello.
Is true, in the process of upgrading / downgrade from/to 11/8.1 I confused the image. ( I deleted the post after descover it)
I solved the problem with your help. It is about the complexity of the topic. The moment I remove the bar in the topic, the weather is online. I applied to the other climas Tasmota, and again my 3 climas appears availible. (I have two HA, one local and second in cloud, both had the same problem, in same version, and both restart to work)
Tested in Tasmota 8.1 and after that in V11
I don't know if you can force this to verify it, I leave it like that for now. The 3 climas still now in v11 Tasmota.

Thanks again

@hristo-atanasov
Copy link
Owner

@kaciker I'm glad to hear these good news from you! :)

1 similar comment
@hristo-atanasov
Copy link
Owner

@kaciker I'm glad to hear these good news from you! :)

@hristo-atanasov
Copy link
Owner

@NdK73 How about you? Did you manage to solve your issue? :)

@NdK73
Copy link
Author

NdK73 commented Apr 5, 2022

Still trying suggestions but still not working.
I am (quite) sure I'm using the correct image: http://ota.tasmota.com/tasmota/release/tasmota-ir.bin.gz -- just tried upgrading again (even if it already was at 11.0.0).

I now forced "setoption19 0" and the IR bridge (BW-RC1) gets listed in the 'Tasmota' integration (instead of only being configurable in MQTT).

I can succesfully send IR codes to a lamp by:

switch:
  - platform: mqtt
    name: "Lampada soppalco"
    unique_id: ir1_cmd_light_onoff
    #state_topic: "" # Topic to read the current state
    command_topic: "ir-1/cmnd/IRsend"
    qos: 2
    payload_on: "{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x80BF3BC4\",\"DataLSB\":\"0x1FDDC23\",\"Repeat\":0}"
    payload_off: "{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x80BF3BC4\",\"DataLSB\":\"0x1FDDC23\",\"Repeat\":0}" # toggle :(
    retain: false

(this has always worked)

But the thermostat is still "unavailable".

@hristo-atanasov
Copy link
Owner

Still trying suggestions but still not working. I am (quite) sure I'm using the correct image: http://ota.tasmota.com/tasmota/release/tasmota-ir.bin.gz -- just tried upgrading again (even if it already was at 11.0.0).

I now forced "setoption19 0" and the IR bridge (BW-RC1) gets listed in the 'Tasmota' integration (instead of only being configurable in MQTT).

I can succesfully send IR codes to a lamp by:

switch:
  - platform: mqtt
    name: "Lampada soppalco"
    unique_id: ir1_cmd_light_onoff
    #state_topic: "" # Topic to read the current state
    command_topic: "ir-1/cmnd/IRsend"
    qos: 2
    payload_on: "{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x80BF3BC4\",\"DataLSB\":\"0x1FDDC23\",\"Repeat\":0}"
    payload_off: "{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x80BF3BC4\",\"DataLSB\":\"0x1FDDC23\",\"Repeat\":0}" # toggle :(
    retain: false

(this has always worked)

But the thermostat is still "unavailable".

I have 2 suggestions for you. The first is to try with state_topic: "ir-1/stat/RESULT". If this doesn't work, why don't you try to change the Tasmota topic in Configuration -> Configure MQTT -> Full Topic to %prefix%/%topic%/ (this is the default) and try to use state_topic: "tele/ir-1/RESULT" or state_topic: "stat/ir-1/RESULT" and command_topic: "cmnd/ir-1/IRhvac" ..

image

Also if nothing of these suggestions work .. What do you see in the console of Tasmota, when you try to command the AC trough HA? Any errors?

@NdK73
Copy link
Author

NdK73 commented Apr 5, 2022

Tks, it seems it's working again!

change the Tasmota topic in Configuration -> Configure MQTT -> Full Topic to %prefix%/%topic%/ (this is the default)

Deleted the previous setting of %topic%/%prefix%/ : the light control stopped working but that was expected and easy to fix.

try to use state_topic: "tele/ir-1/RESULT" or state_topic: "stat/ir-1/RESULT" and command_topic: "cmnd/ir-1/IRhvac"

This fixed it! I now have

  command_topic: "cmnd/ir-1/IRhvac"
  state_topic: "tele/ir-1/RESULT"

Why it did stop working still eludes me, but... FINALLY IT WORKS AGAIN! :)

@hristo-atanasov
Copy link
Owner

@NdK73 I'm glad you have it working again. :)

@ricardoletosa
Copy link

I woud suggest trying with older or different Tasmota build in order to see if the problem is from Home Assistant or from Tasmota. I'm actually running everything without any problems with the latest HA and Tasmota 8.1.0 ircustom https://github.com/arendst/Tasmota/releases/download/v8.1.0/tasmota-ircustom.bin

Hi @hristo-atanasov is it possible for you to share a copy of this .bin? I have seen you reference this tasmota-ircustom.bin in a number of posts, but every time I follow that link the folder is no longer there.

I've been forced to compile my own custom firmware with tasmocompiler, but still getting regular "Guru meditation - Panic'd" errors and I am not sure I've done the compiling correctly.

I am running on ESP32-WROOM-32

@hristo-atanasov
Copy link
Owner

@ricardoletosa Sorry I've messed up the link .. This is a working link:
https://github.com/arendst/Tasmota/releases/download/v8.1.0/tasmota-ircustom.bin
I'm not sure if and how it will work on ESP32 .. If you have some problems try with ESP8266 board .. Also, newer versions of Tasmota have support for more ACs, but they don't have precompiled version that support irremote and I2C at the same time, which is important for me, as my temp/humidity/pressure sensors are I2C based.

@ricardoletosa
Copy link

Many thanks. I hope it does work on ESP32. My plan is to follow your design (many thanks for that) for a PANASONIC_AC which should be there from early versions, but also needing the I2C support (which is why I can't use the tasmota-ir.bin from the latest version).

@ricardoletosa
Copy link

Just for info... unfortunately https://github.com/arendst/Tasmota/releases/download/v8.1.0/tasmota-ircustom.bin bricks the ESP32-DevKit-v1

@hristo-atanasov
Copy link
Owner

@ricardoletosa try with this zipped bin. Yesterday I compiled Tasmota for ESP8266 with IR and I2C Temp sensors and it works. Now I compiled it for ESP32 with Tasmota 11.1
tasmota-esp32-ir-I2C-sensors.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants