StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
620 stars 111 forks source link

[FR] add support to idenity the shelly device as a Fan rather than a Switch or a light. #574

Open tonyfitzs opened 3 years ago

tonyfitzs commented 3 years ago

Is your feature request related to a problem? Please describe.

No

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

It is posible to configure your shelly device using ShellyForHass to report to Home assitant and a Light rather than a Switch. using code similar to the following

devices: #configure devices

sometimes you can use these switches to control a fan, such as in a bathroom, just as changing the identity of the Shelly device to be a light rather than a switch changes the default icon Home Assitant uses, seting the device to be identified a s afan does the same thing.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Add support to identify the Shelly device as other types of devices, such as Fan, Cover, sensor etc. rather than just light and switch.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

the approch I have taken to overcome this shortcomming is to use MQTT rather than native support fo shelly and they identify the device as a Fan that way.

Additional context

Add any other context or screenshots about the feature request here.

no

david-kalbermatten commented 2 years ago

image I think this has been solved by HA in the meantime. They added the option to specify what type of appliance is running behind a switch. Alternatively, you could also wrap the device with the Template Fan integration.