mini-climate-card
mini-climate-card copied to clipboard
need sample for mqtt
this is my configuration.yaml
could you tell me how to write code for mini-climate-card
I want to learn through this template
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}}"
I'm not sure I follow what you ask for. Can you please elaborate?
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.
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
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