Update ceiling name
Make it clearer this is the resistance ceiling.
This commit is contained in:
		@@ -57,7 +57,7 @@ esp32:
 | 
				
			|||||||
  board: esp32dev
 | 
					  board: esp32dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
globals:
 | 
					globals:
 | 
				
			||||||
  - id: gas_ceiling
 | 
					  - id: gas_resistance_ceiling
 | 
				
			||||||
    type: int
 | 
					    type: int
 | 
				
			||||||
    restore_value: yes
 | 
					    restore_value: yes
 | 
				
			||||||
    initial_value: "200"
 | 
					    initial_value: "200"
 | 
				
			||||||
@@ -521,7 +521,7 @@ sensor:
 | 
				
			|||||||
    lambda: |-
 | 
					    lambda: |-
 | 
				
			||||||
      float ph_slope = 0.03;
 | 
					      float ph_slope = 0.03;
 | 
				
			||||||
      float comp_gas = id(bme680_gas_resistance).state * pow(2.718281, (ph_slope * id(bme680_absolute_humidity).state));
 | 
					      float comp_gas = id(bme680_gas_resistance).state * pow(2.718281, (ph_slope * id(bme680_absolute_humidity).state));
 | 
				
			||||||
      float gas_ratio = pow((comp_gas / (id(gas_ceiling) * 1000)), 2);
 | 
					      float gas_ratio = pow((comp_gas / (id(gas_resistance_ceiling) * 1000)), 2);
 | 
				
			||||||
      if (gas_ratio > 1) {
 | 
					      if (gas_ratio > 1) {
 | 
				
			||||||
          gas_ratio = 1.0;
 | 
					          gas_ratio = 1.0;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@@ -716,18 +716,18 @@ switch:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
number:
 | 
					number:
 | 
				
			||||||
  - platform: template
 | 
					  - platform: template
 | 
				
			||||||
    name: "Gas Ceiling (kΩ)"
 | 
					    name: "Gas Resistance Ceiling (kΩ)"
 | 
				
			||||||
    id: gas_ceiling_setter
 | 
					    id: gas_resistance_ceiling_setter
 | 
				
			||||||
    min_value: 10
 | 
					    min_value: 10
 | 
				
			||||||
    max_value: 500
 | 
					    max_value: 500
 | 
				
			||||||
    step: 1
 | 
					    step: 1
 | 
				
			||||||
    entity_category: config
 | 
					    entity_category: config
 | 
				
			||||||
    lambda: |-
 | 
					    lambda: |-
 | 
				
			||||||
      return id(gas_ceiling);
 | 
					      return id(gas_resistance_ceiling);
 | 
				
			||||||
    set_action:
 | 
					    set_action:
 | 
				
			||||||
      then:
 | 
					      then:
 | 
				
			||||||
        - globals.set:
 | 
					        - globals.set:
 | 
				
			||||||
            id: gas_ceiling
 | 
					            id: gas_resistance_ceiling
 | 
				
			||||||
            value: !lambda 'return int(x);'
 | 
					            value: !lambda 'return int(x);'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # PIR Hold Time:
 | 
					  # PIR Hold Time:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user