hass-virtual icon indicating copy to clipboard operation
hass-virtual copied to clipboard

second entity for sensor?

Open michapr opened this issue 3 years ago • 3 comments

Hi, is it possible to add a second (or third) entity to sensor for creating temp/hum/batt sensor?

Thanks!

michapr avatar Jul 09 '22 19:07 michapr

Hi, I create separate sensor for each type an then place them into same Area:

sensor:
  # ESP8266_AirSensor_1
  - platform: virtual
    name: '!babi co2'
    class: carbon_dioxide
    initial_value: 0
    initial_availability: false
  - platform: virtual
    name: '!babi temp'
    class: temperature
    initial_value: 0
    initial_availability: false
  - platform: virtual
    name: '!babi humi'
    class: humidity
    initial_value: 0
    initial_availability: false

image

Tony763 avatar Jul 09 '22 19:07 Tony763

Looks great - but this are all separate entities without "assign" to a device , right?

I would like to have a device like virtual "fan" with different entities/attributes for sorting the devices. I have many MQTT sensors with temp/hum/batt (as sample) - and would be nice to have for each hardware device one device in HA using this virtual devices.

michapr avatar Jul 10 '22 08:07 michapr