Skip to content

Commit

Permalink
update irrigation schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
groupsky committed Apr 24, 2024
1 parent bad629e commit eca7b8a
Showing 1 changed file with 32 additions and 26 deletions.
58 changes: 32 additions & 26 deletions config/automations/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,57 +339,63 @@ module.exports = {
}
},

timeoutStopIrrigationGrassNorthWest: {
type: 'timeout-emit',
listenTopic: `${featuresPrefix}/relay/irrigation_grass_north_west/status`,
listenFilter: (payload) => payload.state,
timeout: 25 * 60000,
emitTopic: `${featuresPrefix}/relay/irrigation_grass_north_west/set`,
emitValue: { state: false }
},

timeoutStopIrrigationGrassPergola: {
type: 'timeout-emit',
listenTopic: `${featuresPrefix}/relay/irrigation_grass_pergola/status`,
listenFilter: (payload) => payload.state,
timeout: 15 * 60000,
emitTopic: `${featuresPrefix}/relay/irrigation_grass_pergola/set`,
emitValue: { state: false }
},

irrigationFlowerGroundSchedule: {
type: 'irrigation',
schedule: '0 */10 8-18 * * *',
duration: 5*60*1000,
duration: 5*60000,
valveControlTopic: `${featuresPrefix}/relay/irrigation_flower_ground/set`,
},
irrigationFlowerPotsSchedule: {
type: 'irrigation',
schedule: '0 25,55 6-22 * * *',
duration: 2*60*1000,
duration: 2*60000,
valveControlTopic: `${featuresPrefix}/relay/irrigation_flower_pots/set`,
},
irrigationGrassPergolaSchedule: {
type: 'irrigation',
schedule: '0 0 2 * * *',
duration: 20*60*1000,
duration: 20*60000,
valveControlTopic: `${featuresPrefix}/relay/irrigation_grass_pergola/set`,
},
timeoutStopIrrigationGrassPergola: {
type: 'timeout-emit',
listenTopic: `${featuresPrefix}/relay/irrigation_grass_pergola/status`,
listenFilter: (payload) => payload.state,
timeout: 25 * 60000,
emitTopic: `${featuresPrefix}/relay/irrigation_grass_pergola/set`,
emitValue: { state: false }
},
irrigationGrassNorthWestSchedule: {
type: 'irrigation',
schedule: '0 20 2 * * *',
duration: 20*60*1000,
schedule: '0 25 2 * * *',
duration: 20*60000,
valveControlTopic: `${featuresPrefix}/relay/irrigation_grass_north_west/set`,
},
timeoutStopIrrigationGrassNorthWest: {
type: 'timeout-emit',
listenTopic: `${featuresPrefix}/relay/irrigation_grass_north_west/status`,
listenFilter: (payload) => payload.state,
timeout: 25 * 60000,
emitTopic: `${featuresPrefix}/relay/irrigation_grass_north_west/set`,
emitValue: { state: false }
},
irrigationGrassWestCenterSchedule: {
type: 'irrigation',
schedule: '0 40 2 * * *',
duration: 20*60*1000,
schedule: '0 50 2 * * *',
duration: 20*60000,
valveControlTopic: `${featuresPrefix}/relay/irrigation_grass_west_center/set`,
},
timeoutStopIrrigationGrassWestCenter: {
type: 'timeout-emit',
listenTopic: `${featuresPrefix}/relay/irrigation_grass_west_center/status`,
listenFilter: (payload) => payload.state,
timeout: 25 * 60000,
emitTopic: `${featuresPrefix}/relay/irrigation_grass_west_center/set`,
emitValue: { state: false }
},
irrigationGrassNorthWestSchedule2: {
type: 'irrigation',
schedule: '0 0 3 * * *',
schedule: '0 15 3 * * *',
duration: 20*60*1000,
valveControlTopic: `${featuresPrefix}/irrigation_grass_north_west/set`,
},
Expand Down

0 comments on commit eca7b8a

Please sign in to comment.