mini-climate-card icon indicating copy to clipboard operation
mini-climate-card copied to clipboard

need sample for mqtt

Open ritech opened this issue 2 years ago • 4 comments

this is my configuration.yaml

could you tell me how to write code for mini-climate-card

I want to learn through this template 209BE1DC-296D-442A-96A3-CE2806C4D487 9EB33E17-27DB-4A25-B005-F927746D47FF 9BD6F0A8-5145-4342-B1A2-8DD415669A5E

this is my mtqq json value {"afstatus":fan_only,"afno":1,"setupspeed":"low","temperature":{"insidetemp":24,"pm25":0,"tvoc":192,"co2":486,"humidity":51}}

#AF

  • platform: mqtt name: "air fresh" modes:
    • "off"
    • "fan_only" fan_modes:
    • "auto"
    • "low"
    • "medium"
    • "high" current_temperature_topic: "hdl/af/1.51.1" current_temperature_template: "{{value_json.temperature.insidetemp}}" mode_state_topic: "hdl/af/1.51.1" mode_command_topic: "hdl/af/1.51.1/mode/set" mode_state_template: "{{value_json.status}}" fan_mode_state_topic: "hdl/af/1.51.1" fan_mode_command_topic: "hdl/af/1.51.1/fan/set" fan_mode_state_template: "{{value_json.setupspeed}}"

ritech avatar May 05 '22 21:05 ritech

I'm not sure I follow what you ask for. Can you please elaborate?

regevbr avatar May 05 '22 21:05 regevbr

1 .The actual product is a fresh air fan, not an air conditioner. I saw that mqtt does not have a fresh air fan module. I temporarily replaced it with an climate module. The mode of the air fresh only has the speed, switch, and temperature display, but there is no temperature control. How can I turn off the temperature control adjustment option?

maybe add target temperature hide ?

2 . i use iphone open url , but all dropdown button can't show value , can't send action.

ritech avatar May 06 '22 09:05 ritech

Another problem, the icon in fan mode cannot be set to change according to the wind speed

fan_mode: source: auto: icon: mdi:power name: zidong low: icon: mdi:fan-speed-1 name: di medium: icon: mdi:fan-speed-2 name: zhong high: icon: mdi:fan-speed-3 name: gao

icon no change

ritech avatar May 06 '22 09:05 ritech

I'm sorry but I can't support antyhing that is not a proper climate entity here... As to the button are they working on your desktop? Please provide all the relevant versions you are using

regevbr avatar May 08 '22 16:05 regevbr