I am a total beginner that doesn’t speak yamI or json please advise accordingly. I apologize the error code informed me that even though I cut and pasted from the file, my back ticks are improper but I couldnt correct them. sorry
If there are more elegant ways to program I am open to suggestions beyond solving my problem
It could be the MODE both automations are set to SINGLE is that correct?
I monitor CO2 with a zigbee co2 sensor by ALAB, and control a valve with a sonoff zigbee relay switch.
It works fabulously holding to about ± 20ppm, but I have some how messed its morning startup.
Problem: the automation no longer begins at 8:01 am. I now have to start it manually, and then it works fine the rest of the day until 7:45 pm end time.
There are 2 automations that I use …
- CO2 750 ppm Controller Max limit and ( Turns valve OFF any time above 650ppm)
- CO2 750 ppm Controller 8am to 8pm Activation (supposed to turn ON valve below 648ppm with the condition that it is after 8:01 am but before 7:45 pm )
- id: ‘1659477287617’
alias: CO2 750 ppm Controller Max limit
description: Holds CO2 700 to 800
trigger:- platform: numeric_state
entity_id: sensor.co2_temp_humidity_alab_co2
for:
hours: 0
minutes: 0
seconds: 0
attribute: co2
above: ‘650’
condition: []
action: - type: turn_off
device_id: bfe64e0199bbb2cf6d5d792a73d573e9
entity_id: switch.co2_relay_0x00124b00226c90e7
domain: switch
mode: single
- platform: numeric_state
- id: ‘1659540607748’
alias: ’ CO2 750 ppm Controller 8am to 8pm Activation ’
description: ‘’
trigger:- platform: numeric_state
entity_id: sensor.co2_temp_humidity_alab_co2
for:
hours: 0
minutes: 0
seconds: 0
attribute: co2
below: ‘648’
condition: - condition: time
before: ‘19:45:00’
after: 08:01:00
weekday:- sun
- mon
- tue
- wed
- thu
- fri
- sat
action:
- type: turn_on
device_id: bfe64e0199bbb2cf6d5d792a73d573e9
entity_id: switch.co2_relay_0x00124b00226c90e7
domain: switch
mode: single
- platform: numeric_state