Skip to content

Commit

Permalink
Gave up jsonrest dependency and reconfigured for standard rest sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-ady committed Jun 4, 2018
1 parent 81eb169 commit 6776c5a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions samygo-api.yaml
@@ -1,12 +1,21 @@
#This should be part of your HA configuration.yaml

#define sensors. The JSONREST sensor makes the query and stores all metadata
#while the templated sensors extract the metadata from the JSONREST sensor
#define sensors.
sensor:
- platform: jsonrest
- platform: rest
resource: !secret samygo_tv_living_channelinfo
method: GET
name: TV Living ChannelInfo
json_attributes:
- source
- pvr_status
- power_state
- tv_mode
- volume
- channel_number
- channel_name
- program_name
- resolution
scan_interval: '00:05'
- platform: template
sensors:
Expand Down

0 comments on commit 6776c5a

Please sign in to comment.