Hi, I have just setup the counter component. My config is valid and I am not seeing any errors in the setup. The problem I am having is that the item is simply not “counting”
Herewith my counter config:
counter:
counter:
name: Finn Meds Today
icon: mdi:counter
When I go to services in developer tools, and try to fire off an increment, nothing happens…
Herewith the automation I intend to use:
- id: finn_meds_counter
alias: Finn Meds Counter
hide_entity: false
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.neo_coolcam_doorwindow_detector_sensor_11_0
to: 'on'
condition:
condition: or
conditions:
- condition: time
after: '05:30:00'
before: '06:45:00'
- condition: time
after: '11:45:00'
before: '12:30:00'
- condition: time
after: '15:30:00'
before: '16:30:00'
- condition: time
after: '21:30:00'
before: '22:30:00'
action:
- service: service.counter/increment
entity_id: counter.counter
I’m thinking “Where in the world would this person get the idea that you would use “service.counter/increment” as a service call”. So I’ll just post a link to the documentation and help him out. So much to my surprise, that’s exactly what it says in the documentation.
I have no idea why.
Here’s the real way to call the increment service:
2017-10-05 09:27:06 ERROR (MainThread) [homeassistant.core] Invalid service data for counter.increment: extra keys not allowed @ data[‘entitiy’]. Got ‘counter.countmeds’
the only remote reason i can think of that happened around the same time these counters stopped counting is me deleting the home-assistant.db file, because it kept growing, wouldn’t be purged no matter what.
So I started using MariaDB again.
The logfile is there of course, and it is still logging errors and warnings. I can see that in the log tail i have also setup.