Outils pour utilisateurs

Outils du site


domotique_esp_home

custom component multi sensor

custom_component:
- id: test_component
lambda: |-
  auto test_component = new TestComponent();
  App.register_component(test_component);
  return {test_component};

Each sensor

  1. platform: custom

lambda: return{get_testcomponent(test_component)→temp_sensor,get_testcomponent(test_component)→puissance_sensor};

sensors:
  - name: "Température Ambiante"
    id: "temp_amb"
    unit_of_measurement: °C 
    accuracy_decimals: 1
    icon: "mdi:thermometer"
  - name: "Puissance"
    accuracy_decimals: 0
    icon: "mdi:signal"
domotique_esp_home.txt · Dernière modification : 2023/10/23 12:39 de ptitfrap