Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Command line binary sensors failled with systemctl

$
0
0

@vincent.ducamps wrote:

hello everyone
I am curently try to create a interface with main service running on my nuc for that I have create binary sensor like that:

- platform:  command_line
  name: Radicale service
  command: 'systemctl is-active radicale'
  device_class: moving
  payload_on: active
  payload_off: inactive

problem is when I stop the serce to test, sensor don’t switch to off I have this error in log:

2020-02-11 21:25:39 ERROR (SyncWorker_0) [homeassistant.components.command_line.sensor] Command failed: systemctl is-active radicale

when after that I restart Home assistant service is off. when I restart the service he switch correctly to on, but if I stop again service I have the same issue
weird isn’t he?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>