mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-03 16:41:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			889 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			889 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
uart:
 | 
						|
  - id: uart_teleinfo
 | 
						|
    tx_pin: ${tx_pin}
 | 
						|
    rx_pin: ${rx_pin}
 | 
						|
    baud_rate: 1200
 | 
						|
    parity: EVEN
 | 
						|
 | 
						|
button:
 | 
						|
  - platform: template
 | 
						|
    name: Poller component suspend test
 | 
						|
    on_press:
 | 
						|
      - component.suspend: test_teleinfo
 | 
						|
      - delay: 20s
 | 
						|
      - component.update: test_teleinfo
 | 
						|
      - delay: 20s
 | 
						|
      - component.resume: test_teleinfo
 | 
						|
      - delay: 20s
 | 
						|
      - component.resume:
 | 
						|
          id: test_teleinfo
 | 
						|
          update_interval: 2s
 | 
						|
      - delay: 20s
 | 
						|
      - component.resume:
 | 
						|
          id: test_teleinfo
 | 
						|
          update_interval: !lambda return 2500;
 | 
						|
 | 
						|
teleinfo:
 | 
						|
  id: test_teleinfo
 | 
						|
  historical_mode: true
 | 
						|
  update_interval: 60s
 | 
						|
 | 
						|
sensor:
 | 
						|
  - platform: teleinfo
 | 
						|
    name: hchc
 | 
						|
    tag_name: HCHC
 | 
						|
    teleinfo_id: test_teleinfo
 | 
						|
    unit_of_measurement: Wh
 | 
						|
 | 
						|
text_sensor:
 | 
						|
  - platform: teleinfo
 | 
						|
    name: optarif
 | 
						|
    tag_name: OPTARIF
 | 
						|
    teleinfo_id: test_teleinfo
 |