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

need sample for mqtt #81

Open
ritech opened this issue May 5, 2022 · 4 comments
Open

need sample for mqtt #81

ritech opened this issue May 5, 2022 · 4 comments

Comments

@ritech
Copy link

ritech commented May 5, 2022

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}}"
@regevbr
Copy link
Collaborator

regevbr commented May 5, 2022

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

@ritech
Copy link
Author

ritech commented May 6, 2022

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
Copy link
Author

ritech commented May 6, 2022

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

@regevbr
Copy link
Collaborator

regevbr commented May 8, 2022

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

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

2 participants