#Hi

1 messages · Page 1 of 1 (latest)

thorny carbon
#

if I paste this piece of code:

#

sensor:

  • platform: history_stats
    name: Rainsensor flips
    entity_id: binary_sensor.rainsensor_on_off #The aqara sensor
    state: 'off'
    type: count
    start: '{{ now().replace(hour=0, minute=0, second=0) }}'
    end: '{{ now() }}'
tulip valve
#

Please use code markup, or a code share site

thorny carbon
#

I get: "end of the stream or a document separator is expected " (there are other sensors in the sensors.yaml

tulip valve
#

If you pasted that directly into sensors.yaml you introduced an error

#

sensor: shouldn't be included in that file

#

(and likely neither should the first two spaces on each line)

thorny carbon
tulip valve
#

Image posting is blocked to discourage people from posting images of text

#

Images of text are a horrible thing

#

That's why code share sites exist

thorny carbon
#

i cant copypaste the error messages of "studio code server" - it is not inclded in the stuff that i select.

tulip valve
#

Ignore what it says, all that matters is what HA says

#

ha core check

thorny carbon
#

thx

tulip valve
#

Then if there's issues use a code share site to share sensors.yaml

thorny carbon
#

i understand

#

is there a good article for YAML-beginners, that could be helpful?

#

also assumes a lot of knowledge about hassio

tulip valve
#

There's also no "hassio"

#

That name died years ago