-
Hello, I have sensor which report light intensity and I want to make this sensor secondary_entities:
- entity: sensor
name: Light intensity
class: illuminance
dps:
- id: 68
type: string
name: com_index
- id: 63
type: integer
name: sensor
unit: lx
class: measurement
mapping:
constraint: com_index
conditions:
- dps_val: none
invalid: true
# mapping: [{conditions: [{dps_val: 300001, invalid: true}]}] |
Beta Was this translation helpful? Give feedback.
Answered by
make-all
Apr 9, 2024
Replies: 1 comment 5 replies
-
Try this instead:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry I just copy and pasted from your example without checking the syntax, thinking the "none" was the only issue.
Each entry in a mapping needs a
-
at the start. Even when there is only one entry in a mapping.