--- /dev/null
+######################################################################\r
+# Sensor: Uptime\r
+######################################################################\r
+#- platform: command_line\r
+# name: Server Uptime\r
+# unit_of_measurement: giorni\r
+# scan_interval: 900\r
+# command: "uptime | awk '{ print $3 }' |sed \"s/,//\""\r
+\r
+######################################################################\r
+# Sensor: Letsencrypt\r
+######################################################################\r
+- platform: command_line\r
+ name: Scadenza Certificato SSL\r
+ unit_of_measurement: giorni\r
+ scan_interval: 86400\r
+ command: "ssl-cert-check -b -c /etc/letsencrypt/live/server.giorgioravera.it/cert.pem | awk '{ print $NF }'"\r
--- /dev/null
+######################################################################
+# Switch: Shelly
+######################################################################
+
+- platform: mqtt
+ name: Presa TV
+ command_topic: "shellies/shellyplug-s-7A31CB/relay/0/command"
+ state_topic: "shellies/shellyplug-s-7A31CB/relay/0"
+ payload_on: "on"
+ payload_off: "off"
+ state_on: "on"
+ state_off: "off"
+ retain: false
+ qos: 0
+ optimistic: false