Skip to content

voorkant-cli subscribe: emit json#173

Open
Habbie wants to merge 2 commits intovoorkant:mainfrom
Habbie:subscribe-json
Open

voorkant-cli subscribe: emit json#173
Habbie wants to merge 2 commits intovoorkant:mainfrom
Habbie:subscribe-json

Conversation

@Habbie
Copy link
Member

@Habbie Habbie commented Oct 24, 2025

example usage to get just light brightness, real time, one line with one number on it per update:

build/voorkant-cli subscribe light 2> /dev/null | jq 'if .entity_id == "light.plafondlamp_kantoor_peter_level_light_color_on_off" then .attributes.brightness/2.55 else null end | select(.!=null)'

example usage to get just light brightness, real time, one line
with one number on it per update:

build/voorkant-cli subscribe light 2> /dev/null | jq 'if .entity_id == "light.plafondlamp_kantoor_peter_level_light_color_on_off" then .attributes.brightness/2.55 else null end | select(.!=null)'
@Habbie
Copy link
Member Author

Habbie commented Oct 24, 2025

solar example:

build/voorkant-cli subscribe sensor 2> /dev/null | jq 'if .entity_id == "sensor.solaredge_i1_ac_power" then .state else null end | select(.!=null)' --raw-output

@Habbie
Copy link
Member Author

Habbie commented Oct 24, 2025

screenshot after running this for ~15 minutes

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant