Skip to content

Commit

Permalink
fix: Changed enum to numeric expose for counters in 'ptvo_counter_2ch…
Browse files Browse the repository at this point in the history
…' device (#7919)

* Changed enum to numeric expose for counters in 'ptvo_counter_2ch' device.

* fix
  • Loading branch information
kirovilya authored Aug 30, 2024
1 parent 8049ace commit 59dece5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/devices/custom_devices_diy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,15 +1124,19 @@ const definitions: Definition[] = [
exposes: [
e.battery(),
e
.enum('l3', ea.ALL, ['set'])
.numeric('l3', ea.ALL)
.withValueMin(-999999999)
.withValueMax(999999999)
.withDescription(
'Counter value. Write zero or positive value to set a counter value. ' +
'Counter 1 value. Write zero or positive value to set a counter value. ' +
'Write a negative value to set a wakeup interval in minutes',
),
e
.enum('l5', ea.ALL, ['set'])
.numeric('l5', ea.ALL)
.withValueMin(-999999999)
.withValueMax(999999999)
.withDescription(
'Counter value. Write zero or positive value to set a counter value. ' +
'Counter 2 value. Write zero or positive value to set a counter value. ' +
'Write a negative value to set a wakeup interval in minutes',
),
e.switch().withEndpoint('l6'),
Expand Down

0 comments on commit 59dece5

Please sign in to comment.